19const int KEY = 267267;
73std::vector<Coordinate>
injectPath(std::vector<Coordinate> coordList,
double lookAhead);
One waypoint in the legacy injected-path representation.
light::e_angle_behavior behavior
Turn behavior at the waypoint.
double y
Field-frame Y, inches.
double x
Field-frame X, inches.
double t
Heading at the waypoint, degrees.
double right
Right wheel command at the waypoint.
double left
Left wheel command at the waypoint.
Slew-rate limiter that ramps speed up linearly over a configurable distance.
const int KEY
Misc. magic constant retained for legacy code.
Coordinate getPoint(Coordinate startPoint, double distance)
AutonMode
Auton mode selector for the legacy path runner.
@ ODOM
Odom-based motion primitives.
@ STANLEY
Stanley path-follower.
@ BRAIN
Driven by the brain-screen selector.
@ PLAIN
Direct PID drive sequencing.
double getTimeToPoint(double distance, double velocity)
double angle_offset
Heading offset applied by the legacy helpers.
double getTheta(Coordinate point1, Coordinate point2, light::drive_directions direction)
void turnSet(double theta, int speed, e_angle_behavior behavior)
void delayMillis(int millis)
void turnSetRelative(double theta, int speed, e_angle_behavior behavior)
void driveSet(double distance, int speed, bool slew)
double getDistanceActual(DistanceSide sensor, bool use_theta, double failsafe)
std::vector< Coordinate > injectPath(std::vector< Coordinate > coordList, double lookAhead)
Wait
Wait-mode selector for pidWait().
void driveSmartSet(double distance, int speed)
DistanceSide
Which side a distance sensor faces for the legacy distance helpers.
AutonMode autonMode
Active auton mode for the legacy runner.
void getPathInjected()
Print the post-injection autonPath to the PROS terminal.
std::vector< Coordinate > injectPoint(Coordinate startPoint, Coordinate endPoint, e_angle_behavior behavior, double left, double right, double theta, double lookAhead)
double getVelocity(double voltage)
void pidWaitUntil(okapi::QLength distance)
std::vector< Coordinate > autonPath
Path being executed by the legacy runner.
void setPosition(double x, double y)
const double WHEEL_DIAMETER
Default wheel diameter, inches.
void swingSet(light::e_swing side, double theta, double main, double opp, light::e_angle_behavior behavior)
double getDistance(Coordinate point1, Coordinate point2)
const double ROBOT_WIDTH
Default robot track width, inches.
void getPath()
Print the current autonPath to the PROS terminal.
Umbrella header for LightLib's own classes.
e_angle_behavior
How to choose a turn direction when reaching an absolute heading.
e_swing
Direction for swing-turn motions.
drive_directions
Drive direction with multiple spelling aliases.