coordinate rotation at harness turn boundaries

This commit is contained in:
kami
2026-07-26 20:32:01 +04:00
parent 4093bdb683
commit 26011ed33c
3 changed files with 23 additions and 0 deletions
+6
View File
@@ -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