FASTBot motor command – Go Back.

FASTBot motor command – Go Back.

Go Back function moves both the motors, left and right, in the backward direction with equal speed. So the robot moves backward. The motors can also be stopped after the required running time.

Double click on the Motor Control option in the Functions Window.

Now, all the available functions meant for the Motor Control come down in the menu. Again double click on Go Back to get the dialog box for the function definition. The dialog box opens up as shown here:

As you can see, you need to define three parameters:

  1. The speed of both the motors (Backward)

  2. The function run time (optional)

  3. Stopping the motors after the action is performed (optional)

The motor speed can go up to 100% and the values must be positive. The run time can take any value up to 65535 milliseconds.

As usual, the press of OK button generates the required application code in your project.

The format of the function without the stop option is shown here:

GoBack(char Speed, int Runtime)

With enabled stop conditions, the format becomes,

GoBack_S(char Speed, int Runtime)

This entry was posted in Articles on FASTBot, FASTBot Motor Control, Knowledge Base and tagged , , , . Bookmark the permalink.

Comments are closed.