Compare commits

...

3 Commits

Author SHA1 Message Date
339bf642a1 post-dcmp code 2025-04-08 17:30:11 -04:00
c75554dfc5 before selectino 2025-04-05 08:23:29 -04:00
e98b3a585e 2 piece worked in match 2025-04-04 11:09:09 -04:00
7 changed files with 40 additions and 40 deletions

View File

@ -16,12 +16,12 @@
},
{
"anchor": {
"x": 1.0549180327868852,
"y": 7.285655737704918
"x": 1.2587090163934425,
"y": 7.08186475409836
},
"prevControl": {
"x": 1.9113820738827756,
"y": 6.339037587019986
"x": 2.115173057489333,
"y": 6.135246603413428
},
"nextControl": null,
"isLocked": false,
@ -34,7 +34,7 @@
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 5.0,
"maxAcceleration": 2.5,
"maxAcceleration": 2.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 400.0,
"nominalVoltage": 12.0,

View File

@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 1.0549180327868852,
"y": 7.285655737704918
"x": 1.2587090163934425,
"y": 7.08186475409836
},
"prevControl": null,
"nextControl": {
"x": 2.3471269368964744,
"y": 7.060270463732315
"x": 2.550917920503032,
"y": 6.856479480125757
},
"isLocked": false,
"linkedName": "HP Left Position"
},
{
"anchor": {
"x": 3.5723360655737704,
"y": 4.996004098360656
"x": 3.6442622950819668,
"y": 5.031967213114754
},
"prevControl": {
"x": 3.256796682012127,
"y": 5.521903070963395
"x": 3.328722911520323,
"y": 5.557866185717494
},
"nextControl": null,
"isLocked": false,
@ -46,7 +46,7 @@
],
"globalConstraints": {
"maxVelocity": 3.5,
"maxAcceleration": 1.25,
"maxAcceleration": 1.5,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 400.0,
"nominalVoltage": 12.0,

View File

@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 1.0549180327868852,
"y": 7.285655737704918
"x": 1.2587090163934425,
"y": 7.08186475409836
},
"prevControl": null,
"nextControl": {
"x": 1.5703893442622952,
"y": 6.734221311475409
"x": 1.7741803278688524,
"y": 6.530430327868851
},
"isLocked": false,
"linkedName": "HP Left Position"

View File

@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 3.5723360655737704,
"y": 4.996004098360656
"x": 3.6442622950819668,
"y": 5.031967213114754
},
"prevControl": null,
"nextControl": {
"x": 3.4398363305729753,
"y": 5.208003674361928
"x": 3.5117625600811717,
"y": 5.243966789116026
},
"isLocked": false,
"linkedName": "L"
},
{
"anchor": {
"x": 1.0549180327868852,
"y": 7.285655737704918
"x": 1.2587090163934425,
"y": 7.08186475409836
},
"prevControl": {
"x": 1.258709016393443,
"y": 7.009938524590164
"x": 1.4625000000000001,
"y": 6.8061475409836065
},
"nextControl": null,
"isLocked": false,

View File

@ -7,7 +7,7 @@ package frc.robot;
import org.littletonrobotics.junction.LoggedRobot;
import org.littletonrobotics.junction.LogFileUtil;
import org.littletonrobotics.junction.Logger;
import org.littletonrobotics.junction.networktables.NT4Publisher;
//import org.littletonrobotics.junction.networktables.NT4Publisher;
import org.littletonrobotics.junction.wpilog.WPILOGReader;
import org.littletonrobotics.junction.wpilog.WPILOGWriter;
@ -35,7 +35,7 @@ public Robot() {
if (isReal()) {
Logger.addDataReceiver(new WPILOGWriter()); // Log to a USB stick ("/U/logs")
Logger.addDataReceiver(new NT4Publisher()); // Publish data to NetworkTables
//Logger.addDataReceiver(new NT4Publisher()); // Publish data to NetworkTables
new PowerDistribution(1, ModuleType.kRev); // Enables power distribution logging
} else {
setUseTiming(false); // Run as fast as possible

View File

@ -226,8 +226,8 @@ public class RobotContainer {
operator.back().onTrue(elevator.homeCommand());
operator.start().toggleOnTrue(
climberPivot.runPivot(() -> -operator.getRightY()*0.5)
.alongWith(climberRollers.runRoller(() -> operator.getLeftY()*0.5)));
climberPivot.runPivot(() -> -operator.getRightY())
.alongWith(climberRollers.runRoller(() -> operator.getLeftY())));
operator.a().onTrue(
safeMoveManipulator(ElevatorConstants.kCoralIntakePosition, ManipulatorPivotConstants.kStartingPosition)

View File

@ -180,13 +180,13 @@ public class Drivetrain extends SubsystemBase {
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.40, 0.40, Units.degreesToRadians(360)));
if(vision.getOrangeTagDetected() && vision.getOrangeTagDetected()){
if(vision.getOrangeDist() < 60 && getVelocity() < 2){
if(vision.getOrangeDist() < 60 && Math.abs(getVelocity()) < 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.025, 0.025, Units.degreesToRadians(360)));
}else if(vision.getOrangeDist() < 100 && getVelocity() < 2){
}else if(vision.getOrangeDist() < 100 && Math.abs(getVelocity()) < 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.05, 0.05, Units.degreesToRadians(360)));
}else if(vision.getOrangeDist() < 60 && getVelocity() > 2){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.15, 0.15, Units.degreesToRadians(360)));
}else if(vision.getOrangeDist() < 100 && getVelocity() > 2){
}else if(vision.getOrangeDist() < 60 && Math.abs(getVelocity()) > 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.2, 0.2, Units.degreesToRadians(360)));
}else if(vision.getOrangeDist() < 100 && Math.abs(getVelocity()) > 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.3, 0.3, Units.degreesToRadians(360)));
}
@ -206,13 +206,13 @@ public class Drivetrain extends SubsystemBase {
if(vision.getBlackTagDetected() && vision.getBlackTagDetected()){
if(vision.getBlackDist() < 60 && getVelocity() < 2){
if(vision.getBlackDist() < 60 && Math.abs(getVelocity()) < 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.025, 0.025, Units.degreesToRadians(360)));
}else if(vision.getBlackDist() < 100 && getVelocity() < 2){
}else if(vision.getBlackDist() < 100 && Math.abs(getVelocity()) < 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.05, 0.05, Units.degreesToRadians(360)));
}else if(vision.getBlackDist() < 60 && getVelocity() > 2){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.15, 0.15, Units.degreesToRadians(360)));
}else if(vision.getBlackDist() < 100 && getVelocity() > 2){
}else if(vision.getBlackDist() < 60 && Math.abs(getVelocity()) > 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.2, 0.2, Units.degreesToRadians(360)));
}else if(vision.getBlackDist() < 100 && Math.abs(getVelocity()) > 3){
m_estimator.setVisionMeasurementStdDevs(VecBuilder.fill(0.3, 0.3, Units.degreesToRadians(360)));
}