mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Added and implemented GetInverted method.
Change-Id: I53bd51e41311e3ffcd3fa3ffbc4e72cfab530109
This commit is contained in:
@@ -2119,14 +2119,24 @@ void CANJaguar::StopLiveWindowMode()
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 CANJaguar::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 CANJaguar::GetInverted() const {
|
||||
return m_isInverted;
|
||||
}
|
||||
|
||||
std::string CANJaguar::GetSmartDashboardType() const
|
||||
{
|
||||
return "Speed Controller";
|
||||
|
||||
Reference in New Issue
Block a user