Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing inconsistencies and performance issues #85

Merged
merged 63 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a989483
Added PhotonVision
MqxS Mar 2, 2024
14bf25b
Added STD DEVS to photonvision
MqxS Mar 2, 2024
06b5fb0
Added camera transforms
MqxS Mar 2, 2024
45d909a
SysId Swerve. Fix Swerve Gyro Issue
MqxS Mar 2, 2024
82848f2
Merge branch 'fix-swerve' into photonvision
MqxS Mar 2, 2024
ee0b425
Photonvision works
MqxS Mar 2, 2024
f198aff
Merge branch 'master' into photonvision
MqxS Mar 5, 2024
067710c
Fixed Photonvision
MqxS Mar 5, 2024
e246974
Removed sham cameras
MqxS Mar 5, 2024
729346f
Merge branch 'refs/heads/master' into photonvision
HarryXChen3 Apr 13, 2024
e174861
Initial pass at a PV implementation rewrite/refactor. Should work in …
HarryXChen3 Apr 13, 2024
b04a0a2
Initial pass at note tracking, no functionality yet, just logging det…
HarryXChen3 Apr 13, 2024
0d1f7c4
Merge branch 'refs/heads/master' into photonvision
MqxS Jul 24, 2024
661c039
Added note tracking vision IO Inputs
MqxS Jul 24, 2024
6b61d1f
Drive to Maybe Pose Autonomote Note Tracking!!
MqxS Jul 30, 2024
02dc199
Drive to Maybe Pose Autonomous Note Tracking!!
MqxS Jul 30, 2024
0a4ba22
Merge remote-tracking branch 'origin/photonvision' into photonvision
MqxS Jul 30, 2024
02e80e8
better name
MqxS Jul 30, 2024
dd02897
Fixed logs being overwritten
MqxS Jul 30, 2024
302d729
auto note track
MqxS Jul 30, 2024
130fbb7
my computer is too laggy to run so i gotta sim on laptop
MqxS Jul 30, 2024
d324b10
stuff
MqxS Jul 30, 2024
62266a9
photonvision is disabled. janky note detection auto
MqxS Jul 30, 2024
518c48b
getX() replaced with getY()
MqxS Jul 31, 2024
5b7214e
Stole from 254
MqxS Jul 31, 2024
1c704b1
random translation for note tracking camera
MqxS Aug 1, 2024
89866e7
changed note pose calculation
MqxS Aug 9, 2024
8316c40
Merge remote-tracking branch 'origin/photonvision' into photonvision
MqxS Aug 9, 2024
7dcf9e1
it works :)
MqxS Aug 17, 2024
2b2005d
Test adding two translations together on real robot.
MqxS Aug 19, 2024
ebcc468
i wanna make teleop assist
MqxS Aug 20, 2024
c8dc066
probably not working teleop note lineup assist.
MqxS Aug 21, 2024
6009616
Merge remote-tracking branch 'origin/photonvision' into photonvision
MqxS Aug 21, 2024
28727c8
i cooked :(
MqxS Aug 21, 2024
7f1d2ba
this kinda sucks :|
MqxS Aug 21, 2024
f657602
Added way to disable PV. Line up to note seems to work. Need to make …
MqxS Aug 21, 2024
2c65bb8
Merge branch 'master' into photonvision
MqxS Oct 2, 2024
767382a
Got note assist during teleop working. Added timestamp check to note …
MqxS Oct 2, 2024
f343f4a
Reordered teleop note align code.
MqxS Oct 3, 2024
93f28b2
Moved lineup pose into inner optional present scope for autoalign
MqxS Oct 3, 2024
cba035b
Tried note tracking auto. Added rumble to both controllers on note pi…
MqxS Oct 6, 2024
2140218
post de
MqxS Oct 6, 2024
05eaeab
Removed assisted rotation from teleopAssitedLineup
MqxS Oct 7, 2024
bab8094
note tracking failures.
MqxS Oct 9, 2024
74c488a
allegedly this solves the problems.
MqxS Oct 9, 2024
ecb87b3
added distance offset
MqxS Oct 9, 2024
e0a22c6
workingish note distance
MqxS Oct 10, 2024
5bc4375
idk why it wont get the flipped one 😭😭😭😭😭😭😭
MqxS Oct 10, 2024
d936f1a
extra auto path
MqxS Oct 10, 2024
442e728
Goated changes sim
MqxS Oct 11, 2024
8ce80a3
maybe PV replay?
MqxS Oct 11, 2024
95a93be
some auto position reset stuff
MqxS Oct 11, 2024
f8ed1c2
seems to work okay.
MqxS Oct 11, 2024
5dfb70e
Removed mega cooked autos. Gave up on note tracking 😭
MqxS Oct 11, 2024
f29a350
READY FOR GRITS DAY 2
MqxS Oct 19, 2024
5207c87
added goated auto v2
MqxS Oct 19, 2024
4f9378c
i hate this variable. changed from sim to real.
MqxS Oct 19, 2024
73de761
qual 47 and whatever next is
MqxS Oct 19, 2024
582c5a4
grits
MqxS Oct 25, 2024
71fbd29
Added an option for the robot to not intake a note in Sim. Figured ou…
MqxS Nov 5, 2024
399dbac
Merge remote-tracking branch 'origin/master' into timing-inconsistenc…
MqxS Nov 5, 2024
9aac65a
Merge branch 'grits' into timing-inconsistencies-and-performance-issues
MqxS Nov 5, 2024
4cff1b4
Merge branch 'master' into timing-inconsistencies-and-performance-issues
MqxS Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import groovy.json.JsonSlurper

plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.3.2"
Expand All @@ -15,6 +17,8 @@ java {

def ROBOT_MAIN_CLASS = "frc.robot.Main"

final MAX_JAVA_HEAP_SIZE_MB = 100;

repositories {
mavenLocal()
mavenCentral()
Expand Down Expand Up @@ -55,6 +59,15 @@ deploy {
// getTargetTypeClass is a shortcut to get the class type using a string

frcJava(getArtifactTypeClass('FRCJavaArtifact')) {
jvmArgs.add("-XX:+UnlockExperimentalVMOptions")

// Set the minimum heap size to the maximum heap size to avoid resizing
jvmArgs.add("-Xmx" + MAX_JAVA_HEAP_SIZE_MB + "M")
jvmArgs.add("-Xms" + MAX_JAVA_HEAP_SIZE_MB + "M")
jvmArgs.add("-XX:GCTimeRatio=5")
jvmArgs.add("-XX:+UseSerialGC")
jvmArgs.add("-XX:MaxGCPauseMillis=50")
jvmArgs.add("-XX:+AlwaysPreTouch")
}

// Static files artifact
Expand Down Expand Up @@ -102,7 +115,7 @@ dependencies {
testImplementation "org.mockito:mockito-core:5.4.0"
testImplementation 'org.mockito:mockito-junit-jupiter:5.4.0'

def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text)
def akitJson = new JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text)
annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:$akitJson.version"
}

Expand Down
Loading