#Changing desired angle

3 messages · Page 1 of 1 (latest)

hearty thorn
#

Hey looking for some help. I'm trying to change a motor6d's desired angle by getting a value's value to tell it what to set the desired angle to. How can I do this via script?

somber leaf
# hearty thorn Hey looking for some help. I'm trying to change a motor6d's desired angle by get...

Normally I would just move the little indicator by doing some math (generally speaking the max is about 270 degrees from the start. So I'll be using that in the math).

the starting point is offset a tad, so take that into account when making it.

0 = the start, 270 = maximum. In this case it's 0-35(00). so every RPM = 270/35 = 7.714... degrees of rotation (Just do rotation = (270/35) * RPM + Base rotation to make it not start right at the top/bottom)