Setting min throttle on a switch.

Programing help and example for all firmwares based on thus's th9 firmware.
Post Reply
Rusty105
Posts: 17
Joined: Thu Sep 12, 2013 12:06 pm
Country: -

Setting min throttle on a switch.

Post by Rusty105 »

OK, read this somewhere and it sounded like a good idea. I have a mini quad that when diving from some altitude I would like there to be a minimum throttle so there would be some control. I have a tgy 9x radio with er9x, I figured something like this would work. Using the throttle cut switch, when in the off position the throttle stick range is -100 to +100 , when the throttle cut switch is active, the throttle range is -80 to +100. This way even if I bring the throttle all the way back it does not go to zero, BUT once the stick is above the -80 (or other pre set number) the stick acts normal. This way I don't accidentally disarm the flight controller, and maintain control when diving :)

User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Setting min throttle on a switch.

Post by MikeB »

Set up a custom switch:
S1: THR < -80 (and) AIL
(The AIL is an 'and' switch, set in the rightmost column.
This switch will be on when the throttle is below -80 and the AIL switch is on.

Now add a mix on the throttle channel
R -80 FULL switch(SW1) (NOTE: the multiplex is set to REPLACE)

When the SIL switch is ON and the throttle goes below -80, this mix replaces the normal control and holds the throttle at -80%.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Setting min throttle on a switch.

Post by jhsa »

Use a curve.. But shouldn't the flight controller allow to adjust the min throttle?

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Rusty105
Posts: 17
Joined: Thu Sep 12, 2013 12:06 pm
Country: -

Re: Setting min throttle on a switch.

Post by Rusty105 »

jhsa wrote:Use a curve.. But shouldn't the flight controller allow to adjust the min throttle?

João
Sometimes I would like the motors to stop as well. I am not a fan of the motors spooling up as soon as I arm the flight controller.
Rusty105
Posts: 17
Joined: Thu Sep 12, 2013 12:06 pm
Country: -

Re: Setting min throttle on a switch.

Post by Rusty105 »

MikeB wrote:Set up a custom switch:
S1: THR < -80 (and) AIL
(The AIL is an 'and' switch, set in the rightmost column.
This switch will be on when the throttle is below -80 and the AIL switch is on.

Now add a mix on the throttle channel
R -80 FULL switch(SW1) (NOTE: the multiplex is set to REPLACE)

When the SIL switch is ON and the throttle goes below -80, this mix replaces the normal control and holds the throttle at -80%.

Mike.

This worked :), although I think you messed up the first part, or my version of er9x is different I have it set up as
Custom Switch (switch is active only when the throttle cut switch is on)

Code: Select all

v<ofs   THR   -65   THR
Mix on channel 3

Code: Select all

 R   -65   FULL   SW1
I will have to play around and see if -65 is the point I want, but that is a flight tuning issue.

Thanks!

User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Setting min throttle on a switch.

Post by MikeB »

I missed you wanting to use the throttle cut switch, probably because on my electrics I ALWAYS use the throttle cut switch as a safety switch to prevent the motor(s) starting if I accidently move the throttle stick.

If you need to tune the -65 value, you can use a GVAR to tie this to one of the pots, then you can adjust this in flight.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Setting min throttle on a switch.

Post by jhsa »

Rusty105 wrote:
Sometimes I would like the motors to stop as well. I am not a fan of the motors spooling up as soon as I arm the flight controller.
I use a multiwii controller on both my tricopter and quadcopter and I can configure it to turn motors on/off using a switch.
Also in multiwii as far as I remember (it has been a while since I messed with it ;) ), there is an option to adjust the idle speed when you arm the motors and also the minimum speed that the motors respond to control inputs.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

Post Reply

Return to “er9x / gruvin9x / th9 based firmwares”