]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
cand: Switched direction of motion - left/right. Forward, backward is OK.
authorMichal Vokac <vokac.m@gmail.com>
Thu, 5 May 2011 14:56:55 +0000 (16:56 +0200)
committerMichal Vokac <vokac.m@gmail.com>
Thu, 5 May 2011 14:56:55 +0000 (16:56 +0200)
src/cand/cand.cc

index 60355862daf0d8cf7e8138f6ecb8dfdd7a90adaa..e5b72f1d58735a909c6f5b27a2cad23b687de496 100644 (file)
@@ -105,10 +105,10 @@ int set_motor_speed(struct robottype_orte_data *orte_data)
 {
        unsigned char data[4];
 
-       data[0] = orte_data->motion_speed.right >> 8;
-       data[1] = orte_data->motion_speed.right & 0xff;
-       data[2] = orte_data->motion_speed.left >> 8;
-       data[3] = orte_data->motion_speed.left & 0xff;
+       data[0] = orte_data->motion_speed.left >> 8;
+       data[1] = orte_data->motion_speed.left & 0xff;
+       data[2] = orte_data->motion_speed.right >> 8;
+       data[3] = orte_data->motion_speed.right & 0xff;
        can_send(CAN_MOTION_CMD, 4, data);
 
        return 0;