
Foamtastic

I can not seem to get the "Forward/stop/Reverse" code. I do not know what I am doing wrong. Maybe I am missing something.
Here is what I am trying to do.
I need a piece of code that will allow me to press one button on the mobile interface and make a continuous servo move forward for a desired amount of time (say 3 seconds) then I need it to stop during which time I need a normal servo to move to a set position then once it has reached that position I then need the continuous servo to reverse back for 3 seconds.
Basically I am making a static BB8 and I want him to to do the thumbs up. I have made the code for his panel/door to open and close. Now I need the code for his arm to roll out then the torch flip up and down and then the arm roll back into his body.
I can make the arm move forward when a button is pressed but it wont stop unless I make a separate stop button.
Any help would be great, thank you.
There are a number of movement panels, and each uses different hardware. There are HBridge movement panels, Auto Position (for gait), continuous rotation movement panel, etc...
So a Movement Panel is how something can move. This is not to say that you robot "needs" a movement panel. Although a Custom Movement Panel allows you to add your own script code so the commands Forward(), etc... will actually do something.
You can do something like this with continuous rotation servos without a movement panel...
Code:
However, are you certain that you're using continuous rotation and not standard servos? Because there are generally no use-cases for continuous rotation servos outside of wheels.