I like to think of the set(power) methods on the SpeedController classes (like Victor, Talon and Jaguar) as the way to control how much power the speed controller lets through.
The power value can range from -1.0 (full reverse) to +1.0 (full foward).
For example:
Code:
victor.set(1.0); // Run motor "forwards" at full power
victor.set(0.5); // Run motor "forwards" at half power
victor.set(0.0); // Turn motor off (if Victor is calibrated)
victor.set(-0.25); // Run motor "backwards" at quarter power
victor.set(-1.0); // Run motor "backwards" at full power
- The term "forwards" and "backwards" are virtual directions. Depending on how your motors are wired and mechanically connected, you may need to invert your power levels (use negative values for "forwards" and positive for "backwards") to get your physical device to move/rotate in the actual desired direction.
- If your speed controller has not been calibrated, then setting a value of 0.0 may not fully stop the motor. See: http://content.vexrobotics.com/docs/...UserManual.pdf for directions on calibrating a Victor.
Hope that helps.