-
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.
Merge branch 'main' of https://github.com/redshiftrobotics/crescendo-…
- Loading branch information
Showing
11 changed files
with
381 additions
and
229 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"java.server.launchMode": "Standard", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"bin/": true, | ||
"**/.classpath": true, | ||
"**/.project": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
"**/*~": true | ||
}, | ||
"java.test.config": [ | ||
{ | ||
"name": "WPIlibUnitTests", | ||
"workingDirectory": "${workspaceFolder}/build/jni/release", | ||
"vmargs": [ "-Djava.library.path=${workspaceFolder}/build/jni/release" ], | ||
"env": { | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" , | ||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
} | ||
}, | ||
], | ||
"java.test.defaultConfig": "WPIlibUnitTests", | ||
"cSpell.words": [ | ||
"AHRS", | ||
"Deadzone", | ||
"Odometry", | ||
"setpoint", | ||
"velociticities" | ||
] | ||
} | ||
|
||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"java.server.launchMode": "Standard", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"bin/": true, | ||
"**/.classpath": true, | ||
"**/.project": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
"**/*~": true | ||
}, | ||
"java.test.config": [ | ||
{ | ||
"name": "WPIlibUnitTests", | ||
"workingDirectory": "${workspaceFolder}/build/jni/release", | ||
"vmargs": [ | ||
"-Djava.library.path=${workspaceFolder}/build/jni/release" | ||
], | ||
"env": { | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release", | ||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
} | ||
}, | ||
], | ||
"java.test.defaultConfig": "WPIlibUnitTests", | ||
// Auto Formatter | ||
"editor.formatOnSave": true, // So you cant forget | ||
"editor.tabSize": 4, // 4 char width indentation | ||
"editor.detectIndentation": false, // Prevent above from being overridden | ||
"editor.insertSpaces": false, // use tab character instead of spaces | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "always" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.Arm; | ||
import frc.robot.subsystems.arm.ArmInterface; | ||
|
||
public class ArmRotateTo extends Command{ | ||
public class ArmRotateTo extends Command { | ||
|
||
private final double setpoint; | ||
private final Arm arm; | ||
private final double setpoint; | ||
private final ArmInterface arm; | ||
|
||
public ArmRotateTo(Arm arm, double degree){ | ||
this.setpoint = degree; | ||
this.arm = arm; | ||
public ArmRotateTo(ArmInterface arm, double degree) { | ||
this.setpoint = degree; | ||
this.arm = arm; | ||
|
||
addRequirements(arm); | ||
addRequirements(arm); | ||
|
||
} | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
arm.setSetpoint(setpoint); | ||
} | ||
@Override | ||
public void initialize() { | ||
arm.setSetpoint(setpoint); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
return arm.isAtDesiredPosition(); | ||
} | ||
@Override | ||
public boolean isFinished() { | ||
return arm.isAtDesiredPosition(); | ||
} | ||
} |
Oops, something went wrong.