13 #include <HAL/AnalogOutput.h> 15 #include "LiveWindow/LiveWindowSendable.h" 16 #include "SensorBase.h" 17 #include "networktables/NetworkTableEntry.h" 37 void InitTable(std::shared_ptr<nt::NetworkTable> subTable)
override;
41 HAL_AnalogOutputHandle m_port;
int GetChannel()
Get the channel of this AnalogOutput.
Definition: AnalogOutput.cpp:68
Live Window Sendable is a special type of object sendable to the live window.
Definition: LiveWindowSendable.h:17
Base class for all sensors.
Definition: SensorBase.h:20
void UpdateTable() override
Update the table for this sendable object with the latest values.
Definition: AnalogOutput.cpp:96
std::string GetSmartDashboardType() const override
Definition: AnalogOutput.cpp:104
virtual ~AnalogOutput()
Destructor.
Definition: AnalogOutput.cpp:63
void StartLiveWindowMode() override
Start having this sendable object automatically respond to value changes reflect the value on the tab...
Definition: AnalogOutput.cpp:100
double GetVoltage() const
Get the voltage of the analog output.
Definition: AnalogOutput.cpp:87
AnalogOutput(int channel)
Construct an analog output on the given channel.
Definition: AnalogOutput.cpp:29
MXP analog output class.
Definition: AnalogOutput.h:24
NetworkTables Entry.
Definition: NetworkTableEntry.h:30
void SetVoltage(double voltage)
Set the value of the analog output.
Definition: AnalogOutput.cpp:75
void InitTable(std::shared_ptr< nt::NetworkTable > subTable) override
Initializes a table for this sendable object.
Definition: AnalogOutput.cpp:108
void StopLiveWindowMode() override
Stop having this sendable object automatically respond to value changes.
Definition: AnalogOutput.cpp:102