If you use throttle input, you'll be able to try flying without the Remove Before Fly pin. I had to restructure the GPS reading routines to do this. Now the system goes immediately into the main control loop. This has a few benefits:
- The GPS led blinks when GPS fix is lost instead of just turning off.
- You don't need to remove the pin before flight - much cleaner for systems buried into the fuse.
- You don't need to worry about GPS lock if you are just flying stabilization
The GPS LED will turn solid as soon as it gets a good lock. If you are in manual mode, with the throttle all the way down, you will be in "ground start" which is simply a way to save your radio trim values and reset the Waypoint to 1. A ground start will also allow home to be set after the first good GPS fix. Even if you have in-air restart with a false positive for ground-start, the worse that could happen is you reset your hoe position.
If you don't read in the throttle with the jumper to pin 13, you have to still use the RBF pin.
I've also updated support for reverse throttle for those users who want low throttle with high PWM values.
I have not flown this revision, so if you're willing to help me test it I would appreciate it.
Thanks,
Jason
Comments
Earl
Sorry to be a little off subject but I wondered if you considered my earlier email comments on the get_distance computation - the issue of doing the subtraction of latitude/longitude as longs before converting to floating point. Otherwise the error can be as large as 40 feet or so (I think).
Dave.
Earl
Doug, let's keep discussing the imu needs. I just wanted to try this method out as it significantly streamlines the internals.
Jason were you uncomfortable with the idea of using gps ground speed as the criteria? To be clear the way I am doing that does not block anything - the main loop starts up and runs and when we get gps lock we check ground speed. If it is below threshold then we perform ground start.
I don't have any strong feeling about what the threshold is (as long as it is a reasonably reliable indicator of being on the ground). It would be good to sort it out and use the same one....
Reason I ask is, I never get a solid blue, and have noticed two blink rates during testing so far.
One slower blinking if rc tx is shut off (must be detecting failsafe on ar500 I assume)
and fast blink all other times.