ligerbots / Steamworks2017Robot

LigerBots robot code for FIRST Robotics Competition Steamworks
MIT License
2 stars 1 forks source link

TurnCommand.java only works in low gear #24

Open coachFitz0807 opened 7 years ago

coachFitz0807 commented 7 years ago

in the initialize() method, we set isHighGear to false. In the following if/else, we then set: autoTurnRampZone = RobotMap.AUTO_TURN_RAMP_ZONE_LOW; autoTurnMaxSpeed = RobotMap.AUTO_TURN_MAX_SPEED_LOW; autoTurnMinSpeed = RobotMap.AUTO_TURN_MIN_SPEED_LOW;

We either need to query the DriveTrain to find out whether we are actually in HighGear or else we need to call DriveTrain.shift(Down) to make sure that we are in low gear.