Competition Language | |||
SetActuator | ExtendActuator | RetractActuator | How to Use |
The set actuator command just sets the actuator specified to the value. A one means extended and a zero means retracted (unless you put the double action cylinder's conduits swapped). The actuator port can either be the name of it, or the digital port number it is in.
The command extend actuator simply extends the specified actuator.
Just like extend actuator, retract actuator retracts the specified actuator.
Once you have plugged an actuator into a digital port, you an easily control it's position with these commands. Rather intuitively, the command ExtendActuator extends the actuator in the paramters (unless you have a double action that has it's tubing reversed) and the command RetractActuator retracts the actuator in the parameter. The command SetActuator takes in one port for which actuator, and a value of either true of false, or 1 or 0, or any other representation of on or off. It then sets the actuators position to out if on, and in if off.