WPILib  2014.0
WPIRoboticsLibraryforFRC
 All Classes Functions Variables Pages
AnalogPotentiometer.h
1 #ifndef _ANALOG_POTENTIOMETER_H
2 #define _ANALOG_POTENTIOMETER_H
3 
4 #include "Interfaces/Potentiometer.h"
5 #include "LiveWindow/LiveWindowSendable.h"
6 #include "AnalogChannel.h"
7 
16 class AnalogPotentiometer : public Potentiometer, public LiveWindowSendable {
17 private:
18  int m_module, m_channel;
19  double m_scale, m_offset;
20  AnalogChannel *m_analog_channel;
21  void InitPot(int slot, int channel, double scale, double offset);
22  ITable *m_table;
23 public:
24  AnalogPotentiometer(int slot, int channel, double scale, double offset);
25  AnalogPotentiometer(int channel, double scale, double offset);
26  AnalogPotentiometer(int channel, double scale);
27  AnalogPotentiometer(int channel);
28  double Get();
29  double PIDGet();
30  std::string GetSmartDashboardType();
31  void InitTable(ITable *subtable);
32  void UpdateTable();
33  ITable * GetTable();
34  void StartLiveWindowMode();
35  void StopLiveWindowMode();
36 };
37 
38 #endif
double PIDGet()
Definition: AnalogPotentiometer.cpp:96
double Get()
Definition: AnalogPotentiometer.cpp:86
ITable * GetTable()
Definition: AnalogPotentiometer.cpp:129
void UpdateTable()
Definition: AnalogPotentiometer.cpp:120
void InitTable(ITable *subtable)
Definition: AnalogPotentiometer.cpp:112
void StopLiveWindowMode()
Definition: AnalogPotentiometer.cpp:143
Definition: AnalogPotentiometer.h:16
AnalogPotentiometer(int slot, int channel, double scale, double offset)
Definition: AnalogPotentiometer.cpp:33
Definition: AnalogChannel.h:29
void StartLiveWindowMode()
Definition: AnalogPotentiometer.cpp:137