Browse Source

Plane: fix compiler warning re double promotion

mission-4.1.18
Tom Pittenger 10 years ago committed by Randy Mackay
parent
commit
ee9a66bd02
  1. 2
      ArduPlane/landing.cpp

2
ArduPlane/landing.cpp

@ -85,7 +85,7 @@ bool Plane::verify_land() @@ -85,7 +85,7 @@ bool Plane::verify_land()
// this is done before disarm_if_autoland_complete() so that it happens on the next loop after the disarm
if (auto_state.post_landing_stats && !arming.is_armed()) {
auto_state.post_landing_stats = false;
gcs_send_text_fmt(PSTR("Distance from LAND point=%.2fm"), get_distance(current_loc, next_WP_loc));
gcs_send_text_fmt(PSTR("Distance from LAND point=%.2fm"), (double)get_distance(current_loc, next_WP_loc));
}
// check if we should auto-disarm after a confirmed landing

Loading…
Cancel
Save