-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package frc.robot.commands; | ||
|
||
public class ServoCommands { | ||
//TODO: Task 3-Write commands to move the servo up, down, and to a specific preset by taking | ||
//in one value for which preset to select. | ||
//The presets are in the constants file. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package frc.robot.subsystems; | ||
|
||
import edu.wpi.first.wpilibj.xrp.XRPRangefinder; | ||
|
||
public class Rangefinder { | ||
private final XRPRangefinder rangefinder; | ||
public Rangefinder(){ | ||
rangefinder=new XRPRangefinder(); | ||
} | ||
//TODO:Task 4-Write a method to get the distance returned by the sensor in inches | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package frc.robot.subsystems; | ||
|
||
import edu.wpi.first.wpilibj.xrp.XRPServo; | ||
import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||
|
||
public class Servo extends SubsystemBase { | ||
private final XRPServo m_armServo; | ||
public Servo(){ | ||
|
||
// Device number 4 maps to the physical Servo 1 port on the XRP | ||
m_armServo = new XRPServo(4); | ||
} | ||
//TODO:Task 2-Write functions to control the arm. You should be able to set the arm's angle and get the angle | ||
//it is at. | ||
} |