wilco1967 wrote:Alexinparis wrote:Sorry Patrik,
But I ask you to unmerge it.
We can't add new things during the consolidation step to 2.1
The good news is.... I got it working from the transmitter (ER9X), so no need to change any multiwii code if you're the lucky owner of a reflashed 9X....
To just fly around it's a bitch, but for doing flips it's amazing.... in a moment of desorientation, you don't need to find your level switch as before. just let go of the sticks, and voilla
all sorted.
I tried it today, and it spun so violently, it must have sheared a motor off in flight (or a prop blade broke off in flight.... not sure what happened first).... I only fixed the motors with tyraps to the arms, so they can break off easily in a crash rather than bending a shaft.... Anyway.... with this acro/level trick, I was confident it would sort itself out no matter what mess I made...
It did work fine multiple times, until the motor/prop came off..... no level mode is going to safe that
Damage: 1 prop, 2 bend arms (already bend back), and a 16 tyraps.... (the resulting crash took all motors off)
I programmed the Tx, so levelmode = active (my CH6 mid = level mode on) when |roll| < 10, and |pitch|<10, and RUD switch = on (so I can enable/disable this function), OR THR switch on (this is my 'normal' level mode switch.
.
.
.
EDIT...
Zip works, thanks PatrikE
The interesting part is under switches (in eepe)
in this configuration, channel 6 at mid (1500) enables level mode
All the other channels are my defaults.... yours are probably different....
Originally, my THR switch (the large one left bottom corner) would enable level mode.
The RUD switch (above it) is now used to 'enable' this 'acro trainer' feature.
The first line of the logic checks if elevator (pitch) is smaller than +/- 10 %.
The second line does the same for aileron (roll)
the 3rd line combines both of them
the 4rd line checks if the RUD switch is on.... if not on, all the above has no effect. (you can change the RUD switch to whatever switch you prefer)
the 5th line is used to enable LEVEL mode either on above (sticks within 10% from centre, AND 'RUD' switch on), OR your normal LEVEL switch (THR in my case).
So if SW5 (line5) is true, level mode must be on.
in your mixes, just replace the physical switch you're normally using for level mode, with the SW5 logic switch.
Test thoroughly your configuration before flying.... Don't blame me if you crash it