class wpilib.Jaguar(channel)[source]

Bases: wpilib.SafePWM

Texas Instruments / Vex Robotics Jaguar Speed Controller as a PWM device.

See also

CANJaguar for CAN control of a Jaguar


Parameters:channel – The PWM channel that the Jaguar is attached to. 0-9 are on-board, 10-19 are on the MXP port

Get the recently set value of the PWM.

Returns:The most recently set value for the PWM between -1.0 and 1.0.
Return type:float

Write out the PID value as seen in the PIDOutput base object.

Parameters:output (float) – Write out the PWM value as was found in the PIDController.
set(speed, syncGroup=0)[source]

Set the PWM value.

The PWM value is set using a range of -1.0 to 1.0, appropriately scaling the value for the FPGA.

  • speed (float) – The speed to set. Value should be between -1.0 and 1.0.
  • syncGroup – The update group to add this set() to, pending updateSyncGroup(). If 0, update immediately.