Browse Source

Plane: fixed conditional for 0 lat/lon

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
343a682d22
  1. 2
      ArduPlane/commands_logic.pde

2
ArduPlane/commands_logic.pde

@ -390,7 +390,7 @@ static void do_loiter_to_alt(const AP_Mission::Mission_Command& cmd) @@ -390,7 +390,7 @@ static void do_loiter_to_alt(const AP_Mission::Mission_Command& cmd)
condition_value = next_WP_loc.alt;
//are lat and lon 0? if so, don't change the current wp lat/lon
if (cmd.content.location.lat != 0 && cmd.content.location.lng != 0) {
if (cmd.content.location.lat != 0 || cmd.content.location.lng != 0) {
set_next_WP(cmd.content.location);
}
//set loiter direction

Loading…
Cancel
Save