LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
OdomSensors Struct Reference

Bundle of all sensors used by the LightLib pose estimator. More...

#include <odometry.hpp>

Public Member Functions

 OdomSensors (TrackingWheel *v1, TrackingWheel *v2, TrackingWheel *h1, TrackingWheel *h2, pros::Imu *imu, pros::Imu *imu2=nullptr)
 Wheel + IMU only constructor.
 
 OdomSensors (TrackingWheel *v1, TrackingWheel *v2, TrackingWheel *h1, TrackingWheel *h2, pros::Imu *imu, pros::Imu *imu2, pros::Gps *gps, float gpsOffsetX, float gpsOffsetY, std::vector< DistanceSensorSpec > distanceSensors)
 Full constructor with GPS and distance sensors.
 

Public Attributes

TrackingWheelvertical1
 Primary vertical (forward-axis) tracking wheel.
 
TrackingWheelvertical2
 Secondary vertical tracking wheel (or nullptr).
 
TrackingWheelhorizontal1
 Primary horizontal (lateral) tracking wheel.
 
TrackingWheelhorizontal2
 Secondary horizontal tracking wheel (or nullptr).
 
pros::Imu * imu
 Primary IMU.
 
pros::Imu * imu2
 Optional second IMU; nullptr if not used.
 
pros::Gps * gps
 nullptr → EKF skips the GPS update step.
 
float gpsOffsetX
 meters, robot frame
 
float gpsOffsetY
 meters, robot frame
 
std::vector< DistanceSensorSpecdistanceSensors
 Empty → LightCast inactive; EKF-only mode.
 

Detailed Description

Bundle of all sensors used by the LightLib pose estimator.

Definition at line 110 of file odometry.hpp.

Constructor & Destructor Documentation

◆ OdomSensors() [1/2]

OdomSensors::OdomSensors ( TrackingWheel v1,
TrackingWheel v2,
TrackingWheel h1,
TrackingWheel h2,
pros::Imu *  imu,
pros::Imu *  imu2 = nullptr 
)
inline

Wheel + IMU only constructor.

Definition at line 127 of file odometry.hpp.

◆ OdomSensors() [2/2]

OdomSensors::OdomSensors ( TrackingWheel v1,
TrackingWheel v2,
TrackingWheel h1,
TrackingWheel h2,
pros::Imu *  imu,
pros::Imu *  imu2,
pros::Gps *  gps,
float  gpsOffsetX,
float  gpsOffsetY,
std::vector< DistanceSensorSpec distanceSensors 
)
inline

Full constructor with GPS and distance sensors.

Definition at line 133 of file odometry.hpp.

Member Data Documentation

◆ distanceSensors

std::vector<DistanceSensorSpec> OdomSensors::distanceSensors

Empty → LightCast inactive; EKF-only mode.

Definition at line 124 of file odometry.hpp.

◆ gps

pros::Gps* OdomSensors::gps

nullptr → EKF skips the GPS update step.

Definition at line 119 of file odometry.hpp.

◆ gpsOffsetX

float OdomSensors::gpsOffsetX

meters, robot frame

Definition at line 120 of file odometry.hpp.

◆ gpsOffsetY

float OdomSensors::gpsOffsetY

meters, robot frame

Definition at line 121 of file odometry.hpp.

◆ horizontal1

TrackingWheel* OdomSensors::horizontal1

Primary horizontal (lateral) tracking wheel.

Definition at line 113 of file odometry.hpp.

◆ horizontal2

TrackingWheel* OdomSensors::horizontal2

Secondary horizontal tracking wheel (or nullptr).

Definition at line 114 of file odometry.hpp.

◆ imu

pros::Imu* OdomSensors::imu

Primary IMU.

Definition at line 115 of file odometry.hpp.

◆ imu2

pros::Imu* OdomSensors::imu2

Optional second IMU; nullptr if not used.

Definition at line 116 of file odometry.hpp.

◆ vertical1

TrackingWheel* OdomSensors::vertical1

Primary vertical (forward-axis) tracking wheel.

Definition at line 111 of file odometry.hpp.

◆ vertical2

TrackingWheel* OdomSensors::vertical2

Secondary vertical tracking wheel (or nullptr).

Definition at line 112 of file odometry.hpp.


The documentation for this struct was generated from the following file: