Browse Source

AP_InertialSensor: fixed build warnings

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
6a2c585632
  1. 4
      libraries/AP_InertialSensor/AP_InertialSensor.cpp

4
libraries/AP_InertialSensor/AP_InertialSensor.cpp

@ -443,8 +443,8 @@ bool AP_InertialSensor::_calculate_trim(const Vector3f &accel_sample, float& tri @@ -443,8 +443,8 @@ bool AP_InertialSensor::_calculate_trim(const Vector3f &accel_sample, float& tri
return false;
}
hal.console->printf_P(PSTR("Trim OK: roll=%.2f pitch=%.2f\n"),
degrees(trim_roll),
degrees(trim_pitch));
(double)degrees(trim_roll),
(double)degrees(trim_pitch));
return true;
}

Loading…
Cancel
Save