Basic code for linear actuator and end effector motor
Dependencies: QEI X_NUCLEO_IHM04A1 arm_linear_can_2
Revision 22:137d1ef8d22d, committed 2019-04-06
- Comitter:
- stebonicelli
- Date:
- Sat Apr 06 09:29:05 2019 +0000
- Parent:
- 21:533d014f09e0
- Child:
- 23:3110010d98a0
- Commit message:
- commands fix;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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();