Changes between Version 4 and Version 5 of ControlSystems/SampleCode/Ultrasonic
- Timestamp:
- Nov 3, 2019, 11:27:50 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SampleCode/Ultrasonic
v4 v5 1 1 == Simple Ultrasonic Program 2 2 Continuously reads ultrasonic sensors and displays ranges on smart dashboard 3 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. 6 1. Replace the auto-generated Robot.java class with the one below 3 7 4 8 {{{ … … 15 19 import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; 16 20 import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; 17 import edu.wpi.first.wpilibj.Ultrasonic;18 21 19 22 /** … … 29 32 private String m_autoSelected; 30 33 private final SendableChooser<String> m_chooser = new SendableChooser<>(); 31 private Ultrasonic front, rear;34 private Ultrasonic2537 front, rear; 32 35 33 36 /**