FRC-Team-1710 / FRC1710-2018

Team 1710's robot code for 2018.
2 stars 0 forks source link

Instead of having variables for each controller value, make getter methods. #35

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 6 years ago

For example if you wanted the turning power from the driver joystick, you'd have to use ControllerMap.turningPower, then plug that into arcade drive or whatever. What would work better is to change that variable into a method like public static double getTurnPower() { return RobotMap.driveStick.getRawAxis(1);} so that whenever we call that method it checks that one thing instead of checking every single input to only pick one.