File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Buggy {
20
20
};
21
21
ParkingState parkingState = NOT_PARKING;
22
22
const unsigned int parking_overrideOffAt = 3000 ; // ms
23
- const unsigned int parking_stopAt = 7000 ; // ms
23
+ const unsigned int parking_stopAt = 6500 ; // ms
24
24
25
25
const CommTrans *comms;
26
26
MotorControls *motor;
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ class UltraSonic {
13
13
const unsigned short groundPin = 16 ;
14
14
const unsigned short powerPin = 17 ;
15
15
const unsigned short ultraPin = 18 ;
16
- const unsigned long tresholdDistance = 15 ; // cm
16
+ const unsigned long tresholdDistance = 14 ; // cm
17
+ // used 14 for buggy1 and 13 for buggy2
17
18
const unsigned long pingInterval = 400 ; // ms
18
19
/* * Timestamp of the previous ping */
19
20
unsigned long lastPingTime = 0 ; // ms
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Communications
39
39
40
40
public Communications ( )
41
41
{
42
- port . PortName = "COM17 " ;
42
+ port . PortName = "COM5 " ;
43
43
port . BaudRate = 9600 ;
44
44
port . Open ( ) ;
45
45
You can’t perform that action at this time.
0 commit comments