diff --git a/Core/Src/ui.c b/Core/Src/ui.c index d0131d1..cbd2169 100644 --- a/Core/Src/ui.c +++ b/Core/Src/ui.c @@ -45,7 +45,7 @@ void ui_thread_entry(ULONG _) { tx_event_flags_set(&gui_update_events, GUI_UPDATE_NEXT_SCREEN, TX_OR); } - if (button_states[5] == GPIO_PIN_SET) { + if (button_states[6] == GPIO_PIN_SET) { led_start_animation(ANIM_RAINBOW); } diff --git a/Core/Src/vehicle.c b/Core/Src/vehicle.c index a595d05..5970047 100644 --- a/Core/Src/vehicle.c +++ b/Core/Src/vehicle.c @@ -76,6 +76,12 @@ void vehicle_thread_entry(ULONG hfdcan_addr) { ftcan_add_filter(CAN_ID_SHUNT_VOLTAGE1, 0x7FF); ftcan_add_filter(CAN_ID_SHUNT_VOLTAGE2, 0x7FF); + // TODO remove once rot encoder works + tx_thread_sleep(10); + vehicle_state.active_mission = MISSION_MANUAL; + tx_event_flags_set(&gui_update_events, GUI_UPDATE_VEHICLE_STATE, TX_OR); + // end TODO + while (1) { tx_thread_sleep(10); }