FRC1076 / 2019-Competition

Code for 2019 Competition
1 stars 1 forks source link

Fix driver control values so they are scaled *after* the deadzoning. #59

Closed mcolinj closed 5 years ago

mcolinj commented 5 years ago

In robot code, we have the following:

goal_forward = self.driver.getRawAxis(3) rotation_value = -self.driver.getX(LEFT_CONTROLLER_HAND)

goal_forward = deadzone(goal_forward max_forward, deadzone_value) rotation_value = deadzone(rotation_value max_rotate, deadzone_value)

That scales up the joystick values before the deadzoning.

mcolinj commented 5 years ago

Fixed with pull request #62