mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 10:46:12 +00:00
feat(units): imperial min-distance gate + imperial map grid
Follow the global Units preference in the two remaining Trail distance spots that were still metric-only: - Min dist gate: the index is now a unit-agnostic level (0=finest..3). Metric stays 5/10/25/100 m; imperial uses round 15/30/75/300 ft (applied as their metre equivalents in the sampling gate). - Map scale grid: imperial mode uses round ft/mi steps (10 ft … 100 mi) instead of metric steps with a converted label. Step storage moved to float metres so sub-metre imperial steps keep their geometry; labels come from a parallel table so the scale bar reads an exact round value. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -102,7 +102,7 @@ struct NodePrefs { // persisted to file
|
||||
// GPS trail cadence. Logging on/off is a runtime state (Tools › Trail),
|
||||
// not a persisted preference.
|
||||
uint8_t trail_interval_idx; // reserved — sampling cadence is now fixed at TrailStore::SAMPLING_SECS
|
||||
uint8_t trail_min_delta_idx; // indexes TrailStore::minDeltaMeters (5/10/25/100 m)
|
||||
uint8_t trail_min_delta_idx; // min-distance gate level (0=finest..3); metres or feet per units_imperial
|
||||
uint8_t trail_units_idx; // legacy: old combined speed/pace+unit index (km/h, mph, min/km, min/mi)
|
||||
|
||||
uint64_t ch_fav_bitmask; // bit i = channel i is marked as favourite
|
||||
|
||||
Reference in New Issue
Block a user