154 int GetSourceChannel()
const;
156 hal::Handle<HAL_AnalogTriggerHandle> m_trigger;
159 bool m_ownsAnalog =
false;
Definition: AnalogTrigger.h:21
~AnalogTrigger() override
void SetLimitsVoltage(double lower, double upper)
Set the upper and lower limits of the analog trigger.
void SetLimitsDutyCycle(double lower, double upper)
Set the upper and lower duty cycle limits of the analog trigger.
bool GetTriggerState()
Return the TriggerState output of the analog trigger.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
AnalogTrigger(AnalogInput *input)
Construct an analog trigger given an analog input.
void SetFiltered(bool useFilteredValue)
Configure the analog trigger to use a filtered value.
AnalogTrigger(AnalogTrigger &&)=default
AnalogTrigger(DutyCycle *dutyCycle)
Construct an analog trigger given a duty cycle input.
int GetIndex() const
Return the index of the analog trigger.
bool GetInWindow()
Return the InWindow output of the analog trigger.
std::shared_ptr< AnalogTriggerOutput > CreateOutput(AnalogTriggerType type) const
Creates an AnalogTriggerOutput object.
AnalogTrigger & operator=(AnalogTrigger &&)=default
void SetLimitsRaw(int lower, int upper)
Set the upper and lower limits of the analog trigger.
void SetAveraged(bool useAveragedValue)
Configure the analog trigger to use the averaged vs.
AnalogTrigger(int channel)
Constructor for an analog trigger given a channel number.
Class to represent a specific output from an analog trigger.
Definition: AnalogTriggerOutput.h:49
Class to read a duty cycle PWM input.
Definition: DutyCycle.h:31
Definition: SendableBuilder.h:18
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
type
Definition: core.h:575
Definition: AprilTagFieldLayout.h:22
AnalogTriggerType
Definition: AnalogTriggerType.h:9