We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f92df79 commit 08ca069Copy full SHA for 08ca069
internal/app/engine/consume_geometry.go
@@ -49,6 +49,14 @@ func (e *Engine) ProcessGeometry(data *vision.SSL_GeometryData) {
49
newGeometry.CenterCircleRadius = float64(*data.Field.CenterCircleRadius) / 1000.0
50
}
51
52
+ if newGeometry.FieldWidth/2-
53
+ newGeometry.DefenseAreaWidth/2-
54
+ newGeometry.PlacementOffsetDefenseArea-
55
+ newGeometry.PlacementOffsetTouchLine < 0 {
56
+ // move the offset further into the field, if the ball does not fit between defense area and touch line
57
+ newGeometry.PlacementOffsetGoalLine += newGeometry.DefenseAreaDepth
58
+ }
59
+
60
e.stateMachine.Geometry = newGeometry
61
62
if currentGeometry != newGeometry {
0 commit comments