mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 05:00:35 +08:00
temperature_calibration:Use inttypes
This commit is contained in:
committed by
Julian Oes
parent
d73f842151
commit
77082188d8
@@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2016-2020 PX4 Development Team. All rights reserved.
|
||||
* Copyright (c) 2016-2020, 2021 PX4 Development Team. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -66,7 +66,8 @@ void TemperatureCompensationModule::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_gyro(report.device_id, uorb_index);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_INFO("No temperature calibration available for gyro %i (device id %u)", uorb_index, report.device_id);
|
||||
PX4_INFO("No temperature calibration available for gyro %" PRIu8 " (device id %" PRIu32 ")", uorb_index,
|
||||
report.device_id);
|
||||
_corrections.gyro_device_ids[uorb_index] = 0;
|
||||
|
||||
} else {
|
||||
@@ -83,7 +84,8 @@ void TemperatureCompensationModule::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_accel(report.device_id, uorb_index);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_INFO("No temperature calibration available for accel %i (device id %u)", uorb_index, report.device_id);
|
||||
PX4_INFO("No temperature calibration available for accel %" PRIu8 " (device id %" PRIu32 ")", uorb_index,
|
||||
report.device_id);
|
||||
_corrections.accel_device_ids[uorb_index] = 0;
|
||||
|
||||
} else {
|
||||
@@ -100,7 +102,8 @@ void TemperatureCompensationModule::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_baro(report.device_id, uorb_index);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_INFO("No temperature calibration available for baro %i (device id %u)", uorb_index, report.device_id);
|
||||
PX4_INFO("No temperature calibration available for baro %" PRIu8 " (device id %" PRIu32 ")", uorb_index,
|
||||
report.device_id);
|
||||
_corrections.baro_device_ids[uorb_index] = 0;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user