135 std::shared_ptr<DigitalSource> m_source;
137 int m_edgesPerRevolution;
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation source
Definition: ThirdPartyNotices.txt:111
DigitalSource Interface.
Definition: DigitalSource.h:22
Tachometer for getting rotational speed from a device.
Definition: Tachometer.h:29
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 SetSamplesToAverage(int samples)
Sets the number of samples to average.
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.
units::second_t GetPeriod() const
Gets the tachometer period.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
int GetSamplesToAverage() const
Gets the number of sample to average.
Tachometer(Tachometer &&)=default
Tachometer(std::shared_ptr< DigitalSource > source)
Constructs a new tachometer.
int GetEdgesPerRevolution() const
Gets the number of edges per revolution.
Tachometer(DigitalSource &source)
Constructs a new tachometer.
bool GetStopped() const
Gets if the tachometer is stopped.
void SetUpdateWhenEmpty(bool updateWhenEmpty)
Sets if to update when empty.
Definition: SendableBuilder.h:18
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
::int32_t int32_t
Definition: Meta.h:57
Definition: AprilTagPoseEstimator.h:15