WPILib  2014.0
WPIRoboticsLibraryforFRC
 All Classes Functions Variables Pages
Talon.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef Talon_H
8 #define Talon_H
9 
10 #include "SafePWM.h"
11 #include "SpeedController.h"
12 #include "PIDOutput.h"
13 
17 class Talon : public SafePWM, public SpeedController
18 {
19 public:
20  explicit Talon(uint32_t channel);
21  Talon(uint8_t moduleNumber, uint32_t channel);
22  virtual ~Talon();
23  virtual void Set(float value, uint8_t syncGroup=0);
24  virtual float Get();
25  virtual void Disable();
26 
27  virtual void PIDWrite(float output);
28 
29 private:
30  void InitTalon();
31 };
32 
33 #endif
34 
Definition: Talon.h:17
virtual void Disable()
Definition: Talon.cpp:88
Definition: SafePWM.h:22
virtual float Get()
Definition: Talon.cpp:80
virtual void Set(float value, uint8_t syncGroup=0)
Definition: Talon.cpp:70
Talon(uint32_t channel)
Definition: Talon.cpp:41
Definition: SpeedController.h:16
virtual void PIDWrite(float output)
Definition: Talon.cpp:98