Changes between Version 7 and Version 8 of ControlSystems/SoftwareTeam/Training/GettingStarted/UltrasonicRangefinder
- Timestamp:
- Nov 3, 2019, 10:47:12 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/UltrasonicRangefinder
v7 v8 16 16 * in robotInit() instantiate an ultrasonic object and set it to start automatically ranging 17 17 {{{ 18 // Sensor is connected to DIO 1, DIO019 f_ultrasonic = new Ultrasonic( 1,0);18 // Sensor is connected to DIO8, DIO9 19 f_ultrasonic = new Ultrasonic(8,9); 20 20 // Start sensor continuously pinging 21 21 f_ultrasonic.setAutomaticMode(true);