patplanner

This commit is contained in:
samuel desharnais 2024-01-22 20:13:26 -05:00
parent b46e1a57eb
commit 0ad28ac416
4 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.3,
"y": 5.55
},
"rotation": 180.0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "1.1"
}
},
{
"type": "path",
"data": {
"pathName": "1.2"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}

View File

@ -0,0 +1,49 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 1.3,
"y": 5.55
},
"prevControl": null,
"nextControl": {
"x": 1.2733425960299216,
"y": 5.55
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.59859163592971,
"y": 5.55
},
"prevControl": {
"x": 2.534011049823752,
"y": 5.55
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": -179.1243356864854,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": null,
"useDefaultConstraints": false
}

View File

@ -0,0 +1,49 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.6,
"y": 5.55
},
"prevControl": null,
"nextControl": {
"x": 2.6266574039700785,
"y": 5.55
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 1.3,
"y": 5.55
},
"prevControl": {
"x": 1.2354194138940418,
"y": 5.55
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": -179.1243356864854,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": null,
"useDefaultConstraints": false
}

View File

@ -0,0 +1,18 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystem;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Pixy extends SubsystemBase {
/** Creates a new Pixy. */
public Pixy() {}
@Override
public void periodic() {
// This method will be called once per scheduler run
}
}