blob: 5942a77cd0076a4293b4b877fce0097dddf0fbb5 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#ifndef AOS_CRIO_TALON_H_
2#define AOS_CRIO_TALON_H_
3
4#include "WPILib/SafePWM.h"
5#include "WPILib/SpeedController.h"
6#include "WPILib/PIDOutput.h"
7
8// Used for controlling a Talon speed controller. Non-standard API and
9// namespace so that the likely WPILib version will be drop-in replaceable.
brianscd5aa322013-03-03 05:31:51 +000010class Talon : public SafePWM, public SpeedController {
brians343bc112013-02-10 01:53:46 +000011 public:
12 explicit Talon(UINT32 channel);
13
14 virtual void Set(float value, UINT8 syncGroup=0);
15 virtual float Get();
16 virtual void Disable();
17
18 virtual void PIDWrite(float output);
19};
20
21#endif // AOS_CRIO_TALON_H_