Changes between Version 5 and Version 6 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN
- Timestamp:
- Nov 8, 2019, 11:58:31 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN
v5 v6 23 23 leftMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder); 24 24 rightMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder); 25 // Reset encoder counts to 026 leftMotor.setSelectedSensorPosition(0);27 rightMotor.setSelectedSensorPosition(0);28 25 }}} 29 26 … … 47 44 * In autonomousInit() start the motors: 48 45 {{{ 46 // Reset encoder counts to 0 47 leftMotor.setSelectedSensorPosition(0); 48 rightMotor.setSelectedSensorPosition(0); 49 49 // start motors turning forward at 20% power 50 50 leftMotor.set(0.20);