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.
We don't want to have ControllerMap.updateControllers() constantly being called in Robot.teleopPeriodic().
Example getter method was written on line 16 of ControllerMap
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 likepublic 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.ControllerMap.updateControllers()
constantly being called inRobot.teleopPeriodic()
.