12 #include <HAL/Types.h> 14 #include "AnalogTriggerOutput.h" 15 #include "ErrorBase.h" 16 #include "SmartDashboard/SendableBase.h" 130 AnalogTriggerType type)
const;
136 HAL_AnalogTriggerHandle m_trigger;
138 bool m_ownsAnalog =
false;
void SetLimitsVoltage(double lower, double upper)
Set the upper and lower limits of the analog trigger.
Definition: AnalogTrigger.cpp:51
Definition: Utility.cpp:119
void SetAveraged(bool useAveragedValue)
Configure the analog trigger to use the averaged vs.
Definition: AnalogTrigger.cpp:65
bool GetInWindow()
Return the InWindow output of the analog trigger.
Definition: AnalogTrigger.cpp:84
void SetLimitsRaw(int lower, int upper)
Set the upper and lower limits of the analog trigger.
Definition: AnalogTrigger.cpp:58
Class to represent a specific output from an analog trigger.
Definition: AnalogTriggerOutput.h:49
bool GetTriggerState()
Return the TriggerState output of the analog trigger.
Definition: AnalogTrigger.cpp:92
Base class for most objects.
Definition: ErrorBase.h:74
Definition: SendableBase.h:19
Definition: AnalogTrigger.h:22
void SetFiltered(bool useFilteredValue)
Configure the analog trigger to use a filtered value.
Definition: AnalogTrigger.cpp:72
std::shared_ptr< AnalogTriggerOutput > CreateOutput(AnalogTriggerType type) const
Creates an AnalogTriggerOutput object.
Definition: AnalogTrigger.cpp:100
Definition: SendableBuilder.h:23
AnalogTrigger(int channel)
Constructor for an analog trigger given a channel number.
Definition: AnalogTrigger.cpp:19
int GetIndex() const
Return the index of the analog trigger.
Definition: AnalogTrigger.cpp:79
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: AnalogTrigger.cpp:107