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

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

#include <distanceReset.h>

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 10 of file distanceReset.h.

Member Data Documentation

◆ device

pros::Distance* DistanceSensor::device

Pointer to the PROS Distance sensor object.

Definition at line 11 of file distanceReset.h.

◆ forward_offset

double DistanceSensor::forward_offset

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

Definition at line 12 of file distanceReset.h.

◆ strafe_offset

double DistanceSensor::strafe_offset

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

Definition at line 13 of file distanceReset.h.

◆ mounting_angle

double DistanceSensor::mounting_angle

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

Definition at line 14 of file distanceReset.h.