mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
move baro and magnetometer data out of sensor_combined
This commit is contained in:
@@ -249,7 +249,6 @@ void Simulator::update_sensors(mavlink_hil_sensor_t *imu)
|
||||
// Get air pressure and pressure altitude
|
||||
// valid for troposphere (below 11km AMSL)
|
||||
baro.pressure = imu->abs_pressure;
|
||||
baro.altitude = imu->pressure_alt;
|
||||
baro.temperature = imu->temperature;
|
||||
|
||||
write_baro_data(&baro);
|
||||
@@ -652,7 +651,6 @@ void Simulator::initializeSensorData()
|
||||
RawBaroData baro = {};
|
||||
// calculate air pressure from altitude (valid for low altitude)
|
||||
baro.pressure = 120000.0f;
|
||||
baro.altitude = 0.0f;
|
||||
baro.temperature = 25.0f;
|
||||
|
||||
write_baro_data(&baro);
|
||||
|
||||
Reference in New Issue
Block a user