motion profile testing auton

updated
autons.hpp/cpp
main.cpp

added motion profile testing auton
This commit is contained in:
ary 2023-10-28 16:30:47 -04:00
parent 17e807e00a
commit 8329ff34f2
3 changed files with 4 additions and 11 deletions

View File

@ -4,7 +4,7 @@
void test_auton(); void test_auton();
void test_second(); void test_second();
void arc_testing(); void motion_profile_test();
void default_constants(); void default_constants();
void exit_condition_defaults(); void exit_condition_defaults();

View File

@ -125,13 +125,6 @@ void test_second() {
// chassisRight.wait_drive(); // chassisRight.wait_drive();
} }
void arc_testing() { void motion_profile_test() {
while (true) { chassisRight.set_profiled_drive(20, 1000);
if (!taskSwing) {
chassisRight.set_swing_pid(ary::LEFT_SWING, 45, 110);
pros::delay(10);
taskSwing = true;
}
pros::delay(10);
}
} }

View File

@ -43,7 +43,7 @@ void initialize() {
ary::autonselector::auton_selector.add_autons({ ary::autonselector::auton_selector.add_autons({
Auton("Test Auton\n\nTesting Autonomous on field", test_auton), Auton("Test Auton\n\nTesting Autonomous on field", test_auton),
Auton("Test Auton - The Sequel\n\nyo mama", test_second), // TODO: Change this before putting this in the notebook LOL Auton("Test Auton - The Sequel\n\nyo mama", test_second), // TODO: Change this before putting this in the notebook LOL
Auton("CURVATURE, ARCING, AND EVERYTHING IN BETWEEN", arc_testing) Auton("CURVATURE, ARCING, AND EVERYTHING IN BETWEEN more like motion profiles", motion_profile_test)
}); });
chassisRight.set_drive_brake(MOTOR_BRAKE_COAST); chassisRight.set_drive_brake(MOTOR_BRAKE_COAST);