]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/eb_lift_11/main.c
eb_lift_11: add homing flag to can lift cmd.
[eurobot/public.git] / src / eb_lift_11 / main.c
index 277c18d216bd784cc125c16d1a8f652710acb36e..9e5266610de265ffe5b8ae21abd963be7758da9e 100644 (file)
@@ -261,6 +261,7 @@ void CAN_rx(can_msg_t *msg) {
                        deb_led_on(LEDB);
                        req = ((rx_msg.data[0]<<8) | (rx_msg.data[1]));
                        spd = rx_msg.data[2];
+                        fsm_lift.can_req_homing=rx_msg.data[3];
                        // range 0 - A9C5
                        if (req >= LIFT_IRC_VAL_MIN && req <= LIFT_IRC_VAL_MAX) {
                                fsm_lift.flags &= ~CAN_LIFT_OUT_OF_BOUNDS;