Browse Source

Plane: fixed APM2 build

master
Andrew Tridgell 11 years ago
parent
commit
88b73492c2
  1. 2
      ArduPlane/altitude.pde

2
ArduPlane/altitude.pde

@ -357,9 +357,11 @@ static bool above_location_current(const Location &loc)
*/ */
static void setup_terrain_target_alt(Location &loc) static void setup_terrain_target_alt(Location &loc)
{ {
#if AP_TERRAIN_AVAILABLE
if (g.terrain_follow) { if (g.terrain_follow) {
loc.flags.terrain_alt = true; loc.flags.terrain_alt = true;
} }
#endif
} }
/* /*

Loading…
Cancel
Save