New firmware build #2064 - Add new "increment_value" & "decrement_value" functions.

355 views
Skip to first unread message

Fred Davison - QuadStick

unread,
Sep 8, 2018, 5:30:24 PM9/8/18
to QuadStick
Two new outputs functions have been added:

increment_value  [value]   [interval between increments in milliseconds]
decrement_value  [value]   [interval between decrements in milliseconds]

The first parameter, [value], is the amount the value will be incremented or decremented.  The default parameter value is 10.  When the second parameter, [interval...], is missing, the output value will increment/decrement each time the input transitions from off to on.  When present, the second parameter is the interval between each change in the value.

The functions are a form of latch and will work with force_off, toggle & normal in the same ways as other latching functions.  If switching modes, the value will be maintained only if the new mode has the same output with a latching function.

Examples:


right_2increment_value 50mp_right_puff
right_2force_off 500mp_right_puff

The first puff will change the output value from 0 to 50%.  The second puff will change the output to 100%.  A long puff longer than 500 ms will clear the output value to 0.
                                                                                                                                   

left_joy_upincrement_value 1 100mp_center_sip






up increases while sip active
left_joy_updecrement_value 1 100mp_center_puff






up decreases while puff active
left_joy_upforce_offlip






centers joystick
left_joy_upnormalup






directly controls up value
left_joy_upforce_offdown






clears any latched up value
left_joy_downdecrement_value 1 100mp_center_sip






down decreases while sip active
left_joy_downincrement_value 1 100mp_center_puff






down increases while puff active
left_joy_downforce_offlip






centers joystick
left_joy_downforce_offup






clears any latched down value
left_joy_downnormaldown






directly controls down value

The joystick output will move up slowly as the center sip is held.  It will move down while the center puff is held.  Pressing the Lip will center the joystick.  Moving the joystick up or down will clear the latched value and allow direct control.

Run Add-ons -> Quadstick -> Update IO validation lists to see the new functions in the drop down list.












Dan NH

unread,
Sep 8, 2018, 6:15:36 PM9/8/18
to QuadStick
Thank you Fred. Can you give some example use cases?

Fred Davison

unread,
Sep 8, 2018, 6:42:54 PM9/8/18
to Dan NH, QuadStick
Driving and flying games where latching 100% throttle doesn't work well.  Maybe R/C plane and quadcopter controls.

I got the idea from this post.


--
You received this message because you are subscribed to the Google Groups "QuadStick" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quadstick+unsubscribe@googlegroups.com.
To post to this group, send email to quad...@googlegroups.com.
Visit this group at https://groups.google.com/group/quadstick.

Jason G

unread,
Sep 8, 2018, 9:16:38 PM9/8/18
to QuadStick
Yes! This is awesome! I can't wait to try it. Thank you for your work on this, Fred!

Mark Lewis

unread,
Sep 16, 2018, 12:28:31 PM9/16/18
to QuadStick
I wanted something like this in the past. Time to revisit! Cheers, Fred.
Reply all
Reply to author
Forward
0 new messages