BE@R lab / motion_control

Dependencies:   motor_relay

Dependents:   dog_V3_3_testmotor

Revision:
6:41d7cf11fdb1
Parent:
5:91d905f8bef7
Child:
7:94518aee126b
--- a/motion_control.cpp	Sun Jul 19 17:38:21 2015 +0000
+++ b/motion_control.cpp	Mon Jul 20 09:15:28 2015 +0000
@@ -41,7 +41,7 @@
 {
     uint16_t current =Scale(_position.read_u16());
     //target = Scale(target);
-    if(target > scale || target < 0) {
+    if(target > scale) {
         return -3;
     }