10#include "wpi/units/angular_velocity.hpp"
11#include "wpi/units/frequency.hpp"
12#include "wpi/units/time.hpp"
114 int m_edgesPerRevolution;
bool GetStopped() const
Gets if the tachometer is stopped.
wpi::units::second_t GetPeriod() const
Gets the tachometer period.
Tachometer & operator=(Tachometer &&)=default
~Tachometer() override=default
void InitSendable(wpi::util::SendableBuilder &builder) override
Initializes this Sendable object.
wpi::units::revolutions_per_minute_t GetRevolutionsPerMinute() const
Gets the current tachometer revolutions per minute.
wpi::units::hertz_t GetFrequency() const
Gets the tachometer frequency.
void SetEdgeConfiguration(EdgeConfiguration configuration)
Sets the configuration for the channel.
void SetEdgesPerRevolution(int edges)
Sets the number of edges per revolution.
Tachometer(Tachometer &&)=default
void SetMaxPeriod(wpi::units::second_t maxPeriod)
Sets the maximum period before the tachometer is considered stopped.
wpi::units::turns_per_second_t GetRevolutionsPerSecond() const
Gets the current tachometer revolutions per second.
Tachometer(int channel, EdgeConfiguration configuration)
Constructs a new tachometer.
int GetEdgesPerRevolution() const
Gets the number of edges per revolution.
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
Definition CvSource.hpp:15
EdgeConfiguration
Edge configuration.
Definition EdgeConfiguration.hpp:11