mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 22:30:35 +08:00
Update airspeed interface
This commit is contained in:
committed by
Paul Riseborough
parent
b8a3ed5f09
commit
856961ba85
@@ -17,8 +17,11 @@ void Airspeed::send(uint64_t time)
|
||||
{
|
||||
if(_true_airspeed_data > FLT_EPSILON && _indicated_airspeed_data > FLT_EPSILON)
|
||||
{
|
||||
float eas2tas = _true_airspeed_data / _indicated_airspeed_data;
|
||||
_ekf->setAirspeedData(time, _true_airspeed_data, eas2tas);
|
||||
airspeedSample airspeed_sample;
|
||||
airspeed_sample.time_us = time;
|
||||
airspeed_sample.eas2tas = _true_airspeed_data / _indicated_airspeed_data;
|
||||
airspeed_sample.true_airspeed = _true_airspeed_data;
|
||||
_ekf->setAirspeedData(airspeed_sample);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user