v2.6.0: Show highest-altitude flight of the day on Statistics screen

Adds FlightLogbook::todayMaxAltitude(), which scans today's logbook
CSV for the entry with the greatest altitude at first sighting, and
displays it as "Highest flight today: <callsign> (<alt> ft)" on the
Statistics screen (Menu -> Flight Options -> Statistics).

Also documents the CYD-flightradar.bin rename step (for GitHub
release uploads) in the CLAUDE.md release workflow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Eiswolf-BG
2026-08-06 15:58:08 +02:00
parent 82b0877e8d
commit f966255329
12 changed files with 100 additions and 7 deletions

View File

@@ -8,6 +8,18 @@ namespace FlightLogbook {
uint16_t todayCount();
struct TopAltitude {
bool found = false;
char callsign[9] = {0};
int32_t altitudeFt = 0;
};
// Sucht in der heutigen Logbuch-Datei den Eintrag mit der hoechsten
// geloggten Flughoehe (jeweils die Hoehe BEIM ERSTEN Sichten, nicht der
// aktuelle Wert) und gibt dessen Rufzeichen + Hoehe zurueck. found=false,
// wenn heute noch nichts geloggt wurde oder die Datei fehlt.
TopAltitude todayMaxAltitude();
void computeAllTimeStats(uint32_t& totalAircraft, uint16_t& totalDays);
struct DayEntry {