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.
Dependencies: mbed X-NUCLEO-IHM05A1
Diff: main.cpp
- Revision:
- 22:137d1ef8d22d
- Parent:
- 21:533d014f09e0
- Child:
- 23:3110010d98a0
--- a/main.cpp Sat Apr 06 09:20:46 2019 +0000
+++ b/main.cpp Sat Apr 06 09:29:05 2019 +0000
@@ -95,11 +95,11 @@
printf("CAN: mess %d\n\r", pose);
/*
- if (pose == 0)
+ if (pose == 1)
{
motor->run(StepperMotor::FWD);
}
- else if (pose == 1)
+ else if (pose == 0)
{
motor->soft_stop();
current_pose= motor->get_position();