-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
99 additions
and
4 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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// 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.subsystems.sim; | ||
|
||
import edu.wpi.first.math.geometry.Pose3d; | ||
import edu.wpi.first.math.geometry.Rotation3d; | ||
import edu.wpi.first.math.geometry.Translation3d; | ||
import edu.wpi.first.math.util.Units; | ||
import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||
import org.littletonrobotics.junction.Logger; | ||
|
||
public class Sim extends SubsystemBase { | ||
/** Creates a new Sim. */ | ||
public Sim() {} | ||
|
||
double intakeAngle = 0; | ||
|
||
@Override | ||
public void periodic() { | ||
Pose3d[] poses = { | ||
new Pose3d(new Translation3d(), new Rotation3d(0, Units.degreesToRadians(intakeAngle), 0)) | ||
}; | ||
Logger.recordOutput("Poses", poses); | ||
// This method will be called once per scheduler run | ||
} | ||
|
||
public void setIntakeAngle(double param) { | ||
intakeAngle = param; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This folder contains extra assets for the odometry, 3D field, and joystick views. For more details, see the "Custom Fields/Robots/Joysticks" page in the AdvantageScope documentation (available through the documentation tab in the app or the URL below). | ||
|
||
https://github.com/Mechanical-Advantage/AdvantageScope/blob/main/docs/CUSTOM-ASSETS.md |
25 changes: 25 additions & 0 deletions
25
src/main/java/frc/robot/util/userAssets/Robot_Slink/config.json
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "Slink", | ||
"rotations": [{"axis" : "x", "degrees" : 90}, {"axis" : "z", "degrees" : 180}], | ||
"position": [-0.3429, -0.3429, 0.1], | ||
"cameras": [ | ||
{ | ||
"name": "Right Eye", | ||
"rotations": [{ "axis": "y", "degrees": -25 }, { "axis": "z", "degrees": -25 }], | ||
"position": [0.233, -0.288, 0.259], | ||
"resolution": [1280, 720], | ||
"fov": 70 | ||
}, | ||
{ | ||
"name": "Left Eye", | ||
"rotations": [{ "axis": "y", "degrees": -25 }, { "axis": "z", "degrees": 25 }], | ||
"position": [0.233, 0.288, 0.259], | ||
"resolution": [1280, 720], | ||
"fov": 70 | ||
} | ||
], | ||
"components": [{ | ||
"zeroedRotations":[{"axis": "x", "degrees" : 90}], | ||
"zeroedPositions" : [0,0,0] | ||
}] | ||
} |
Binary file not shown.
Binary file not shown.