The aim of a good UAV is to have a fall-back system by which a human pilot can take over if (when!) the autopilot goes funky. There are at least three ways to do this, all of which we feature in one or more of the autopilots here:
- Completely separate the navigation and stabilization systems and ensure that the stabilization system can be overridden by manual RC control. That's what we do in GeoCrawlers 1, 2 and 3, all of which use the FMA Co-Pilot for stabalization (it controls the ailerons and elevator, leaving just the rudder for the autopilot and navigation). If the autopilot crashes, you can still fly the plane with ailerons and elevator alone, something we end up doing all too often! (The FMA system always allows for manual input)
- Mechanically separate the autopilot and RC control systems. In the case of the Lego UAV ("GeoCrawler1"), the Lego Mindstorm system moves the whole rudder servo back and forth, but the RC system can always turn the rudder servo arm, allowing it to override the autopilot if need be.
- Install a stand-alone "MUX" or servo multiplexer, that allows the operator to switch control from the RC system to the autopilot and back again with the gear switch on the transmitter, even if the autopilot catastrophically fails. As far as I know, there's only one commercially available one of these out there, and that one, by Reactive Technologies (shown), is not cheap ($99). Still, if you install one and give it an independent power supply, there should be no reason why you can't regain control of your plane no matter how wonky your onboard computer has gone.
So the Basic Stamp UAV project might be a good place for a MUX. Anybody know of a cheaper one? (This guy is looking for one, too)
Comments
I am new to drones but am embarking on building a drone for my final year of school. it is supposed to be a fail safe FPV and I am so confused on the right way to bring this to realization. my aim for the project is to make the UAV smart enough to return home when it has consumed 50% if the startup power.
since I am meeting pros here and the topic seems related, I felt I ask on advise on the right approach to this and possible suggestion on the most economical but effective components to make use of.
:)
I have been reading my way through the code and documentation for the SparkFun GPS- UAV. In this firmware, the servo inputs are connected to input pins with interupt on rising and falling edges of the pulse train. These inputs are set to the highest priority and the service routine simply copies the inputs to the servo outputs. Simple, and this part will continue to work even if some part of the navigation code gets into a loop or other exception.
Then you can use NotOK flags that are set and reset at the start and end of each processing routine. A high priority watchdog interupt timer, running at say 1 sec intervals, could then turn the autopilot off, unless all the flags are in the correct state.
I think I will read a bit more about failsafe code development. Most things seem to have already been developed, if only you can find them.
PJG
http://paparazzi.enac.fr/wiki/index.php/Other_Hardware
They mention PWM and PPM...maybe is the same...
http://www.datasheetarchive.com/pdf/1002554.pdf
is used by paparazzi here (4017):
http://paparazzi.enac.fr/wiki/index.php/Tiny_v2
Read this:
http://www.mp.ttu.ee/risto/rc/
electronics/radio/signal.htm
This idea of dual core was taken from paparazzi =)