Browse Source

AP_NavEKF3: fixed undefined behaviour in logging

apm_2208
Andrew Tridgell 3 years ago
parent
commit
e2a83ba428
  1. 2
      libraries/AP_NavEKF3/AP_NavEKF3_Logging.cpp

2
libraries/AP_NavEKF3/AP_NavEKF3_Logging.cpp

@ -191,7 +191,7 @@ void NavEKF3_core::Log_Write_XKF5(uint64_t time_us) const @@ -191,7 +191,7 @@ void NavEKF3_core::Log_Write_XKF5(uint64_t time_us) const
FIX : (int16_t)(1000*flowInnov[0]), // optical flow LOS rate vector innovations from the main nav filter
FIY : (int16_t)(1000*flowInnov[1]), // optical flow LOS rate vector innovations from the main nav filter
AFI : (int16_t)(1000 * auxFlowObsInnov.length()), // optical flow LOS rate innovation from terrain offset estimator
HAGL : (int16_t)(100*(terrainState - stateStruct.position.z)), // height above ground level
HAGL : float_to_int16(100*(terrainState - stateStruct.position.z)), // height above ground level
offset : (int16_t)(100*terrainState), // filter ground offset state error
RI : (int16_t)(100*innovRng), // range finder innovations
meaRng : (uint16_t)(100*rangeDataDelayed.rng), // measured range

Loading…
Cancel
Save