Skip to content

Commit

Permalink
⚠️ Fix goal pose
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamagoham committed Jun 21, 2022
1 parent 0d66ebd commit 76e1af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ func VisionReceive(chvision chan bool, port int, ourteam int, goalpos int, simmo
if line.GetName() == "LeftGoalTopLine" {
lgtlp1x = line.GetP1().GetX()
lgtlp1y = line.GetP1().GetY()
lgtlp2x = line.GetP2().GetX()
}
if line.GetName() == "LeftGoalBottomLine" {
lgblp2y = line.GetP2().GetY()
lgtlp2x = line.GetP1().GetX()
}
}
left_geo_goal_x = (lgtlp1x + lgtlp2x) * 0.5
Expand Down

0 comments on commit 76e1af8

Please sign in to comment.