9#include "wpi/units/time.hpp"
69 void Pulse(wpi::units::second_t pulseLength);
bool Get() const
Gets the value being output from the Digital Output.
void Set(bool value)
Set the value of a digital output.
void EnablePWM(double initialDutyCycle)
Enable a PWM Output on this line.
DigitalOutput & operator=(DigitalOutput &&)=default
void Pulse(wpi::units::second_t pulseLength)
Output a single pulse on the digital output line.
DigitalOutput(int channel)
Create an instance of a digital output.
void UpdateDutyCycle(double dutyCycle)
Change the duty-cycle that is being generated on the line.
bool IsPulsing() const
Determine if the pulse is still going.
void EnablePPS(double dutyCycle)
Enable a PWM PPS (Pulse Per Second) Output on this line.
DigitalOutput(DigitalOutput &&)=default
~DigitalOutput() override
void SetSimDevice(HAL_SimDeviceHandle device)
Indicates this output is used by a simulated device.
void SetPWMRate(double rate)
Change the PWM frequency of the PWM output on a Digital Output line.
void InitSendable(wpi::util::SendableBuilder &builder) override
Initializes this Sendable object.
void DisablePWM()
Change this line from a PWM output back to a static Digital Output line.
A move-only C++ wrapper around a HAL handle.
Definition Types.hpp:16
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.hpp:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.hpp:21
Interface for Sendable objects.
Definition Sendable.hpp:16
HAL_Handle HAL_SimDeviceHandle
Definition Types.h:53
Definition CvSource.hpp:15