APMrover2: fix passing AP_Float to printf

Call get() to return the contained float value.
This commit is contained in:
Lucas De Marchi 2015-10-29 12:53:04 -02:00 committed by Randy Mackay
parent 68bef1ec64
commit 79230bc68d

View File

@ -215,7 +215,7 @@ int8_t Rover::test_wp(uint8_t argc, const Menu::arg *argv)
delay(1000);
cliSerial->printf("%u waypoints\n", (unsigned)mission.num_commands());
cliSerial->printf("Hit radius: %f\n", g.waypoint_radius);
cliSerial->printf("Hit radius: %f\n", g.waypoint_radius.get());
for(uint8_t i = 0; i < mission.num_commands(); i++){
AP_Mission::Mission_Command temp_cmd;