Asked
Resolved Resolved by DJ Sures!

Cycle Servos For Controller Analog Sticks

I'm looking to use my L2 and R2 buttons to change what servo groups my analog sticks control when they are held, is there a way to do this?

The current method I found is to use third party software to map the joystick directions to keys, then use the keyboard skill. I have the L2 and R2 set variables when they are down and then the joystick mapped keys run the scripts for the correct servo set depending on if the variable is set.

However I'm finding this method has a noticeable lag from the L2 button being pressed and the variable being switched. The keyboard skill shows the button press instantly but the set variables delayed.

Thanks


Related Hardware Arduino Due/Mega

ARC Pro

Upgrade to ARC Pro

Join the ARC Pro community and gain access to a wealth of resources and support, ensuring your robot's success.

#9  

Ok not sure what happened but I'm not seeing the virtual servo V12 which is mapped from V2 go to 90 degrees at center.

This seemed to work before yesterday I noticed that it seemed to be going to 180 on a full right then returning to 1.

I did an ARC update, been a few months since my last, not sure if this is related.

Its been a while since I had to look at mapping from the joystick but I believe they were always 90 on center?

#11  

Ok no worries,

I just redid it using JoystickX2 Variables, no idea why I did not do that the first time round, its funny going back sometimes over old work.