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:
Tyler Veness
2016-05-23 20:42:58 -07:00
committed by Peter Johnson
parent e842ff7ad5
commit 9e99df1cf7
29 changed files with 87 additions and 273 deletions

View File

@@ -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.