117 int m_edgesPerRevolution;
Tachometer for getting rotational speed from a device.
Definition Tachometer.h:30
Tachometer & operator=(Tachometer &&)=default
void SetMaxPeriod(units::second_t maxPeriod)
Sets the maximum period before the tachometer is considered stopped.
units::hertz_t GetFrequency() const
Gets the tachometer frequency.
void SetEdgesPerRevolution(int edges)
Sets the number of edges per revolution.
units::turns_per_second_t GetRevolutionsPerSecond() const
Gets the current tachometer revolutions per second.
units::revolutions_per_minute_t GetRevolutionsPerMinute() const
Gets the current tachometer revolutions per minute.
Tachometer(int channel, EdgeConfiguration configuration)
Constructs a new tachometer.
units::second_t GetPeriod() const
Gets the tachometer period.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
Tachometer(Tachometer &&)=default
int GetEdgesPerRevolution() const
Gets the number of edges per revolution.
void SetEdgeConfiguration(EdgeConfiguration configuration)
Sets the configuration for the channel.
bool GetStopped() const
Gets if the tachometer is stopped.
~Tachometer() override=default
A move-only C++ wrapper around a HAL handle.
Definition Types.h:98
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.h:21
Interface for Sendable objects.
Definition Sendable.h:16
Definition SystemServer.h:9
EdgeConfiguration
Edge configuration.
Definition EdgeConfiguration.h:11