Web UI: draw harvester and articulated vehicles on the map - #91
Merged
Merged
Conversation
The map always drew the tractor sprite regardless of the selected vehicle type. Add AgOpenGPS's AoG harvester and articulated front/rear textures and draw them with the same per-type layout as AgOpenGPS CVehicle: - Harvester: body 2*tw x 3*wb centred on the pivot, steerable wheels at the rear axle turned opposite to a tractor, tinted dark. - Articulated: front and rear halves 2*tw x 1.3*wb centred +/-wb/2 about the hinge, each turned by half the steer angle. The tractor path is unchanged apart from sharing the vehicle-frame setup. Until a sprite loads, the existing triangle fallback is drawn. Fixes #88 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Sep 19, 2026
Merged
mukptl
pushed a commit
to mukptl/AgOpenWeb
that referenced
this pull request
Sep 22, 2026
- Section zones (Tool config -> Zones) now do what AgOpenGPS does with them: the section bar shows one button per zone instead of per section, and a tap cycles the zone's last section Off -> Auto -> On and applies it to every section in the zone (btnZoneX_Click). New gated section.toggleZone. Automatic control and hardware output stay per section, as in AgOpenGPS. - Vehicle type Harvester forces a front-mounted tool and the tool panel only offers Front Fixed (AgOpenGPS ConfigTool). Vehicle drawing by type was already done (AgOpenGPS-Official#88/AgOpenGPS-Official#91). Steer switch enable was already wired by AgOpenGPS-Official#124 (steer switch as work switch, auto or manual sections). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The map always drew the tractor sprite regardless of the selected vehicle type (#88). The native renderer only ever had the tractor, so this ports the other two types from AgOpenGPS
CVehicle.DrawVehicle, using its AoG brand textures:HarvesterWheelColor).Adds
HarvesterAoG.png,ArticulatedFrontAoG.pngandArticulatedRearAoG.pngtowwwroot/icons, copied fromAgOpen_Snapshot. Until a sprite loads, the existing triangle fallback is drawn.Testing
Manually checked in the desktop app: switched between tractor, harvester and articulated in vehicle settings and steered in the simulator.
Fixes #88
🤖 Generated with Claude Code