Changes between Version 7 and Version 8 of ControlSystems/SampleCode/Ultrasonic


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SampleCode/Ultrasonic

    v7 v8  
    33
    441. 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 Ultrasonic class provided with WPILib is defective and does not work with more than one ultrasonic sensor.
     51. 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.
    661. Replace the auto-generated Robot.java class with the one below
    77
     
    4646    SmartDashboard.putData("Auto choices", m_chooser);
    4747
     48    // front sensor on DIO8/9 and rear sensor on DIO5/4 (Trig/Echo)
    4849    front = new Ultrasonic2537(8, 9);
    4950    rear = new Ultrasonic2537(5, 4);