Browse Source

AP_Common: Include altitude in the init check for a location

master
Michael du Breuil 5 years ago committed by Andrew Tridgell
parent
commit
819d1b5246
  1. 2
      libraries/AP_Common/Location.h

2
libraries/AP_Common/Location.h

@ -112,7 +112,7 @@ public: @@ -112,7 +112,7 @@ public:
*/
float line_path_proportion(const Location &point1, const Location &point2) const;
bool initialised() const { return (lat !=0 || lng != 0); }
bool initialised() const { return (lat !=0 || lng != 0 || alt != 0); }
private:
static AP_Terrain *_terrain;

Loading…
Cancel
Save