Skip to content

Commit

Permalink
Fix HIGHRES_IMU pressure unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Toledano committed Dec 19, 2024
1 parent bdc17b4 commit ae7941d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/mavlink/streams/HIGHRES_IMU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class MavlinkStreamHighresIMU : public MavlinkStream
msg.xmag = mag(0);
msg.ymag = mag(1);
msg.zmag = mag(2);
msg.abs_pressure = air_data.baro_pressure_pa;
msg.diff_pressure = differential_pressure.differential_pressure_pa;
msg.abs_pressure = air_data.baro_pressure_pa * 0.01f; // Pa to hPa
msg.diff_pressure = differential_pressure.differential_pressure_pa * 0.01f; // Pa to hPa
msg.pressure_alt = air_data.baro_alt_meter;
msg.temperature = air_data.baro_temp_celcius;
msg.fields_updated = fields_updated;
Expand Down

0 comments on commit ae7941d

Please sign in to comment.