Show if parameter change has been confirmed by ABX

This commit is contained in:
2023-08-02 00:33:43 +02:00
parent c32e2b71cd
commit d5b65828aa
11 changed files with 48 additions and 6 deletions

View File

@ -48,7 +48,10 @@ extern FDCAN_HandleTypeDef hfdcan1;
#define GUI_UPDATE_VEHICLE_STATE (1 << 0)
#define GUI_UPDATE_NEXT_SCREEN (1 << 1)
#define GUI_UPDATE_ALL (GUI_UPDATE_VEHICLE_STATE | GUI_UPDATE_NEXT_SCREEN)
#define GUI_UPDATE_PARAM_CONFIRMED (1 << 2)
#define GUI_UPDATE_ALL \
(GUI_UPDATE_VEHICLE_STATE | GUI_UPDATE_NEXT_SCREEN | \
GUI_UPDATE_PARAM_CONFIRMED)
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/

View File

@ -5,6 +5,7 @@
extern "C" {
#endif
#include "params.h"
#include "stw_defines.h"
#include <stdint.h>
@ -168,6 +169,8 @@ typedef struct {
float desired_speed;
ConePosition cone_pos[NUM_CONES];
ParamType last_param_confirmed;
} VehicleState;
extern VehicleState vehicle_state;