Add AMS Error popup
This commit is contained in:
@ -55,6 +55,23 @@ typedef enum {
|
||||
INICHK_ERROR = 9
|
||||
} IniChkState;
|
||||
|
||||
typedef enum {
|
||||
AMS_ERROR_NONE = 0x00,
|
||||
AMS_ERROR_SLAVE_TIMEOUT = 0x01,
|
||||
AMS_ERROR_SLAVE_PANIC = 0x02,
|
||||
AMS_ERROR_SHUNT_TIMEOUT = 0x03,
|
||||
AMS_ERROR_SHUNT_OVERCURRENT = 0x04,
|
||||
AMS_ERROR_SHUNT_OVERTEMP = 0x05
|
||||
} AMSErrorKind;
|
||||
typedef enum {
|
||||
AMS_SLAVEPANIC_OVERTEMP = 0x00,
|
||||
AMS_SLAVEPANIC_UNDERTEMP = 0x01,
|
||||
AMS_SLAVEPANIC_OVERVOLTAGE = 0x02,
|
||||
AMS_SLAVEPANIC_UNDERVOLTAGE = 0x03,
|
||||
AMS_SLAVEPANIC_TOO_FEW_TEMP = 0x04,
|
||||
AMS_SLAVEPANIC_OPENWIRE = 0x05
|
||||
} AMSSlavePanicKind;
|
||||
|
||||
typedef struct {
|
||||
float fl;
|
||||
float fr;
|
||||
@ -89,6 +106,15 @@ typedef struct {
|
||||
int err_invl : 1;
|
||||
int err_invr : 1;
|
||||
} errors;
|
||||
struct {
|
||||
AMSErrorKind kind;
|
||||
uint8_t arg;
|
||||
} last_ams_error;
|
||||
struct {
|
||||
uint8_t id;
|
||||
AMSSlavePanicKind kind;
|
||||
uint32_t arg;
|
||||
} last_ams_slave_panic;
|
||||
IniChkState ini_chk_state;
|
||||
|
||||
unsigned lap_count;
|
||||
|
||||
Reference in New Issue
Block a user