Auto switch to manual for testing

This commit is contained in:
Julian Marmier 2024-06-25 20:52:39 +02:00
parent 171d2807d4
commit 6fcbe4c5a5
2 changed files with 7 additions and 1 deletions

View File

@ -45,7 +45,7 @@ void ui_thread_entry(ULONG _) {
tx_event_flags_set(&gui_update_events, GUI_UPDATE_NEXT_SCREEN, TX_OR); 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); led_start_animation(ANIM_RAINBOW);
} }

View File

@ -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_VOLTAGE1, 0x7FF);
ftcan_add_filter(CAN_ID_SHUNT_VOLTAGE2, 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) { while (1) {
tx_thread_sleep(10); tx_thread_sleep(10);
} }