Speed average and display

This commit is contained in:
2026-04-03 17:47:21 +02:00
parent 49a17bdffd
commit 4e04ae9a3f
7 changed files with 63 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ volatile float teng_global = 0;
volatile int gps_trigger_global = 0;
volatile uint32_t last_lap_time_global = 0;
volatile uint16_t lap_count_global = 0;
volatile float speed_avg_global = 0;
void vbatGlobalRead(float &out) { out = vbat_global; }
@@ -28,3 +29,7 @@ void lastLapTimeGlobalWrite(const uint32_t &in) { last_lap_time_global = in; }
void lapCountGlobalRead(uint16_t &out) { out = lap_count_global; }
void lapCountGlobalWrite(const uint16_t &in) { lap_count_global = in; }
void speedAvgGlobalRead(float &out) { out = speed_avg_global; }
void speedAvgGlobalWrite(const float &in) { speed_avg_global = in; }