Skip to content

Commit 464c337

Browse files
committed
Code used in Final Demonstration
1 parent 339d708 commit 464c337

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Buggy/Buggy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Buggy {
2020
};
2121
ParkingState parkingState = NOT_PARKING;
2222
const unsigned int parking_overrideOffAt = 3000; // ms
23-
const unsigned int parking_stopAt = 7000; // ms
23+
const unsigned int parking_stopAt = 6500; // ms
2424

2525
const CommTrans *comms;
2626
MotorControls *motor;

Buggy/UltraSonic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class UltraSonic {
1313
const unsigned short groundPin = 16;
1414
const unsigned short powerPin = 17;
1515
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
1718
const unsigned long pingInterval = 400; // ms
1819
/** Timestamp of the previous ping */
1920
unsigned long lastPingTime = 0; // ms

Station/Station/Communications.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Communications
3939

4040
public Communications()
4141
{
42-
port.PortName = "COM17";
42+
port.PortName = "COM5";
4343
port.BaudRate = 9600;
4444
port.Open();
4545

0 commit comments

Comments
 (0)