Changes between Version 4 and Version 5 of ControlSystems/SampleCode/Ultrasonic


Ignore:
Timestamp:
Nov 3, 2019, 11:27:50 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SampleCode/Ultrasonic

    v4 v5  
    11== Simple Ultrasonic Program
    22Continuously reads ultrasonic sensors and displays ranges on smart dashboard
     3
     41. Create a new project named Ultrasonic2.
     51. Download the attached Ultrasonic2537.java and save it in the src/main/java/frc/robot folder.
     61. Replace the auto-generated Robot.java class with the one below
    37
    48{{{
     
    1519import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
    1620import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
    17 import edu.wpi.first.wpilibj.Ultrasonic;
    1821
    1922/**
     
    2932  private String m_autoSelected;
    3033  private final SendableChooser<String> m_chooser = new SendableChooser<>();
    31   private Ultrasonic front, rear;
     34  private Ultrasonic2537 front, rear;
    3235
    3336  /**