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:
James Kuszmaul
2014-11-14 15:18:40 -05:00
parent 9050ea7e3d
commit 9be6ee4712
6 changed files with 150 additions and 35 deletions

View File

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