mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Removed sync group from SpeedController interface (#51)
CANJaguar is the only motor controller using sync groups, so that feature doesn't belong in an interface used by all motor controllers. If teams want to use sync groups, they should cast to the appropriate motor controller type themselves.
This commit is contained in:
committed by
Peter Johnson
parent
e842ff7ad5
commit
9e99df1cf7
@@ -1523,6 +1523,23 @@ void CANJaguar::SetVoltageMode(CANJaguar::PotentiometerStruct) {
|
||||
ConfigPotentiometerTurns(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the output set-point value.
|
||||
*
|
||||
* The scale and the units depend on the mode the Jaguar is in.
|
||||
* <p>In percentVbus Mode, the outputValue is from -1.0 to 1.0 (same as PWM
|
||||
* Jaguar).
|
||||
* <p>In voltage Mode, the outputValue is in volts.
|
||||
* <p>In current Mode, the outputValue is in amps.
|
||||
* <p>In speed Mode, the outputValue is in rotations/minute.
|
||||
* <p>In position Mode, the outputValue is in rotations.
|
||||
*
|
||||
* @param outputValue The set-point to sent to the motor controller.
|
||||
*/
|
||||
void CANJaguar::Set(float outputValue) {
|
||||
Set(outputValue, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used internally. In order to set the control mode see the methods listed
|
||||
* below.
|
||||
|
||||
Reference in New Issue
Block a user