10 #include <hal/Types.h>
12 #include "frc/DigitalSource.h"
13 #include "frc/smartdashboard/Sendable.h"
14 #include "frc/smartdashboard/SendableHelper.h"
18 class SendableBuilder;
91 void Pulse(
double length);
155 hal::Handle<HAL_DigitalHandle> m_handle;
156 hal::Handle<HAL_DigitalPWMHandle> m_pwmGenerator;
int GetChannel() const override
DigitalOutput(int channel)
Create an instance of a digital output.
void DisablePWM()
Change this line from a PWM output back to a static Digital Output line.
bool Get() const
Gets the value being output from the Digital Output.
Class to write to digital outputs.
Definition: DigitalOutput.h:27
void Set(bool value)
Set the value of a digital output.
HAL_Handle GetPortHandleForRouting() const override
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
void EnablePWM(double initialDutyCycle)
Enable a PWM Output on this line.
void SetSimDevice(HAL_SimDeviceHandle device)
Indicates this output is used by a simulated device.
void Pulse(double length)
Output a single pulse on the digital output line.
void SetPWMRate(double rate)
Change the PWM frequency of the PWM output on a Digital Output line.
Interface for Sendable objects.
Definition: Sendable.h:17
AnalogTriggerType GetAnalogTriggerTypeForRouting() const override
bool IsAnalogTrigger() const override
Is source an AnalogTrigger.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
bool IsPulsing() const
Determine if the pulse is still going.
void UpdateDutyCycle(double dutyCycle)
Change the duty-cycle that is being generated on the line.
DigitalSource Interface.
Definition: DigitalSource.h:25
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23