Closed ssejrog closed 3 months ago
With #82 came vector scaling to keep resolution between the left and right side and the imu.
The first step of this is clamping the left and right PID outputs to the max slew output.
double l_drive_out = util::clamp(leftPID.output, slew_left.output(), -slew_left.output()); double r_drive_out = util::clamp(rightPID.output, slew_right.output(), -slew_right.output());
This has lost resolution, and should be scaled to the max slew output instead.
With #82 came vector scaling to keep resolution between the left and right side and the imu.
The first step of this is clamping the left and right PID outputs to the max slew output.
This has lost resolution, and should be scaled to the max slew output instead.