mirror of https://github.com/ArduPilot/ardupilot
fixed some printf casts
This commit is contained in:
parent
35badbb97d
commit
cdf296d8f6
|
@ -611,9 +611,9 @@ test_mag(uint8_t argc, const Menu::arg *argv)
|
||||||
Vector3f maggy = compass.get_offsets();
|
Vector3f maggy = compass.get_offsets();
|
||||||
Serial.printf_P(PSTR("Heading: %ld, XYZ: %d, %d, %d,\tXYZoff: %6.2f, %6.2f, %6.2f\n"),
|
Serial.printf_P(PSTR("Heading: %ld, XYZ: %d, %d, %d,\tXYZoff: %6.2f, %6.2f, %6.2f\n"),
|
||||||
(wrap_360(ToDeg(compass.heading) * 100)) /100,
|
(wrap_360(ToDeg(compass.heading) * 100)) /100,
|
||||||
compass.mag_x,
|
(int)compass.mag_x,
|
||||||
compass.mag_y,
|
(int)compass.mag_y,
|
||||||
compass.mag_z,
|
(int)compass.mag_z,
|
||||||
maggy.x,
|
maggy.x,
|
||||||
maggy.y,
|
maggy.y,
|
||||||
maggy.z);
|
maggy.z);
|
||||||
|
|
Loading…
Reference in New Issue