mirror of https://github.com/ArduPilot/ardupilot
DataFlash: added staticmode to EKF4 message
useful when diagnosing logs
This commit is contained in:
parent
46f601d703
commit
09547c40cb
|
@ -338,6 +338,7 @@ struct PACKED log_EKF4 {
|
|||
int8_t offsetNorth;
|
||||
int8_t offsetEast;
|
||||
uint8_t faults;
|
||||
uint8_t staticmode;
|
||||
};
|
||||
|
||||
struct PACKED log_Cmd {
|
||||
|
@ -474,7 +475,7 @@ struct PACKED log_Ubx3 {
|
|||
{ LOG_EKF3_MSG, sizeof(log_EKF3), \
|
||||
"EKF3","Icccccchhhc","TimeMS,IVN,IVE,IVD,IPN,IPE,IPD,IMX,IMY,IMZ,IVT" }, \
|
||||
{ LOG_EKF4_MSG, sizeof(log_EKF4), \
|
||||
"EKF4","IcccccccbbB","TimeMS,SV,SP,SH,SMX,SMY,SMZ,SVT,OFN,EFE,FS" }, \
|
||||
"EKF4","IcccccccbbBB","TimeMS,SV,SP,SH,SMX,SMY,SMZ,SVT,OFN,EFE,FS,StaticMode" }, \
|
||||
{ LOG_TERRAIN_MSG, sizeof(log_TERRAIN), \
|
||||
"TERR","IBLLHffHH","TimeMS,Status,Lat,Lng,Spacing,TerrH,CHeight,Pending,Loaded" }, \
|
||||
{ LOG_UBX1_MSG, sizeof(log_Ubx1), \
|
||||
|
|
|
@ -987,7 +987,8 @@ void DataFlash_Class::Log_Write_EKF(AP_AHRS_NavEKF &ahrs)
|
|||
sqrtvarVT : (int16_t)(100*tasVar),
|
||||
offsetNorth : (int8_t)(offset.x),
|
||||
offsetEast : (int8_t)(offset.y),
|
||||
faults : (uint8_t)(faultStatus)
|
||||
faults : (uint8_t)(faultStatus),
|
||||
staticmode : (uint8_t)(ahrs.get_NavEKF().getStaticMode())
|
||||
};
|
||||
WriteBlock(&pkt4, sizeof(pkt4));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue