Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@
}
],
"satellites": [],
"version": "27.0.0-alpha-5"
"version": "27.0.0-alpha-6"
}
130 changes: 55 additions & 75 deletions examples/stage1/stage1a/solutions/ctre/simgui-ds.json
Original file line number Diff line number Diff line change
@@ -1,77 +1,57 @@
{
"Keyboard 0 Settings": { "window": { "visible": true } },
"keyboardJoysticks": [
{
"axisConfig": [
{},
{
"decKey": 568,
"incKey": 564
},
{
"decayRate": 1,
"keyRate": 1
},
{
"decayRate": 1,
"keyRate": 1
},
{
"decKey": 549,
"incKey": 546
}
],
"axisCount": 5,
"buttonCount": 6,
"buttonKeys": [563, -1, -1, -1, 550, 562],
"povConfig": [
{
"keyDown": 614,
"keyDownLeft": 613,
"keyDownRight": 615,
"keyLeft": 616,
"keyRight": 618,
"keyUp": 620,
"keyUpLeft": 619,
"keyUpRight": 621
}
],
"povCount": 1
},
{
"axisConfig": [
{},
{
"decKey": 554,
"incKey": 556
}
],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [558, 597, 599, 600],
"povCount": 0
},
{
"axisConfig": [
{
"decKey": 513,
"incKey": 514
},
{
"decKey": 515,
"incKey": 516
}
],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [521, 519, 517, 522, 520, 518],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
],
"robotJoysticks": [{ "guid": "Keyboard0" }]
"Keyboard 0 Settings": {"window": {"visible": true}},
"keyboardJoysticks": [{
"axisConfig": [{}, {
"decKey": 568,
"incKey": 564
}, {
"decKey": 549,
"decayRate": 1,
"incKey": 546,
"keyRate": 1
}, {
"decayRate": 1,
"keyRate": 1
}],
"axisCount": 3,
"buttonCount": 11,
"buttonKeys": [563, -1, -1, -1, -1, -1, -1, -1, -1, 550, 562],
"povConfig": [{
"keyDown": 614,
"keyDownLeft": 613,
"keyDownRight": 615,
"keyLeft": 616,
"keyRight": 618,
"keyUp": 620,
"keyUpLeft": 619,
"keyUpRight": 621
}],
"povCount": 1
}, {
"axisConfig": [{}, {
"decKey": 554,
"incKey": 556
}],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [558, 597, 599, 600],
"povCount": 0
}, {
"axisConfig": [{
"decKey": 513,
"incKey": 514
}, {
"decKey": 515,
"incKey": 516
}],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [521, 519, 517, 522, 520, 518],
"povCount": 0
}, {
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}],
"robotJoysticks": [{"guid": "Keyboard0"}]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package first.robot.opmode;

import first.robot.Robot;
import org.wpilib.driverstation.NiDsXboxController;
import org.wpilib.driverstation.XboxController;
import org.wpilib.opmode.PeriodicOpMode;
import org.wpilib.opmode.Teleop;

Expand All @@ -15,7 +15,7 @@
public class MyTeleop extends PeriodicOpMode {
private final Robot robot;
// [Controller]
private final NiDsXboxController xboxController = new NiDsXboxController(0);
private final XboxController xboxController = new XboxController(0);

// [/Controller]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@
}
],
"satellites": [],
"version": "27.0.0-alpha-5"
"version": "27.0.0-alpha-6"
}
111 changes: 55 additions & 56 deletions examples/stage1/stage1a/solutions/rev/simgui-ds.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,57 @@
{
"FMS": { "window": { "visible": false } },
"Joysticks": { "window": { "visible": false } },
"System Joysticks": { "window": { "visible": false } },
"keyboardJoysticks": [
{
"axisConfig": [
{},
{
"decKey": 568,
"incKey": 564
},
{},
{},
{
"decKey": 549,
"decayRate": 0.025,
"incKey": 546,
"keyRate": 0.025
}
],
"axisCount": 5,
"buttonCount": 6,
"buttonKeys": [563, -1, -1, -1, 550, 562],
"povConfig": [
{
"key0": 328,
"key135": 323,
"key180": 322,
"key225": 321,
"key270": 324,
"key315": 327,
"key45": 329,
"key90": 326
}
],
"povCount": 1
},
{
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [-1, -1, -1, -1],
"povCount": 0
},
{
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [-1, -1, -1, -1, -1, -1],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
],
"robotJoysticks": [{ "guid": "Keyboard0" }]
"Keyboard 0 Settings": {"window": {"visible": true}},
"keyboardJoysticks": [{
"axisConfig": [{}, {
"decKey": 568,
"incKey": 564
}, {
"decKey": 549,
"decayRate": 1,
"incKey": 546,
"keyRate": 1
}, {
"decayRate": 1,
"keyRate": 1
}],
"axisCount": 3,
"buttonCount": 11,
"buttonKeys": [563, -1, -1, -1, -1, -1, -1, -1, -1, 550, 562],
"povConfig": [{
"keyDown": 614,
"keyDownLeft": 613,
"keyDownRight": 615,
"keyLeft": 616,
"keyRight": 618,
"keyUp": 620,
"keyUpLeft": 619,
"keyUpRight": 621
}],
"povCount": 1
}, {
"axisConfig": [{}, {
"decKey": 554,
"incKey": 556
}],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [558, 597, 599, 600],
"povCount": 0
}, {
"axisConfig": [{
"decKey": 513,
"incKey": 514
}, {
"decKey": 515,
"incKey": 516
}],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [521, 519, 517, 522, 520, 518],
"povCount": 0
}, {
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}],
"robotJoysticks": [{"guid": "Keyboard0"}]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package first.robot.opmode;

import first.robot.Robot;
import org.wpilib.driverstation.NiDsXboxController;
import org.wpilib.driverstation.XboxController;
import org.wpilib.opmode.PeriodicOpMode;
import org.wpilib.opmode.Teleop;

Expand All @@ -15,7 +15,7 @@
public class MyTeleop extends PeriodicOpMode {
private final Robot robot;
// [Controller]
private final NiDsXboxController xboxController = new NiDsXboxController(0);
private final XboxController xboxController = new XboxController(0);

// [/Controller]
/** The Robot instance is passed into the opmode via the constructor. */
Expand Down
Loading