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:
- 4:a5add1353920
- Parent:
- 3:4f09afd29a27
- Child:
- 5:39910e745cf6
diff -r 4f09afd29a27 -r a5add1353920 main.cpp
--- a/main.cpp Wed Mar 27 08:25:29 2019 +0000
+++ b/main.cpp Sat Apr 06 09:36:33 2019 +0000
@@ -91,9 +91,9 @@
pose = messageIn.data[0] + (messageIn.data[1] << 8) + (messageIn.data[2] << 16) + (messageIn.data[3] << 24);
printf("CAN: mess %d\n\r", pose);
printf("CANaacc: id %x \n\r ",messageIn.id);
- if (pose==0) motor_go_bwd();
- if (pose==50) motor_stop();
- if (pose==100) motor_go_fwd();
+ if (pose==1) motor_go_bwd();
+ if (pose==0) motor_stop();
+ if (pose==2) motor_go_fwd();
else motor_stop();
}