Skip to content

Commit

Permalink
Working swerve and auton.
Browse files Browse the repository at this point in the history
  • Loading branch information
NottheIRS committed Feb 24, 2024
1 parent f13f092 commit 2800d50
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/cpp/ControllerInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void ControllerInterface::UpdateRobotControlData(RobotControlData &controlData)
{
UpdateIntakeInput(controlData);
UpdateLauncherInput(controlData);
// UpdateSwerveInput(controlData);
UpdateSwerveInput(controlData);
};

void ControllerInterface::UpdateIntakeInput(RobotControlData &controlData)
Expand Down Expand Up @@ -42,8 +42,8 @@ void ControllerInterface::UpdateSwerveInput(RobotControlData &controlData)
{
controlData.swerveInput.slowMode = m_pilot.GetLeftBumper();

controlData.swerveInput.xTranslation = m_pilot.GetLeftY();
controlData.swerveInput.yTranslation = m_pilot.GetLeftX();
controlData.swerveInput.xTranslation = -m_pilot.GetLeftY();
controlData.swerveInput.yTranslation = -m_pilot.GetLeftX();
controlData.swerveInput.rotation = -m_pilot.GetRightX();

if (controlData.swerveInput.slowMode)
Expand Down
8 changes: 7 additions & 1 deletion src/main/deploy/pathplanner/autos/90 Degree Auto.auto
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": 1.0,
"startingPose": null,
"startingPose": {
"position": {
"x": 2.0,
"y": 3.0
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
Expand Down
8 changes: 7 additions & 1 deletion src/main/deploy/pathplanner/autos/Backwards Auto.auto
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": 1.0,
"startingPose": null,
"startingPose": {
"position": {
"x": 10.0,
"y": 2.0
},
"rotation": 0.0
},
"command": {
"type": "sequential",
"data": {
Expand Down
8 changes: 7 additions & 1 deletion src/main/deploy/pathplanner/autos/Forward Auto.auto
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": 1.0,
"startingPose": null,
"startingPose": {
"position": {
"x": 2.0,
"y": 7.0
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
Expand Down
8 changes: 7 additions & 1 deletion src/main/deploy/pathplanner/autos/Neg 90 Degree Auto.auto
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": 1.0,
"startingPose": null,
"startingPose": {
"position": {
"x": 2,
"y": 7.0
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/Forward Path.path
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"y": 7.0
},
"isLocked": false,
"linkedName": null
"linkedName": "Forward Start"
},
{
"anchor": {
Expand Down

0 comments on commit 2800d50

Please sign in to comment.