Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN
- Timestamp:
- Nov 12, 2019, 7:57:06 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN
v6 v7 20 20 leftMotor.configFactoryDefault(); 21 21 rightMotor.configFactoryDefault(); 22 // Right motor must turn in opposite direction 23 rightMotor.setInverted(true); 22 24 // Quadrature encoders are connected directly to the motor controllers 23 25 leftMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder); … … 49 51 // start motors turning forward at 20% power 50 52 leftMotor.set(0.20); 51 // to go forward, left motor turns clockwise, right motor counter-clockwise 52 rightMotor.set(-0.20); 53 rightMotor.set(0.20); 53 54 }}} 54 55