]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
motor-control: Fix compilation errors
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 2 May 2011 09:01:34 +0000 (11:01 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 2 May 2011 09:01:34 +0000 (11:01 +0200)
src/motor-control/brushless.c

index 6bb4dc1ea8acd4bcbb405ac573235c9f5422e1ac..842357bed64c9016ba58c96b4e99094e2b7f87ff 100644 (file)
@@ -607,11 +607,6 @@ static INLINE void handle_can_receive(void)
                 break;
            }
 
-           case CAN_CORR_TRIG:
-               odometry_triggered = true;
-               trig_seq = msg_rcv.data[0];
-               blink_corr_trig();
-               break;
         }
 
        led_can_rec(5);
@@ -723,7 +718,7 @@ int main()
     printf("PXMC initialized (motor: %s)", pxmc_variant);
     printf("\n");
 
-    int32_t receive_id[] = { CAN_CORR_TRIG, CAN_MOTION_CMD, CAN_MOTION_RESET, -1 };
+    int32_t receive_id[] = { CAN_MOTION_CMD, CAN_MOTION_RESET, -1 };
     canInit(0, 1000000, receive_id);
     printf("CAN initialized\n");