FRCTeam2992 / Robot2023

FRC Team 2992's 2023 Robot Code
Other
1 stars 0 forks source link

[DriveSticks] Scale drive speed by 80% (20% reduction) when in endgame mode #66

Closed nihonjinrxs closed 1 year ago

nihonjinrxs commented 1 year ago

Related Issues and PRs

Issue:

Related PRs:

Checklist

What is changing and why?

This PR implements a slower speed during endgame that applies to both normal drive speed and "slow mode" drive speed. It scales the x1 and y1 values in DriveSticks (lateral movement joystick reads) by an 80% multiplier, and divides the joystick deadband by that same multiplier to account for rescaling needed there.

How was this tested?

This was tested on the bot, and the drivers have said it's good.

Is there anything the reviewer of this PR needs to know to validate that this code is correct?

What do your team members need to know about this?