Closed GoogleCodeExporter closed 8 years ago
This is a quick and dirty code that make the dual ch ailerons working perfectly
taking care of the differential both in input and output.
should be added at the end of the set_servos_4 in attitude tab, it works
perfectly but trim of ch6 is not stored in eeprom.
also it uses map funcion and in this case lacks of resolution because expand
the small lower movement to the upper on other channel.
also it is not able to avoid problems using spoilers.
I tried various methods but it mess up and still can't figure out all the
funcions in the code, so many tabs I can't see them all in my fullhd monitor,
what a pain.
//Frank Norton dual ch ailerons
###################################################
if (control_mode == MANUAL) {APM_RC.OutputCh(CH_6, APM_RC.InputCh(CH_6));}
else {int ail2;
if (g.channel_roll.radio_out>=g.channel_roll.radio_trim) {ail2= map(g.channel_roll.radio_out,g.channel_roll.radio_trim,g.channel_roll.radio_max,g.rc_6.radio_trim,g.rc_6.radio_max);}
else {ail2= map(g.channel_roll.radio_out,g.channel_roll.radio_trim,g.channel_roll.radio_min,g.rc_6.radio_trim,g.rc_6.radio_min);}
APM_RC.OutputCh(CH_6, ail2);}
//Frank Norton dual ch ailerons
###################################################
Original comment by ingop...@tiscali.it
on 30 Jun 2011 at 10:00
We have not implemented differential ailerons in the current code due to
incompatibility with the 4 channel hardware multiplexer and limited code space.
It is a feature expected in future versions as well as flaperons, flaps, etc.
If you are looking for help with personal revisions, please post in the forum.
I am closing this issue as differential ailerons are already a documented
feature request.
Original comment by dewei...@gmail.com
on 2 Jul 2011 at 9:20
Please note that the little code posted actually solve completely the
problem , it take care of differential! I also have the code to store trims
on eeprom to complete everything, works like a charm.
Why don't you simply add it to the planner to enable or disable it. I can
provide a better code than that but is similar. I don't know the problem
about multiplexer can you explain it. Code space no prob at all, guaranteed.
Original comment by ingop...@tiscali.it
on 5 Jul 2011 at 4:03
is this already solved? I can´t find it in a new software version :(
Original comment by timo.witte
on 11 Jul 2014 at 10:52
Original issue reported on code.google.com by
ingop...@tiscali.it
on 29 Jun 2011 at 10:24