mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 18:33:34 +08:00
ekf: move gps checks to Ekf library from estimator_base
This commit is contained in:
@@ -52,6 +52,16 @@
|
||||
#define MASK_GPS_HSPD (1<<7)
|
||||
#define MASK_GPS_VSPD (1<<8)
|
||||
|
||||
bool Ekf::collect_gps(uint64_t time_usec, struct gps_message *gps)
|
||||
{
|
||||
if(_gps_initialised) {
|
||||
return true;
|
||||
} else {
|
||||
initialiseGPS(gps);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void Ekf::initialiseGPS(struct gps_message *gps)
|
||||
{
|
||||
//Check if the GPS fix is good enough for us to use
|
||||
|
||||
Reference in New Issue
Block a user