Skip to content

Commit

Permalink
updated layout and changed looptime
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Sep 12, 2024
1 parent 980210a commit adf1115
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 36 deletions.
98 changes: 64 additions & 34 deletions aslayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@
"/SwerveDrive/DesiredStates/0/angle",
"/SwerveDrive/CurrentStates/0/angle",
"/photonvision/fl_cam",
"/SwerveDrive/PoseEstimatorPose",
"/Vision",
"/Vision/fl_camPoseEstimation",
"/Vision/fl_camPoseEstimation/translation",
"/Vision/fl_camPoseEstimation/rotation",
"/NoteVisualizer/LaunchedNotes",
"/SwerveDrive",
"/SwerveDrive/CurrentStates",
"/SwerveDrive/DesiredStates"
"/Looptime",
"/SwerveDrive"
]
},
"tabs": {
"selected": 5,
"selected": 1,
"tabs": [
{
"type": 0,
Expand Down Expand Up @@ -89,6 +87,43 @@
},
"title": "Line Graph"
},
{
"type": 1,
"legendHeight": 0.3,
"legends": {
"left": {
"lockedRange": null,
"unitConversion": {
"type": null,
"factor": 1
},
"fields": [
{
"key": "NT:/SwerveDrive/OdomUpdateRate",
"color": "#2b66a2",
"show": true
},
{
"key": "NT:/Looptime/RobotPeriodicLoopRate",
"color": "#e5b31b",
"show": true
}
]
},
"discrete": {
"fields": []
},
"right": {
"lockedRange": null,
"unitConversion": {
"type": null,
"factor": 1
},
"fields": []
}
},
"title": "LoopTimes"
},
{
"type": 4,
"fields": [
Expand Down Expand Up @@ -195,14 +230,14 @@
"cameraIndex": -2,
"orbitFov": 75,
"cameraPosition": [
0.0948801836520725,
3.2238861086067025,
0.2469499751943985
-1.254779207666439,
1.1543753381354955,
-1.363798873502108
],
"cameraTarget": [
0.094882990675214,
0.41078572113049105,
0.24694978849037907
-0.5847603655034967,
0.03279712077260952,
0.10329671958816641
]
},
"title": "3D Field"
Expand Down Expand Up @@ -281,30 +316,25 @@
"title": "Swerve"
},
{
"type": 1,
"legendHeight": 0.3,
"legends": {
"left": {
"lockedRange": null,
"unitConversion": {
"type": null,
"factor": 1
},
"fields": []
},
"discrete": {
"fields": []
},
"right": {
"lockedRange": null,
"unitConversion": {
"type": null,
"factor": 1
},
"fields": []
}
"type": 8,
"uuid": "w26fbqu418htpvs39zw8oddzts9aym4o",
"fields": [],
"listFields": [],
"options": {
"ids": [
0,
1,
2
],
"layouts": [
"Xbox Controller (White)",
"Xbox Controller (Blue)",
"None"
]
},
"title": "Line Graph"
"configHidden": false,
"visualizer": null,
"title": "Joysticks"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6a1814f
980210a
2 changes: 1 addition & 1 deletion src/main/include/Robot.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Robot : public frc::TimedRobot {

units::second_t lastTotalLoopTime;
nt::DoublePublisher loopTimePub{nt::NetworkTableInstance::GetDefault()
.GetTable("Metadata")
.GetTable("Looptime")
->GetDoubleTopic("RobotPeriodicLoopRate")
.Publish()};
};

0 comments on commit adf1115

Please sign in to comment.