Arm Tuning Steps
Run the PSO Direction Debugger to verify the direction of your arm motor. If it is moving up when you are pressing the - button, you need to change the direction of the motor in the
TuningOpModesfile.Run the Friction Test OpMode (ARM) to find the friction RPM and inertia of the motor. Once it finishes, use logcat (flying cat button in AS) to get the values. You should put
tag:PidTunersDataLoggerin the search bar to filter the logs. Place the values in theTuningOpModesfile and re-push the code.Run the Gravity Test OpMode (ARM) to find the gravity model constants. Once done, use the logcat as before and put the values in the
TuningOpModesfile and re-push the code.Run the FindPID OpMode (ARM) to find the PID params. Open logcat right after the start, and it will give you an estimated time of the params. Wait for it to finish, and then copy the PID params from the logcat to the
TuningOpModesfile and re-push the code.Run the Sample OpMode (ARM) to test the PID params. If it works, you can use the PID params in your robot code. If not, you can try to run the whole thing again, or change the PID params manually in the
TuningOpModesfile. (Let us know if it fails by adding an issue on https://github.com/DaCodingBeast/PidTuners!)