[SOLVED] Help Using servo with Ultimate 2.0


#1

the servo does not work as intended
can you help?

here are some screenshots
image
image

any idea why it does not work?


#2

nvm i found the problem, you guys can mark this as solved

here was the problem,
i was in a forever loop,
witch means it was updating idk like 1000 times per second, so by the time we pressed and let go of the button the servo stuff was called like 100 times,
all i did was add some script to only update it once every 20 updates (they are better ways)

time++
    if (time % 20 == 0) { 
         // call all the functions
    }

#3

@Yu-Hayate Got it! Glad the issue is resolved. :slight_smile:


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.