Team5830 / 2022-Rapid-React

Team 5830's robot code for FIRST Rapid React (2022)
MIT License
0 stars 0 forks source link

Change motor control commands to set voltage instead of using a percentage of motor power #30

Open asteele11 opened 2 years ago

asteele11 commented 2 years ago

The motor controllers are currently using set which determines a percentage of the applied voltage that will be used. Because the battery gradually drains through the match the actual voltage applied can decrease throughout the match. If we change these calls to use setVoltage the code will compensate as the battery voltage drops and the motor control will be more consistent during the match.