Tele-Op Control
Last updated
Last updated
In FTC there is a phase of the competition known as TeleOp mode where teams control their robots in real-time using a driver station to complete tasks or objects. This is the last 2 minutes and 30 seconds of a match. This is famously the part where the drivers strategize, collaborate, and compete head to head.
Programming the robot for manual control is quite easy but making it ergonomic and intuitive is hard.
Most of your code will be generally structured like this:
After the program has started, you repeat the setting the power for the motors as long as opMode, the designated period to control the robot, is active.
Map how you want the power of each motor to be set to.
The basic sections are:
set [MotorName].Power to which determines which motor is being affected.
Then you either set the motor to a gamepad control, like LeftStickX or RightStickY directly:
or
add a negative marker to reverse the gamepad’s effect on the motor.
Simply repeat the set command until you can control all the motors you want!
Don’t forget that the motor direction can be reversed. This has the same effect as simply putting the negative marker on the control. A negative marker on a reversed motor will cancel out, causing the motor to behave as if it was just directly controlled by the gamepad.
Feel free to experiment with what you have learned and, most importantly, don't forget to have fun!