Compare commits
2 Commits
f97daa8df3
...
a5f9f3019a
Author | SHA1 | Date | |
---|---|---|---|
a5f9f3019a | |||
e6f77a5e29 |
@ -211,6 +211,9 @@ int main(void)
|
|||||||
// Ensure we start with SDC disabled
|
// Ensure we start with SDC disabled
|
||||||
HAL_GPIO_WritePin(AS_close_SDC_GPIO_Port, AS_close_SDC_Pin, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(AS_close_SDC_GPIO_Port, AS_close_SDC_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
// Show ASB Error by default until we receive CAN
|
||||||
|
HAL_GPIO_WritePin(ASB_Error_GPIO_Port, ASB_Error_Pin, GPIO_PIN_SET);
|
||||||
|
|
||||||
if (HAL_CAN_Start(&hcan) != HAL_OK)
|
if (HAL_CAN_Start(&hcan) != HAL_OK)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
|
|
||||||
@ -256,9 +259,8 @@ int main(void)
|
|||||||
mission_t new_mission = mission; // By default, don't change mission
|
mission_t new_mission = mission; // By default, don't change mission
|
||||||
|
|
||||||
// Wait at least 1s to prevent bus error state while ABX is starting up
|
// Wait at least 1s to prevent bus error state while ABX is starting up
|
||||||
// Wait at least 5s for the discharge of the DC link (so AMS can't restart)
|
|
||||||
// During that time, show loading animation to show LEDs work
|
// During that time, show loading animation to show LEDs work
|
||||||
while (HAL_GetTick() < 5000) {
|
while (HAL_GetTick() < 1000) {
|
||||||
setMissionLED(M_MANUAL, GPIO_PIN_SET);
|
setMissionLED(M_MANUAL, GPIO_PIN_SET);
|
||||||
HAL_Delay(150);
|
HAL_Delay(150);
|
||||||
setMissionLED(M_MANUAL, GPIO_PIN_RESET);
|
setMissionLED(M_MANUAL, GPIO_PIN_RESET);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user