12 #include <hal/Types.h>
14 #include "frc/AnalogTriggerOutput.h"
15 #include "frc/ErrorBase.h"
16 #include "frc/smartdashboard/Sendable.h"
17 #include "frc/smartdashboard/SendableHelper.h"
23 class SendableBuilder;
155 AnalogTriggerType type)
const;
160 hal::Handle<HAL_AnalogTriggerHandle> m_trigger;
163 bool m_ownsAnalog =
false;
bool GetTriggerState()
Return the TriggerState output of the analog trigger.
Class to represent a specific output from an analog trigger.
Definition: AnalogTriggerOutput.h:49
void SetLimitsRaw(int lower, int upper)
Set the upper and lower limits of the analog trigger.
bool GetInWindow()
Return the InWindow output of the analog trigger.
Definition: AnalogTrigger.h:25
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
std::shared_ptr< AnalogTriggerOutput > CreateOutput(AnalogTriggerType type) const
Creates an AnalogTriggerOutput object.
Class to read a duty cycle PWM input.
Definition: DutyCycle.h:35
void SetLimitsDutyCycle(double lower, double upper)
Set the upper and lower duty cycle limits of the analog trigger.
Base class for most objects.
Definition: ErrorBase.h:104
int GetIndex() const
Return the index of the analog trigger.
Interface for Sendable objects.
Definition: Sendable.h:17
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
void SetFiltered(bool useFilteredValue)
Configure the analog trigger to use a filtered value.
void SetLimitsVoltage(double lower, double upper)
Set the upper and lower limits of the analog trigger.
void SetAveraged(bool useAveragedValue)
Configure the analog trigger to use the averaged vs.
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23
AnalogTrigger(int channel)
Constructor for an analog trigger given a channel number.