mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 08:43:34 +08:00
move baro and magnetometer data out of sensor_combined
This commit is contained in:
@@ -41,9 +41,9 @@ int BlockLocalPositionEstimator::baroMeasure(Vector<float, n_y_baro> &y)
|
||||
{
|
||||
//measure
|
||||
y.setZero();
|
||||
y(0) = _sub_sensor.get().baro_alt_meter;
|
||||
y(0) = _sub_airdata.get().baro_alt_meter;
|
||||
_baroStats.update(y);
|
||||
_time_last_baro = _timeStamp;
|
||||
_time_last_baro = _sub_airdata.get().timestamp;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user