|
|
|
@ -224,6 +224,8 @@ void Simulator::update_sensors(const hrt_abstime &time, const mavlink_hil_sensor
@@ -224,6 +224,8 @@ void Simulator::update_sensors(const hrt_abstime &time, const mavlink_hil_sensor
|
|
|
|
|
|
|
|
|
|
_px4_mag_0.set_temperature(sensors.temperature); |
|
|
|
|
_px4_mag_1.set_temperature(sensors.temperature); |
|
|
|
|
|
|
|
|
|
_sensors_temperature = sensors.temperature; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -274,7 +276,7 @@ void Simulator::update_sensors(const hrt_abstime &time, const mavlink_hil_sensor
@@ -274,7 +276,7 @@ void Simulator::update_sensors(const hrt_abstime &time, const mavlink_hil_sensor
|
|
|
|
|
if ((sensors.fields_updated & SensorSource::DIFF_PRESS) == SensorSource::DIFF_PRESS && !_airspeed_blocked) { |
|
|
|
|
differential_pressure_s report{}; |
|
|
|
|
report.timestamp = time; |
|
|
|
|
report.temperature = sensors.temperature; |
|
|
|
|
report.temperature = _sensors_temperature; |
|
|
|
|
report.differential_pressure_filtered_pa = sensors.diff_pressure * 100.0f; // convert from millibar to bar;
|
|
|
|
|
report.differential_pressure_raw_pa = sensors.diff_pressure * 100.0f; // convert from millibar to bar;
|
|
|
|
|
|
|
|
|
|