Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/AP_ExternalAHRS/AP_ExternalAHRS_InertialLabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ bool AP_ExternalAHRS_InertialLabs::check_uart()
case MessageType::TEMPERATURE: {
CHECK_SIZE(u.temperature);
// assume same temperature for baro and airspeed
baro_data.temperature = u.temperature*0.1; // degC
// setting temp to 25 effectively disables barometer temperature calibrations - these are already performed by InertialLabs
baro_data.temperature = 25;
airspeed_data.temperature = u.temperature*0.1; // degC
ins_data.temperature = u.temperature*0.1;
break;
Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_ExternalAHRS/AP_ExternalAHRS_SBG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ void AP_ExternalAHRS_SBG::handle_msg(const sbgMessage &msg)

if ((cached.sbg.airData.status & SBG_ECOM_AIR_DATA_TEMPERATURE_VALID) && (updated_baro || updated_airspeed)) {
cached.sensors.airspeed_data.temperature = cached.sbg.airData.airTemperature;
cached.sensors.baro_data.temperature = cached.sbg.airData.airTemperature;
// setting temp to 25 effectively disables barometer temperature calibrations - these are already performed by SBG
cached.sensors.baro_data.temperature = 25;
}
break;

Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ void AP_ExternalAHRS_VectorNav::process_imu_packet(const uint8_t *b)
AP_ExternalAHRS::baro_data_message_t baro;
baro.instance = 0;
baro.pressure_pa = pkt.pressure * 1e3;
baro.temperature = pkt.temp;
// setting temp to 25 effectively disables barometer temperature calibrations - these are already performed by VectorNav
baro.temperature = 25;

AP::baro().handle_external(baro);
}
Expand Down
Loading