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 e6bbeed commit c1b2672Copy full SHA for c1b2672
internal/app/engine/consume_geometry.go
@@ -54,7 +54,8 @@ func (e *Engine) ProcessGeometry(data *vision.SSL_GeometryData) {
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
+ defaultPlacementOffsetGoalLine := e.gameConfig.DefaultGeometry[e.currentState.Division.Div()].PlacementOffsetGoalLine
58
+ newGeometry.PlacementOffsetGoalLine = defaultPlacementOffsetGoalLine + newGeometry.DefenseAreaDepth
59
}
60
61
e.stateMachine.Geometry = newGeometry
0 commit comments