|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Distance sensor mount for LightCast. More...
#include <odometry.hpp>
Public Attributes | |
| pros::Distance * | sensor |
| Backing PROS distance sensor (not owned). | |
| float | offsetX |
| Mount X in robot frame, inches. | |
| float | offsetY |
| Mount Y in robot frame, inches. | |
| float | angleRad |
| Ray direction in robot frame, radians. | |
| float(* | raycastFn )(float, float, float, float) = nullptr |
| leave null for the generic perimiter raycast (works for any angle). | |
Distance sensor mount for LightCast.
offsetX/Y in inches, robot frame; angleRad = ray direction (0 = +Y, CCW+). In light (not light::lightcast) to keep odometry.hpp independent of lightcast.hpp.
Definition at line 99 of file odometry.hpp.
| float DistanceSensorSpec::angleRad |
Ray direction in robot frame, radians.
Definition at line 103 of file odometry.hpp.
| float DistanceSensorSpec::offsetX |
Mount X in robot frame, inches.
Definition at line 101 of file odometry.hpp.
| float DistanceSensorSpec::offsetY |
Mount Y in robot frame, inches.
Definition at line 102 of file odometry.hpp.
| float(* DistanceSensorSpec::raycastFn) (float, float, float, float) = nullptr |
leave null for the generic perimiter raycast (works for any angle).
assign a face function from src/maps/ if you want the axis-aligned fast path
Definition at line 106 of file odometry.hpp.
| pros::Distance* DistanceSensorSpec::sensor |
Backing PROS distance sensor (not owned).
Definition at line 100 of file odometry.hpp.