Files
PX4-Autopilot/src
Ramon Roche 35c5b21867 fix(ekf2): repair the ULog to replay csv converter
The replay csv generator drifted away from both the current message
definitions and the C++ loader that consumes its output.

The range finder reused the 'quality' column name of the optical flow, so
pandas merged the two columns and the distance was appended behind the
quality. SensorSimulator::setSingleReplaySample() reads the distance first,
so any log containing both sensors produced swapped range samples. Give the
range finder its own column names.

getGpsData() still read the removed alt/lon/lat fields of
vehicle_gps_position, so every GPS sample was silently dropped. Read
altitude_msl_m/latitude_deg/longitude_deg instead, emit them in the
altitude, latitude, longitude order the loader expects, and scale the
degrees by 1e7 to compensate for the 1e-7 rescale the loader still applies.

getVioData() read the removed x/y/z and vx/vy/vz fields, use position[] and
velocity[].

The bare except clauses hid all of this behind "X data not detected", so
print the exception too. Missing topics are still skipped, not fatal.

Assisted-by: Claude:claude-opus-5[1m]
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-09-28 11:22:17 -07:00
..
…