This commit is contained in:
samuel desharnais
2026-03-31 19:11:09 -04:00
parent ae9a6bd046
commit 9d09af20b0
13 changed files with 232 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight-tag")
return Math.atan((x2 - x1) / (y2 - y1)) * (180 / Math.PI) - angle;
}
else{
return Math.atan((x2 - x1) / (y2 - y1)) * (180 / Math.PI)-360 - angle;
return -Math.atan((x2 - x1) / (y2 - y1)) * (180 / Math.PI) - angle;
}
}
@Override