mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
CANTalon throttle works.
Fleshed out CANTalon interface; it currently works just to write a throttle. The firmware doesn't fully support everything yet, so we are still significantly limited. Change-Id: I2868c4c168a8cb42cda754589777beef31ffd354
This commit is contained in:
@@ -16,11 +16,14 @@ class CANSpeedController : public SpeedController
|
||||
{
|
||||
public:
|
||||
enum ControlMode {
|
||||
kPercentVbus,
|
||||
kCurrent,
|
||||
kSpeed,
|
||||
kPosition,
|
||||
kVoltage
|
||||
kPercentVbus=0,
|
||||
// TODO(james): Handle kFollower in CANJaguar.
|
||||
kFollower=1, // Only supported on Talon SRX.
|
||||
kVoltage=2,
|
||||
kPosition=3,
|
||||
kSpeed=4,
|
||||
kCurrent=5,
|
||||
kDisabled=15
|
||||
};
|
||||
|
||||
enum Faults {
|
||||
|
||||
Reference in New Issue
Block a user