Browse Source

AP_GPS: add gps() to AP:: namespace

mission-4.1.18
Peter Barker 7 years ago committed by Francisco Ferreira
parent
commit
693823ae0d
  1. 9
      libraries/AP_GPS/AP_GPS.cpp
  2. 4
      libraries/AP_GPS/AP_GPS.h

9
libraries/AP_GPS/AP_GPS.cpp

@ -1519,3 +1519,12 @@ bool AP_GPS::prepare_for_arming(void) { @@ -1519,3 +1519,12 @@ bool AP_GPS::prepare_for_arming(void) {
}
return all_passed;
}
namespace AP {
AP_GPS &gps()
{
return AP_GPS::gps();
}
};

4
libraries/AP_GPS/AP_GPS.h

@ -562,3 +562,7 @@ private: @@ -562,3 +562,7 @@ private:
};
};
namespace AP {
AP_GPS &gps();
};

Loading…
Cancel
Save