AP_Logger: log accumulated power status flags; all flags ever set
This commit is contained in:
parent
bd8c4017bc
commit
721d94a23b
@ -480,6 +480,7 @@ void AP_Logger::Write_Power(void)
|
|||||||
Vcc : hal.analogin->board_voltage(),
|
Vcc : hal.analogin->board_voltage(),
|
||||||
Vservo : hal.analogin->servorail_voltage(),
|
Vservo : hal.analogin->servorail_voltage(),
|
||||||
flags : hal.analogin->power_status_flags(),
|
flags : hal.analogin->power_status_flags(),
|
||||||
|
accumulated_flags : hal.analogin->accumulated_power_status_flags(),
|
||||||
safety_and_arm : safety_and_armed
|
safety_and_arm : safety_and_armed
|
||||||
};
|
};
|
||||||
WriteBlock(&pkt, sizeof(pkt));
|
WriteBlock(&pkt, sizeof(pkt));
|
||||||
|
@ -392,6 +392,7 @@ struct PACKED log_POWR {
|
|||||||
float Vcc;
|
float Vcc;
|
||||||
float Vservo;
|
float Vservo;
|
||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
|
uint16_t accumulated_flags;
|
||||||
uint8_t safety_and_arm;
|
uint8_t safety_and_arm;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1930,6 +1931,7 @@ struct PACKED log_Arm_Disarm {
|
|||||||
// @Field: Vcc: Flight board voltage
|
// @Field: Vcc: Flight board voltage
|
||||||
// @Field: VServo: Servo rail voltage
|
// @Field: VServo: Servo rail voltage
|
||||||
// @Field: Flags: System power flags
|
// @Field: Flags: System power flags
|
||||||
|
// @Field: AccFlags: Accumulated System power flags; all flags which have ever been set
|
||||||
// @Field: Safety: Hardware Safety Switch status
|
// @Field: Safety: Hardware Safety Switch status
|
||||||
|
|
||||||
// @LoggerMessage: PRX
|
// @LoggerMessage: PRX
|
||||||
@ -2356,7 +2358,7 @@ struct PACKED log_Arm_Disarm {
|
|||||||
{ LOG_BARO_MSG, sizeof(log_BARO), \
|
{ LOG_BARO_MSG, sizeof(log_BARO), \
|
||||||
"BARO", BARO_FMT, BARO_LABELS, BARO_UNITS, BARO_MULTS }, \
|
"BARO", BARO_FMT, BARO_LABELS, BARO_UNITS, BARO_MULTS }, \
|
||||||
{ LOG_POWR_MSG, sizeof(log_POWR), \
|
{ LOG_POWR_MSG, sizeof(log_POWR), \
|
||||||
"POWR","QffHB","TimeUS,Vcc,VServo,Flags,Safety", "svv--", "F00--" }, \
|
"POWR","QffHHB","TimeUS,Vcc,VServo,Flags,AccFlags,Safety", "svv---", "F00---" }, \
|
||||||
{ LOG_CMD_MSG, sizeof(log_Cmd), \
|
{ LOG_CMD_MSG, sizeof(log_Cmd), \
|
||||||
"CMD", "QHHHffffLLfB","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt,Frame", "s-------DUm-", "F-------GG0-" }, \
|
"CMD", "QHHHffffLLfB","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt,Frame", "s-------DUm-", "F-------GG0-" }, \
|
||||||
{ LOG_MAVLINK_COMMAND_MSG, sizeof(log_MAVLink_Command), \
|
{ LOG_MAVLINK_COMMAND_MSG, sizeof(log_MAVLink_Command), \
|
||||||
|
Loading…
Reference in New Issue
Block a user