Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: variables.h
- Revision:
- 0:4bb3dfde1219
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/variables.h Sat Oct 30 18:14:38 2021 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "SRF05.h"
+
+#define fulldrive 0.0115
+#define halfdrive 0.6
+
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+AnalogIn ir1(PA_1);
+AnalogIn ir2(PA_4);
+AnalogIn ir3(PB_0);
+AnalogIn ir4(PC_1);
+AnalogIn ir5(PC_0);
+
+DigitalOut turnLeft(PA_10); //left turn
+DigitalOut turnRight(PA_8); //right turn
+DigitalOut back(PA_9); //reverse
+DigitalOut drive(PA_6); //forward
+
+bool setupFlag = false;
+SRF05 srf(PA_2, PA_3);
+
+
+enum direction{forward, backward, left = 77, right = 99, center = 88};
+enum trackersensor{sen1_left, sen2_left, sen3_mid, sen4_right, sen5_right};
\ No newline at end of file