coordinate rotation at harness turn boundaries
This commit is contained in:
@@ -165,6 +165,12 @@ func (c *Coordinator) rotate(ctx context.Context, hard float64) {
|
||||
if err != nil || occupancy < hard {
|
||||
continue
|
||||
}
|
||||
if boundary, ok := a.(herdr.TurnBoundary); ok {
|
||||
atBoundary, boundaryErr := boundary.AtTurnBoundary(ctx, session)
|
||||
if boundaryErr == nil && !atBoundary {
|
||||
continue
|
||||
}
|
||||
}
|
||||
ref, err := a.Release(ctx, session)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user