Skip to content

Commit

Permalink
Saturday Lansing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
NottheIRS committed Mar 25, 2024
1 parent 7b1cd12 commit 27f4a5b
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 21 deletions.
3 changes: 2 additions & 1 deletion src/main/cpp/AutoAimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
#include <frc/smartdashboard/SmartDashboard.h>

AutoAimer::AutoAimer()

{
m_lookup.emplace_back(VisionSetPoint{59.34, 50.0, 75.0, -51.9});
m_lookup.emplace_back(VisionSetPoint{107.4769, 30, 130.0, -89.5});
m_lookup.emplace_back(VisionSetPoint{155.16, 22.3, 175.0, -104.5});
m_lookup.emplace_back(VisionSetPoint{155.16, 21.3, 130.0, -89.5});
m_lookup.emplace_back(VisionSetPoint{172.71, 20.25, 130.3, -89.5});
m_lookup.emplace_back(VisionSetPoint{200.58, 20.5, 250, -106.5});

Expand Down
4 changes: 2 additions & 2 deletions src/main/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void Robot::RobotInit() {

frc::CameraServer::StartAutomaticCapture();

m_cvSink = frc::CameraServer::GetVideo();
m_cvSource = frc::CameraServer::PutVideo("Camera", 640, 480);
// m_cvSink = frc::CameraServer::GetVideo();
// m_cvSource = frc::CameraServer::PutVideo("Camera", 640, 480);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/BLUE_3_Piece_Path_1.path
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "SmartIntakeCommand",
"waypointRelativePos": 0,
"waypointRelativePos": 0.05,
"command": {
"type": "parallel",
"data": {
Expand Down
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/paths/BLUE_3_Piece_Path_2.path
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"constraintZones": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.45,
"name": "SmartIntake",
"waypointRelativePos": 0.05,
"command": {
"type": "parallel",
"data": {
Expand Down
6 changes: 3 additions & 3 deletions src/main/deploy/pathplanner/paths/BLUE_3_Piece_Path_4.path
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
"constraintZones": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.35,
"name": "SmartIntake",
"waypointRelativePos": 0.05,
"command": {
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "VisionShoot"
"name": "SmartIntakeCommand"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "Intake",
"waypointRelativePos": 0.5,
"waypointRelativePos": 0.05,
"command": {
"type": "parallel",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/BLUE_Path1.path
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eventMarkers": [
{
"name": "SmartIntake",
"waypointRelativePos": 0.35,
"waypointRelativePos": 0.05,
"command": {
"type": "sequential",
"data": {
Expand Down
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/paths/BLUE_Path2.path
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"constraintZones": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.25,
"name": "SmartIntake",
"waypointRelativePos": 0.05,
"command": {
"type": "parallel",
"data": {
Expand Down
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/paths/RED_3_Piece_Path_1.path
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "SmartIntakeCommand",
"waypointRelativePos": 0,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand All @@ -58,7 +58,7 @@
"goalEndState": {
"velocity": 0,
"rotation": 25.0,
"rotateFast": false
"rotateFast": true
},
"reversed": false,
"folder": "REDPATH",
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/RED_3_Piece_Path_2.path
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "SmartIntake",
"waypointRelativePos": 0.25,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/RED_3_Piece_Path_4.path
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eventMarkers": [
{
"name": "SmartIntake",
"waypointRelativePos": 0.2,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "Intake",
"waypointRelativePos": 0.5,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/RED_Path1.path
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eventMarkers": [
{
"name": "SmartIntake",
"waypointRelativePos": 0.35,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/RED_Path2.path
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eventMarkers": [
{
"name": "SmartIntake",
"waypointRelativePos": 0.25,
"waypointRelativePos": 0.1,
"command": {
"type": "parallel",
"data": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/include/SwerveConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rev::SparkPIDController fl_drive_pid = fl_drive_mtr.GetPIDController();
// --------------------Absolute Encoder-----------------------
const int FR_ABS_ENC_PORT = 12;
const bool FR_ABS_ENC_INVERTED = false;
const frc::Rotation2d FR_ZERO_HEADING{units::degree_t{77.9f}};
const frc::Rotation2d FR_ZERO_HEADING{units::degree_t{92.94f}};

ctre::phoenix6::hardware::CANcoder fr_abs_enc{FR_ABS_ENC_PORT};

Expand Down

0 comments on commit 27f4a5b

Please sign in to comment.