Skip to content

Commit

Permalink
sim stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Advay17 committed Sep 15, 2024
1 parent eb27b3b commit 4c76958
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 6 deletions.
1 change: 1 addition & 0 deletions networktables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
92 changes: 92 additions & 0 deletions simgui-ds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"keyboardJoysticks": [
{
"axisConfig": [
{
"decKey": 65,
"incKey": 68
},
{
"decKey": 87,
"incKey": 83
},
{
"decKey": 69,
"decayRate": 0.0,
"incKey": 82,
"keyRate": 0.009999999776482582
}
],
"axisCount": 3,
"buttonCount": 4,
"buttonKeys": [
90,
88,
67,
86
],
"povConfig": [
{
"key0": 328,
"key135": 323,
"key180": 322,
"key225": 321,
"key270": 324,
"key315": 327,
"key45": 329,
"key90": 326
}
],
"povCount": 1
},
{
"axisConfig": [
{
"decKey": 74,
"incKey": 76
},
{
"decKey": 73,
"incKey": 75
}
],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [
77,
44,
46,
47
],
"povCount": 0
},
{
"axisConfig": [
{
"decKey": 263,
"incKey": 262
},
{
"decKey": 265,
"incKey": 264
}
],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [
260,
268,
266,
261,
269,
267
],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
]
}
29 changes: 29 additions & 0 deletions simgui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"HALProvider": {
"Other Devices": {
"motorL": {
"header": {
"open": true
}
},
"motorR": {
"header": {
"open": true
}
},
"servo1": {
"header": {
"open": true
}
}
}
},
"NTProvider": {
"types": {
"/FMSInfo": "FMSInfo"
}
},
"NetworkTables Info": {
"visible": true
}
}
7 changes: 3 additions & 4 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ public RobotContainer() {
* edu.wpi.first.wpilibj2.command.button.JoystickButton}.
*/
private void configureButtonBindings() {
//TODO: Task 7-Replace the null values with the commands you created to move the servo up and down, such that the y button moves it up
//TODO: Task 7-Uncomment the lines below and replace the null values with the commands you created to move the servo up and down, such that the y button moves it up
//and the a button moves it down.
m_controller.y().whileTrue(null);

m_controller.a().whileTrue(null);
// m_controller.y().whileTrue(null);
// m_controller.a().whileTrue(null);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/DriveCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public static Command sequentialExampleCommand(){
}

//TODO: Task 9-Write a Command(function or class) that causes the XRP to drive until the distance returned by the rangefinder
//is less than 2 inches.
//is less than 2 inches. Afterwards, test it by replacing the return value of getAutonomousCommand() in RobotContainer and setting it to instead return the command you wrote.

//TODO: Task 10-Write a Sequential Command Group to move the XRP backwards 2 inches, set the arm preset to index 1, spin the XRP 360 degrees
//and move the XRP forward 3 inches.
//and move the XRP forward 3 inches. Afterwards, test it by replacing the return value of getAutonomousCommand() in RobotContainer and setting it to instead return the command you wrote.
}

0 comments on commit 4c76958

Please sign in to comment.