Files
mayhem-firmware/firmware/application/ui
Mo a88ba6d9a8 GeoPos: pan continuously across 0° lat/lon (#3317) (#3323)
* GeoPos: pan continuously across 0 deg lat/lon (#3317)

The DMS coordinate fields store an unsigned magnitude with the sign in a
separate hemisphere field (#3283). That made (-1, 0) representable but
left interactive panning unable to cross 0: at magnitude zero the minute/
degree carry clamps instead of flipping the hemisphere, so a 1-degree band
along the equator and the Greenwich meridian is skipped by the wheel.

Route each DMS field's encoder through a signed arcsecond model: a turn
moves the coordinate along the number line, and the hemisphere flip plus
magnitude reflection fall out of one set of fields being rewritten. E.g.
0 deg 0' 42" E minus one minute now gives 0 deg 0' 18" W as expected.

The old per-field on_wrap carry handlers are removed; the fields no longer
apply the turn locally.

* Correct latitude adjustment reporting logic

Fix adjustment logic to only report position if latitude changes.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* GeoPos: apply the clamp-report guard to longitude too

The latitude fix (Copilot review) left adjust_lon() reporting a pan even
when set_lon_arcseconds() clamped at +-180 deg and changed nothing. Guard
it the same way: report only when the signed arcseconds actually changed.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-19 18:00:47 +02:00
..
2025-10-31 18:25:23 +01:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2026-02-24 11:23:41 +01:00
2024-05-27 21:02:52 +02:00
2026-03-02 23:33:09 +01:00
2026-06-11 11:01:54 +02:00
2023-05-20 08:39:35 +12:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2026-08-08 21:47:54 +02:00
2026-05-30 08:24:20 +02:00
2026-04-07 19:42:21 +02:00
2026-04-07 19:42:21 +02:00
2026-08-08 21:47:54 +02:00
2026-08-08 21:47:54 +02:00
2025-05-23 08:42:19 +02:00
2023-05-19 08:16:05 +12:00
2024-11-22 09:54:34 +01:00