Skip to content

End of the pass: seen on a pass bent round trees too - #233

Merged
renatorgr merged 1 commit into
pulverizadorfrom
fix/end-of-pass-on-bend
Nov 14, 2026
Merged

renatorgr merged 1 commit into
pulverizadorfrom
fix/end-of-pass-on-bend

Conversation

@renatorgr

Copy link
Copy Markdown
Owner

What changed

At the end of a pass with no U-turn and a hard boundary, AutoSteer goes off a metre into the headland (EndOfPassWithoutTurn, #197). The check measured "on the line" and "the pass ahead" against the straight pass. A pass bent round Go around obstacles leaves the crop up to 45° off the pass, so the tractor looked like one turning by hand and the check (once per headland entry) said no.

On a tester's field (simulator, 8 m front boom 4.5 m ahead) 3R, bent round two trees in the headland, left the crop 36° off the pass. AutoSteer steered on along the bend for 40 m, until the fence guard stopped it with the boom over the fence.

  • The pipeline hands the check the bend it steers (GoAroundPasses.Current).
  • "On the line" uses the bend's heading at the tractor.
  • PassLeavesFieldAhead walks the bend from its point nearest the tractor. The straight pass beside the bend can still be in the crop where the bend has already left it.
  • Without a bend nothing changes.

On that field, the check now says yes 1 m past the crop (it said no before).

Fork only. CLAUDE.md and the fork README are updated.

Related issue

The tester's report of 14 Nov, 13:36 (Casa, south end of 3R).

Pre-submit checklist

  • dotnet build succeeds with no errors
  • dotnet test passes: Services.Tests 3849 passed, 1 failed (An_old_display_folder_that_cannot_be_removed_does_not_fail_the_save, which fails only when run as root in the cloud container)
  • New: EndOfPassWithoutTurnTests
    • A tree in a wide headland: the bend leaves the crop 35° off, and AutoSteer goes off a metre past the line. This fails without the fix.
    • A bend through a headland strip with crop past it is not the end.
  • Tested on: simulator (tester)

Screenshots

None (no UI change).


Generated by Claude Code

At the end of a pass with no U-turn and a hard fence, AutoSteer goes off a
metre into the headland (EndOfPassWithoutTurn). The check asks whether the
tractor is on the line, heading along it, and walks the pass ahead to the
fence. Both were measured against the straight pass. A pass bent round Go
around obstacles leaves the crop up to 45 degrees off the pass, so the
tractor looked like one turning by hand, and the check (made once per
headland entry) said no. Walking the straight pass from abreast of the
tractor also found crop the bend had already left.

On a tester's field (simulator, 8 m front boom) 3R, bent round two trees in
the headland, left the crop 36 degrees off the pass; AutoSteer steered on
along the bend for 40 m until the fence guard stopped it with the boom over
the fence.

The pipeline now hands the check the bend it steers (GoAroundPasses.Current):
"on the line" is the bend's heading at the tractor, and
PassLeavesFieldAhead walks the bend from its point nearest the tractor.
Without a bend nothing changes. On that field the check now says yes 1 m
past the crop (was no).

Tests: EndOfPassWithoutTurnTests (a tree in a wide headland: the bend leaves
the crop 35 degrees off and AutoSteer goes off a metre past the line; a bend
through a headland strip with crop past it is not the end).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VKEBDFmQpFVsahedjtN2AZ
renatorgr pushed a commit that referenced this pull request Nov 14, 2026
@renatorgr
renatorgr marked this pull request as ready for review November 14, 2026 15:55
@renatorgr
renatorgr merged commit 66e9847 into pulverizador Nov 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants