Library files:
/include/8059PurePursuitInclude
/src/8059PurePursuitSrc
Supporting files:
autonSets.cpp
&autonSets.hpp
mechLib.cpp
&mechLib.hpp
globals.hpp
- Sensors: handle input data from encoders, inertial and motor voltage
- Encoders -->
encdL, encdR
- Inertial -->
bearing
-->angle
- Motor Voltage -->
measuredVL, measuredVR
- Encoders -->
- Odom: uses trigonometry to track the robot's absolute
position
(relative to field) over time
- Node: basic
Node
class of a 2D point - Path:
Path
class:- Point injection
- Path smoothing
- Calculate distance between smoothed pathpoints
- Calculate curvature of every smoothed pathpoint
- Calculate theoretical maximum velocity of every smoothed pathpoint
- Calculate target velocity of every smoothed pathpoint, with capped deceleration (backward capping) (i.e. capped acceleration from the last point)
- Still subjected to forward capping to be implemented during motor control
- Forms the later half of trapezoidal velocity control
- Control: use information from
path
to control base motors, using both feedforward and feedback
- Math: handle mathematical calculations
- Debug: print functions for debugging
- api: api file