Changes between Version 7 and Version 8 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous
- Timestamp:
- Nov 3, 2019, 8:52:10 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous
v7 v8 49 49 }}} 50 50 51 * In robotPeriodic() display the encoder values52 * For PWM controller robots (Macadamia):51 * For PWM controller robots (Macadamia),[[BR]] 52 in robotPeriodic() display the encoder values: 53 53 {{{ 54 54 SmartDashboard.putNumber("Left", leftEncoder.getDistance()); 55 55 SmartDashboard.putNumber("Right", rightEncoder.getDistance()); 56 56 }}} 57 58 * Add the following functionto the Robot class:57 * For CAN motor controllers (Hazelnut): 58 * First add the following new method to the Robot class: 59 59 {{{ 60 60 double raw2inches(int raw_count, int counts_per_rotation, double wheel_diameter) {