|
WPILib 2012
WPILibRoboticsLibraryforFRC
|
#include <Victor.h>
Public Member Functions | |
| Victor (UINT32 channel) | |
| Victor (UINT8 moduleNumber, UINT32 channel) | |
| virtual void | Set (float value, UINT8 syncGroup=0) |
| virtual float | Get () |
| virtual void | Disable () |
| virtual void | PIDWrite (float output) |
IFI Victor Speed Controller
| Victor::Victor | ( | UINT32 | channel | ) | [explicit] |
| Victor::Victor | ( | UINT8 | moduleNumber, |
| UINT32 | channel | ||
| ) |
| void Victor::Disable | ( | ) | [virtual] |
Common interface for disabling a motor.
Implements SpeedController.
| float Victor::Get | ( | ) | [virtual] |
Get the recently set value of the PWM.
Implements SpeedController.
| void Victor::PIDWrite | ( | float | output | ) | [virtual] |
Write out the PID value as seen in the PIDOutput base object.
| output | Write out the PWM value as was found in the PIDController |
Implements PIDOutput.
| void Victor::Set | ( | float | speed, |
| UINT8 | syncGroup = 0 |
||
| ) | [virtual] |
Set the PWM value.
The PWM value is set using a range of -1.0 to 1.0, appropriately scaling the value for the FPGA.
| speed | The speed value between -1.0 and 1.0 to set. |
| syncGroup | Unused interface. |
Implements SpeedController.
1.7.4