7 #ifndef ANALOG_CHANNEL_H_
8 #define ANALOG_CHANNEL_H_
10 #include "ChipObject.h"
11 #include "SensorBase.h"
12 #include "PIDSource.h"
13 #include "LiveWindow/LiveWindowSendable.h"
32 static const uint8_t kAccumulatorModuleNumber = 1;
33 static const uint32_t kAccumulatorNumChannels = 2;
34 static const uint32_t kAccumulatorChannels[kAccumulatorNumChannels];
73 void StartLiveWindowMode();
74 void StopLiveWindowMode();
75 std::string GetSmartDashboardType();
76 void InitTable(ITable *subTable);
80 void InitChannel(uint8_t moduleNumber, uint32_t channel);
83 tAccumulator *m_accumulator;
84 INT64 m_accumulatorOffset;
85 bool m_shouldUseVoltageForPID;
Definition: AnalogModule.h:20
int32_t GetOffset()
Definition: AnalogChannel.cpp:179
void SetAccumulatorDeadband(int32_t deadband)
Definition: AnalogChannel.cpp:341
uint32_t GetLSBWeight()
Definition: AnalogChannel.cpp:164
uint32_t GetChannel()
Definition: AnalogChannel.cpp:189
AnalogChannel(uint8_t moduleNumber, uint32_t channel)
Definition: AnalogChannel.cpp:71
void SetAverageBits(uint32_t bits)
Definition: AnalogChannel.cpp:213
void InitAccumulator()
Definition: AnalogChannel.cpp:278
Definition: SensorBase.h:20
uint8_t GetModuleNumber()
Definition: AnalogChannel.cpp:199
void SetAccumulatorCenter(int32_t center)
Definition: AnalogChannel.cpp:325
void SetOversampleBits(uint32_t bits)
Definition: AnalogChannel.cpp:240
int32_t GetAverageValue()
Definition: AnalogChannel.cpp:125
void ResetAccumulator()
Definition: AnalogChannel.cpp:302
AnalogModule * GetModule()
Definition: AnalogChannel.cpp:98
Definition: PIDSource.h:15
void SetAccumulatorInitialValue(INT64 value)
Definition: AnalogChannel.cpp:293
bool IsAccumulatorChannel()
Definition: AnalogChannel.cpp:264
uint32_t GetAccumulatorCount()
Definition: AnalogChannel.cpp:383
float GetVoltage()
Definition: AnalogChannel.cpp:136
uint32_t GetAverageBits()
Definition: AnalogChannel.cpp:226
void GetAccumulatorOutput(INT64 *value, uint32_t *count)
Definition: AnalogChannel.cpp:407
uint32_t GetOversampleBits()
Definition: AnalogChannel.cpp:253
void SetVoltageForPID(bool shouldUseVoltageForPID)
Definition: AnalogChannel.cpp:436
double PIDGet()
Definition: AnalogChannel.cpp:445
INT64 GetAccumulatorValue()
Definition: AnalogChannel.cpp:362
int16_t GetValue()
Definition: AnalogChannel.cpp:110
Definition: AnalogChannel.h:29
float GetAverageVoltage()
Definition: AnalogChannel.cpp:149
virtual ~AnalogChannel()
Definition: AnalogChannel.cpp:89