HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
hololib::DistanceSensor Struct Reference

Configuration for a single distance sensor used in odometry reset. More...

#include <distanceReset.hpp>

Public Attributes

pros::Distance & device
 Pointer to the PROS Distance sensor object.
 
double forward_offset
 Offset of the sensor from the center of rotation (forward direction)
 
double strafe_offset
 Offset of the sensor from the center of rotation (strafe direction)
 
double mounting_angle
 Mounting angle of the sensor in degrees relative to the robot heading.
 

Detailed Description

Configuration for a single distance sensor used in odometry reset.

Definition at line 11 of file distanceReset.hpp.

Member Data Documentation

◆ device

pros::Distance& hololib::DistanceSensor::device

Pointer to the PROS Distance sensor object.

Definition at line 12 of file distanceReset.hpp.

◆ forward_offset

double hololib::DistanceSensor::forward_offset

Offset of the sensor from the center of rotation (forward direction)

Definition at line 13 of file distanceReset.hpp.

◆ strafe_offset

double hololib::DistanceSensor::strafe_offset

Offset of the sensor from the center of rotation (strafe direction)

Definition at line 14 of file distanceReset.hpp.

◆ mounting_angle

double hololib::DistanceSensor::mounting_angle

Mounting angle of the sensor in degrees relative to the robot heading.

Definition at line 15 of file distanceReset.hpp.