This commit is contained in:
samuel desharnais 2023-12-02 09:30:18 -05:00
parent c26a26c577
commit 0e444784fc
2 changed files with 45 additions and 5 deletions

View File

@ -37,11 +37,15 @@ public class Force1 extends CommandBase {
double vitesse = (100); double vitesse = (100);
if (lanceur.vitesse() > vitesse ){ if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant(); accumulateur.tourneavant();
if(accumulateur.tourneavant()>1024) {
accumulateur.tournearriere(); accumulateur.tournearriere();
} else { }
if(accumulateur.tournearriere()>-256){
accumulateur.stop(); accumulateur.stop();
} }
} }}
// Called once the command ends or is interrupted. // Called once the command ends or is interrupted.
@ -53,6 +57,6 @@ public class Force1 extends CommandBase {
// Returns true when the command should end. // Returns true when the command should end.
@Override @Override
public boolean isFinished() { public boolean isFinished() {
return false; return accumulateur.tournearriere()>-256;
} }
} }

View File

@ -0,0 +1,36 @@
{
"fileName": "PathplannerLib2023.json",
"name": "PathplannerLib",
"version": "2023.4.4",
"uuid": "1b42324f-17c6-4875-8e77-1c312bc8c786",
"frcYear": "2023",
"mavenUrls": [
"https://3015rangerrobotics.github.io/pathplannerlib/repo"
],
"jsonUrl": "https://3015rangerrobotics.github.io/pathplannerlib/PathplannerLib2023.json",
"javaDependencies": [
{
"groupId": "com.pathplanner.lib",
"artifactId": "PathplannerLib-java",
"version": "2023.4.4"
}
],
"jniDependencies": [],
"cppDependencies": [
{
"groupId": "com.pathplanner.lib",
"artifactId": "PathplannerLib-cpp",
"version": "2023.4.4",
"libName": "PathplannerLib",
"headerClassifier": "headers",
"sharedLibrary": false,
"skipInvalidPlatforms": true,
"binaryPlatforms": [
"windowsx86-64",
"linuxx86-64",
"osxuniversal",
"linuxathena"
]
}
]
}