Browse Source

Plane: altitude for do_set_home() is in meters

mission-4.1.18
Andrew Tridgell 11 years ago committed by Randy Mackay
parent
commit
d4510d9b9b
  1. 2
      ArduPlane/commands_logic.pde

2
ArduPlane/commands_logic.pde

@ -571,7 +571,7 @@ static void do_set_home(const AP_Mission::Mission_Command& cmd) @@ -571,7 +571,7 @@ static void do_set_home(const AP_Mission::Mission_Command& cmd)
if (cmd.p1 == 1 && g_gps->status() == GPS::GPS_OK_FIX_3D) {
init_home();
} else {
ahrs.set_home(cmd.content.location.lat, cmd.content.location.lng, cmd.content.location.alt);
ahrs.set_home(cmd.content.location.lat, cmd.content.location.lng, cmd.content.location.alt*100.0f);
home_is_set = true;
}
}

Loading…
Cancel
Save