Drive control
Tank or split/single arcade, adjustable joystick curves, active brake, and a Down + B auton test.
Reaper is a VEX V5 template that includes MCL, odometry, autonomous selection and custom driver controls. Built on EZ-Template. Huge shout-out to the EZ team.
Features
Built and tested on 4588G's robots, and written to be readable by new team members.
Tank or split/single arcade, adjustable joystick curves, active brake, and a Down + B auton test.
Drive, turn and swing PID with exit conditions, so movements settle and stop cleanly.
Tracking wheels and redundant IMUs, corrected by distance-sensor MCL against the field walls.
Move to points and follow paths with boomerang-style approaches.
Match slots, skills slots and a red/blue auto toggle, right on the brain screen.
Small, documented files that new programmers can learn from and extend.
Reaper does the hard work for you. You just write what the robot is doing.
ez::Auton match_01() {
return {"Right Side", "Score, then grab the stack", [] {
chassis.pid_drive_set(36_in, 100);
chassis.pid_wait_until(12_in); // checkpoint
chassis.pid_speed_max_set(60);
chassis.pid_wait_quick_chain(); // flow into the turn
chassis.pid_turn_set(90_deg, 80);
chassis.pid_wait();
chassis.pid_odom_set(ez::united_odom{{24_in, 36_in}, ez::fwd, 80});
chassis.pid_wait();
}};
}
// One line puts it on the brain-screen selector
ez::as::auton_selector.autons_add({match_01(), match_02()});