77 float poseErrBailIn = 8.0f,
98 bool reversed =
false,
100 float poseErrBailIn = 8.0f,
110 std::vector<PathEvent> events,
111 bool reversed =
false,
113 float poseErrBailIn = 8.0f,
121 bool reversed =
false,
123 float poseErrBailIn = 8.0f,
131 std::vector<PathEvent> events,
132 bool reversed =
false,
134 float poseErrBailIn = 8.0f,
144 bool reversed =
false,
146 float poseErrBailIn = 8.0f,
151 std::vector<PathEvent> events,
152 bool reversed =
false,
154 float poseErrBailIn = 8.0f,
159 bool reversed =
false,
161 float poseErrBailIn = 8.0f,
166 std::vector<PathEvent> events,
167 bool reversed =
false,
169 float poseErrBailIn = 8.0f,
Time-parameterized trajectory: dense state table + total duration.
Initialize once via init(); poll getPose/setPose from any task.
bool runJerryioPathFromSD(const char *filePath, bool reversed=false, int timeoutMs=-1, float poseErrBailIn=8.0f, Follower follower=Follower::PURE_PURSUIT)
Read the CSV from the V5 SD card (e.g.
void characterize_kV_kA_kS(float maxVoltage=10.0f, float rampVps=0.25f)
Identify kV / kA / kS by ramping voltage and recording velocity.
float characterize_track_width(int rotations=10)
Identify the effective track width by spinning in place.
void characterize_friction(float maxVoltage=10.0f, float stepV=0.5f)
Friction-FF auto-ID for non-trajectory PIDs.
bool followTrajectory(const Trajectory &traj, int timeoutMs=-1, float poseErrBailIn=8.0f, Follower follower=Follower::PURE_PURSUIT)
Follow a pre-generated Trajectory.
void ramsete_configure(RamseteConfig rc, DriveFF ff, TrajConstraints defaultCons)
Configure the RAMSETE follower.
Follower
Path-following controller selector.
float characterize_a_lat_max()
Identify the maximum sustainable lateral acceleration.
bool runJerryioPath(const char *csv, bool reversed=false, int timeoutMs=-1, float poseErrBailIn=8.0f, Follower follower=Follower::PURE_PURSUIT)
Run a waypoint CSV (path.jerryio.com export or hand-written).
Per-wheel feedforward + simple velocity-loop gains.
float kP
Volts per (in/s) of velocity error.
float kS
Volts to break static friction.
float kA
Volts per (in/s²).
float kV
Volts per (in/s) at steady state.
Mid-path action fired once when the trajectory passes its resolved time.
int atWaypoint
Index of the waypoint to fire on.
std::function< void()> action
Callback invoked when the trigger is reached.
RAMSETE controller and chassis-geometry config.
float b
Aggressiveness — larger = more correction.
float wheelDiamIn
Wheel diameter, inches.
float zeta
Damping, [0, 1]; 0.7 is classic.
float trackWidthIn
Track width, inches.
float gearRatio
wheel_rpm / motor_rpm (0.75 = 36:48 blue).
Kinematic limits used by the trajectory generator.
Time-parameterized trajectory over a Spline.