receiver code which helps the vehicle to move forward, backward, left and right
Dependencies: mbed Servo mbed-rtos XBeeTest Motor emic2 X_NUCLEO_53L0A1
Revision 4:c15361d55018, committed 2018-12-14
- Comitter:
- CharlesXu
- Date:
- Fri Dec 14 16:22:54 2018 +0000
- Parent:
- 3:5d43739ec09f
- Commit message:
- Final Version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5d43739ec09f -r c15361d55018 main.cpp --- a/main.cpp Wed Dec 12 21:59:14 2018 +0000 +++ b/main.cpp Fri Dec 14 16:22:54 2018 +0000 @@ -1,6 +1,3 @@ -// basic xbee example -// - take chars from the terminal, push them out xbee1 -// - listen on xbee2, and print value + 1 to terminal #include "Motor.h" #include "mbed.h" #include "emic2.h" @@ -65,9 +62,6 @@ input = xbee1.getc(); wait(0.2); } - //A.speed(0); - //B.speed(0); - status = board->sensor_centre->get_distance(&distance); if (status == VL53L0X_ERROR_NONE) { pc.printf("D=%ld mm\r\n", distance);