Changes between Version 7 and Version 8 of ControlSystems/SampleCode/Ultrasonic
- Timestamp:
- Nov 3, 2019, 11:42:03 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SampleCode/Ultrasonic
v7 v8 3 3 4 4 1. Create a new project named Ultrasonic2. 5 1. Download the attached Ultrasonic2537.java and save it in the src/main/java/frc/robot folder . This file is needed because the default Ultrasonicclass provided with WPILib is defective and does not work with more than one ultrasonic sensor.5 1. Download the attached Ultrasonic2537.java and save it in the src/main/java/frc/robot folder of this project. The custom Ultrasonic class is needed because the class provided with WPILib is defective and does not work with more than one ultrasonic sensor. 6 6 1. Replace the auto-generated Robot.java class with the one below 7 7 … … 46 46 SmartDashboard.putData("Auto choices", m_chooser); 47 47 48 // front sensor on DIO8/9 and rear sensor on DIO5/4 (Trig/Echo) 48 49 front = new Ultrasonic2537(8, 9); 49 50 rear = new Ultrasonic2537(5, 4);