Switching flight control?
Spiral_72
Posts: 791
I’m working on a brain puzzle with my BS2 at the moment. I have a small ~11oz plane I made from Lowe’s blue core foam. It flies stable and true using elevons (like on a flying wing, two control surfaces used for aileron/elevator). That aside:
I’d like to play with semi-intelligent flight computer. Flying in circles at a set altitude would be good. I suppose it’d be silly to send it off with no override what-so-ever. If I make it RC, how do you think I should transfer control? The best/simplest idea I have is use my gear channel to toggle two tiny relays. The relays would normally (de-energized) connect the RC receiver to the servos. Once switched it would move control to the onboard BS2…… the PWM signal to the servos would switch through the dry contact on the relay.
What do ya’ think about the transfer of control?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
I’d like to play with semi-intelligent flight computer. Flying in circles at a set altitude would be good. I suppose it’d be silly to send it off with no override what-so-ever. If I make it RC, how do you think I should transfer control? The best/simplest idea I have is use my gear channel to toggle two tiny relays. The relays would normally (de-energized) connect the RC receiver to the servos. Once switched it would move control to the onboard BS2…… the PWM signal to the servos would switch through the dry contact on the relay.
What do ya’ think about the transfer of control?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
Comments
Another person run the RC servo commands into the microcontroller and "simulated" them back out while in RC mode.... Pretty dangerous.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
Use PULSIN to check the state of each channel
If the gear channel is active (you want to have control) just send the exact same values out to the servos as are coming in. If the gear channel is off (autopilot) then go into an autonomous subroutine - be sure to keep checking the gear channel though.
With three PULSINs and two PULSOUTs you will want to reduce the standard PAUSE 20 to about PAUSE 10 or maybe even less.
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.
Post Edited (W9GFO) : 4/1/2010 11:25:38 PM GMT
Or should I even worry that much?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
In my case I used a much larger Sig Rascal 40 that was converted to brushless power. I used a BS2, thermopile horizon sensor and a GPS to control an auxiliary rudder which, if gone awry, could be overpowered by the regular controls. Like you, I did not want a programming hiccup to cause a loss of everything.
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.