update lib (swing)

This commit is contained in:
ary 2023-09-27 10:08:14 -04:00
parent e2d70947c8
commit c32e283605
2 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ class Drive {
* \param speed * \param speed
* 0 to 127, max speed during motion * 0 to 127, max speed during motion
*/ */
void set_swing_pid(e_swing type, double target, int speed); void set_swing(e_swing type, double target, int speed);
/** /**
* Resets all PID targets to 0. * Resets all PID targets to 0.

View File

@ -99,7 +99,7 @@ void Drive::set_turn(double target, int speed) {
} }
// Set swing PID // Set swing PID
void Drive::set_swing_pid(e_swing type, double target, int speed) { void Drive::set_swing(e_swing type, double target, int speed) {
// Print targets // Print targets
if (print_toggle) printf("Swing Started... Target Value: %f\n", target); if (print_toggle) printf("Swing Started... Target Value: %f\n", target);
current_swing = type; current_swing = type;