3#include "wpi/sendable/Sendable.h"
4#include "wpi/sendable/SendableHelper.h"
5#include "wpi/sendable/SendableBuilder.h"
6#include "TimeOfFlightApi.h"
11class TimeOfFlight :
public wpi::Sendable,
public wpi::SendableHelper<TimeOfFlight> {
202 void SetRangeOfInterest(uint8_t topLeftX, uint8_t topLeftY, uint8_t bottomRightX, uint8_t bottomRightY);
204 void InitSendable(wpi::SendableBuilder& builder)
override;
207 TimeOfFlight_t *m_timeOfFlightHandle;
Definition: TimeOfFlight.h:11
double GetRangeSigma() const
Definition: TimeOfFlight.cpp:36
double GetAmbientLightLevel() const
Definition: TimeOfFlight.cpp:40
void SetRangingMode(RangingMode mode, double sampleTime)
Definition: TimeOfFlight.cpp:48
TimeOfFlight(uint8_t sensorID)
Definition: TimeOfFlight.cpp:5
Status GetStatus() const
Definition: TimeOfFlight.cpp:44
TimeOfFlight(TimeOfFlight &&)=default
void InitSendable(wpi::SendableBuilder &builder) override
Definition: TimeOfFlight.cpp:56
virtual ~TimeOfFlight()
Definition: TimeOfFlight.cpp:11
uint32_t GetFirmwareVersion() const
Definition: TimeOfFlight.cpp:20
void IdentifySensor()
Definition: TimeOfFlight.cpp:16
TimeOfFlight(const TimeOfFlight &)=delete
TimeOfFlight & operator=(TimeOfFlight &&)=default
uint32_t GetSerialNumber() const
Definition: TimeOfFlight.cpp:24
bool IsRangeValid() const
Definition: TimeOfFlight.cpp:28
Status
Definition: TimeOfFlight.h:19
@ kWrappedTarget
Definition: TimeOfFlight.h:60
@ kReturnPhaseBad
Definition: TimeOfFlight.h:46
@ kValid
Definition: TimeOfFlight.h:23
@ kInternalError
Definition: TimeOfFlight.h:65
@ kInvalid
Definition: TimeOfFlight.h:70
@ kSigmaHigh
Definition: TimeOfFlight.h:30
@ kReturnSignalLow
Definition: TimeOfFlight.h:38
@ kHardwareFailure
Definition: TimeOfFlight.h:51
TimeOfFlight & operator=(const TimeOfFlight &)=delete
void SetRangeOfInterest(uint8_t topLeftX, uint8_t topLeftY, uint8_t bottomRightX, uint8_t bottomRightY)
Definition: TimeOfFlight.cpp:52
double GetRange() const
Definition: TimeOfFlight.cpp:32
RangingMode
Definition: TimeOfFlight.h:13
@ kMedium
Definition: TimeOfFlight.h:15
@ kLong
Definition: TimeOfFlight.h:16
@ kShort
Definition: TimeOfFlight.h:14
Definition: CANVenom.h:10