Added and implemented GetInverted method.

Change-Id: I53bd51e41311e3ffcd3fa3ffbc4e72cfab530109
This commit is contained in:
Joseph
2015-06-15 15:32:47 -04:00
committed by James Kuszmaul
parent 0122086d23
commit bd64d9a7ef
25 changed files with 226 additions and 32 deletions

View File

@@ -1292,14 +1292,26 @@ void CANTalon::GetDescription(char *desc) const
{
sprintf(desc, "CANTalon ID %d", m_deviceNumber);
}
/**
* common interface for inverting direction of a speed controller
* Only works in PercentVbus, speed, and Voltage modes
* @param isInverted The state of inversion true is inverted
* Common interface for inverting direction of a speed controller.
* Only works in PercentVbus, speed, and Voltage modes.
* @param isInverted The state of inversion, true is inverted.
*/
void CANTalon::SetInverted(bool isInverted){
m_isInverted = isInverted;
}
/**
* Common interface for the inverting direction of a speed controller.
*
* @return isInverted The state of inversion, true is inverted.
*
*/
bool CANTalon::GetInverted() const {
return m_isInverted;
}
/**
* Common interface for stopping the motor
* Part of the MotorSafety interface