ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: External Led indication for GPS Lock and HDOP <= GPS_HDOP_Good

Open RogerHill opened this issue 13 years ago • 10 comments

I would like to propose a change to the operation of the GPS external led (A6)

Instead of "will flash with no GPS lock, solid with GPS lock" as currently defined in the Wiki, I propose the following: Led Off for no lock, Flash for lock and Solid for lock and HDOP <= GPS_HDOP_GOOD.

RogerHill avatar Nov 23 '13 23:11 RogerHill

What if there were an actual hardware problem in GPS and it failed to start/or failed mid-flight ?

hpcre avatar Nov 27 '13 01:11 hpcre

@hpcre, This would trigger a GPS failsafe and the copter would try to LAND. the blue light would go off or start blinking. http://copter.ardupilot.com/wiki/battery-gps-and-gcs-failsafes/#GPS_Failsafe

rmackay9 avatar Nov 27 '13 02:11 rmackay9

@rmackay9,

Gps failsafe depends on your settings and your current flight mode. For example, I might be flying in stab, and thinking of switching to loiter our RTL, I'd have a look at the GPS led from the ground to make sure it's locked in before I switch. With your proposed change, with GPS led off, I wouldn't know if the gps is actually functional but no lock or has a complete failure. Would be confusing.

hpcre avatar Nov 29 '13 00:11 hpcre

@hpcre

I am not sure that this would create confusion as led off indicates no lock or failure either way you cant use an auto mode when in thus state. A flashing led is telling you that the GPS is okay and has lock, but you should not use auto modes until the HDOP drops to acceptable levels which will be indicated by a solid led.

@rmackay9

I see that you have been working on the led code, what are your thoughts on this proposed change?

RogerHill avatar Nov 30 '13 21:11 RogerHill

I'd like to reserve 'led off' for the case when no GPS is present. Using solid for the case where we have lock and a good hdop seems reasonable.

The only thing i'd say is a ground station is a better way to get good information from the flight controller.

rmackay9 avatar Nov 30 '13 22:11 rmackay9

@RogerHill

Ok, i really didn't pay attention that HDOP is important b4 i use any auto modes.

Could we possibly make the flashing in different frequencies, fast and slow, to indicate total failure or a temporary "no fix". along with making sure that the minimum nsat is satisfied as well..

hpcre avatar Nov 30 '13 22:11 hpcre

@hpcre I believe that HDOP <= GPS_HDOP_GOOD is also indicating adequate nsats's for auto modes.

@rmackay9

Sounds good. So we would have:

Led off: No GPS or faulty GPS Led flash: GPS Installed and Good Led Solid: GPS Good, Locked and HDOP <= GPS_HDOP_GOOD

I look forward to you being able to find the time to implement some of these nice to have features!

Many thanks, Roger...

RogerHill avatar Dec 01 '13 00:12 RogerHill

another suggestion:

  1. Led flash on failsafe.
  2. Solid Led light on ARM.
  3. Sequence of Led flashes for battery failsafe.

thanks jay

jaydrones avatar Dec 03 '13 03:12 jaydrones

I fully agree that a new LED flashing sequence would be great to inform user of a more detail status of the GPS. There is nothing worse than moving to another location and waiting for the GPS HDOP to get below 2 with no indication of when this happens. I just stand there and continually try to ARM not knowing the real GPS status. If suggested below was implemented, then the user would know when it was possible to ARM.

Blue Led off or flashing very slow: No GPS or faulty GPS Blue Led fast flash: GPS Installed and Good Blue Led Solid: GPS Good, Locked and HDOP <= GPS_HDOP_GOOD

It would be a great if this sort of change could be implemented soon. Thanks

jonlan25 avatar Jan 09 '14 00:01 jonlan25

Done

lthall avatar Jan 12 '18 01:01 lthall