mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 20:37:34 +08:00
Merge pull request #3263 from dagar/true_airspeed
HIL calculate TAS from IAS
This commit is contained in:
@@ -1325,8 +1325,7 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg)
|
||||
struct airspeed_s airspeed = {};
|
||||
|
||||
float ias = calc_indicated_airspeed(imu.diff_pressure * 1e2f);
|
||||
// XXX need to fix this
|
||||
float tas = ias;
|
||||
float tas = calc_true_airspeed_from_indicated(ias, imu.abs_pressure * 100, imu.temperature);
|
||||
|
||||
airspeed.timestamp = timestamp;
|
||||
airspeed.indicated_airspeed_m_s = ias;
|
||||
|
||||
Reference in New Issue
Block a user