__
Dependencies: X_NUCLEO_IHM04A1
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();