mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
SITL: add diagnostics when bad GPS backend specified
This commit is contained in:
parent
494d72503a
commit
5199be9914
@ -26,6 +26,8 @@
|
|||||||
#include "SIM_GPS_SBP.h"
|
#include "SIM_GPS_SBP.h"
|
||||||
#include "SIM_GPS_UBLOX.h"
|
#include "SIM_GPS_UBLOX.h"
|
||||||
|
|
||||||
|
#include <GCS_MAVLink/GCS.h>
|
||||||
|
|
||||||
// the number of GPS leap seconds - copied from AP_GPS.h
|
// the number of GPS leap seconds - copied from AP_GPS.h
|
||||||
#define GPS_LEAPSECONDS_MILLIS 18000ULL
|
#define GPS_LEAPSECONDS_MILLIS 18000ULL
|
||||||
|
|
||||||
@ -279,6 +281,9 @@ void GPS::check_backend_allocation()
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (configured_type != Type::NONE && backend == nullptr) {
|
||||||
|
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "SIM_GPS: No backend for %u", (unsigned)configured_type);
|
||||||
|
}
|
||||||
allocated_type = configured_type;
|
allocated_type = configured_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user