Skip to content

Commit

Permalink
using github editor makes me brain dead
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonElia authored Jul 24, 2024
1 parent 15a55cf commit f4575ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public Pose2d getLastSeenPose() {
* @param lastTY the last y offset from the limelight
* @return the current x and y offset from the limelight as [currentTX, currentTY]
*/
private void checkAndUpdatePose(int limelightNumber, double lastTX, double lastTY) {
private double[] checkAndUpdatePose(int limelightNumber, double lastTX, double lastTY) {
// Syncronization block to ensure thread safety during the critical section where pose information is read and compared.
// This helps prevents race conditions, where one limelight may be updating an object that another limelight is reading.
// A race condition could cause unpredictable things to happen. Such as causing a limelight to be unable to reference an
Expand Down

0 comments on commit f4575ef

Please sign in to comment.