AP_Notify: Add gps_num_sats

This commit is contained in:
mirkix 2015-12-22 22:14:15 +01:00 committed by Lucas De Marchi
parent a803cfd1e8
commit dee20a31f1
2 changed files with 2 additions and 0 deletions

View File

@ -428,6 +428,7 @@ AP_GPS::update(void)
// update notify with gps status. We always base this on the primary_instance
AP_Notify::flags.gps_status = state[primary_instance].status;
AP_Notify::flags.gps_num_sats = state[primary_instance].num_sats;
}
/*

View File

@ -55,6 +55,7 @@ public:
struct notify_flags_type {
uint32_t initialising : 1; // 1 if initialising and copter should not be moved
uint32_t gps_status : 3; // 0 = no gps, 1 = no lock, 2 = 2d lock, 3 = 3d lock, 4 = dgps lock, 5 = rtk lock
uint32_t gps_num_sats : 6; // number of sats
uint32_t armed : 1; // 0 = disarmed, 1 = armed
uint32_t pre_arm_check : 1; // 0 = failing checks, 1 = passed
uint32_t pre_arm_gps_check : 1; // 0 = failing pre-arm GPS checks, 1 = passed