|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Functions | |
| float | raycast (float x, float y, float angleRad, float max_range=FIELD_SIZE_IN) |
Cast a ray from (x, y) in direction angleRad (world frame). | |
Variables | |
| constexpr float | FIELD_SIZE_IN = 144.0f |
| Field side length, inches (12 ft). | |
| constexpr float | FIELD_HALF = FIELD_SIZE_IN / 2.0f |
| Half-side, inches. | |
| float light::field::raycast | ( | float | x, |
| float | y, | ||
| float | angleRad, | ||
| float | max_range = FIELD_SIZE_IN |
||
| ) |
Cast a ray from (x, y) in direction angleRad (world frame).
| x | ray origin X, inches |
| y | ray origin Y, inches |
| angleRad | ray direction in world frame, radians |
| max_range | clamp the returned distance to this many inches |
|
constexpr |
Half-side, inches.
Definition at line 21 of file field_map.hpp.
|
constexpr |
Field side length, inches (12 ft).
Definition at line 20 of file field_map.hpp.