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: main.cpp
- Revision:
- 8:14e91fdf70e8
- Parent:
- 7:d16faa6d7713
--- a/main.cpp Wed Apr 10 02:16:32 2019 +0000
+++ b/main.cpp Fri May 24 03:40:06 2019 +0000
@@ -32,10 +32,11 @@
Thread threadMotors = Thread(osPriorityRealtime4, OS_STACK_SIZE, NULL, NULL);
Thread threadState = Thread(osPriorityRealtime1, OS_STACK_SIZE, NULL, NULL);
+
Queue<float,4> motor_turn_queue; // queue for motor turn commands;
Queue<float,4> motor_speed_queue; // queue for motor turn commands;
-Car car(p21, p22, p23,p26, p25, p24); // controls two motors
IR_sensors ir(p18, p19, p20, LED1, LED2, LED3); // controls three IR sensors
+Car car(p21, p22, p23, p16, p15, p26, p25, p24, p13, p12);// controls two motors
float location = 0;
@@ -181,6 +182,9 @@
int main() {
+ set_time(1256729737);
+ time_t time_start = time(NULL);
+
printf("\n\rPROGRAM STARTED\n\r");
threadMotors.start(motors);
threadState.start(car_state);