LapCounter finished and working

This commit is contained in:
2026-04-03 16:20:45 +02:00
parent 2ff1024a69
commit ecccadc913
11 changed files with 283 additions and 137 deletions

View File

@@ -3,30 +3,23 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "general_store.h"
volatile float vbat_global = 0;
volatile float teng_global = 0;
volatile int gps_trigger_global = 0;
volatile float vbat_global = 0;
volatile float teng_global = 0;
volatile int gps_trigger_global = 0;
volatile uint32_t last_lap_time_global = 0;
void vbatGlobalRead(float& out) {
out = vbat_global;
}
void vbatGlobalRead(float &out) { out = vbat_global; }
void vbatGlobalWrite(const float& in) {
vbat_global = in;
}
void vbatGlobalWrite(const float &in) { vbat_global = in; }
void tengGlobalRead(float& out) {
out = teng_global;
}
void tengGlobalRead(float &out) { out = teng_global; }
void tengGlobalWrite(const float& in) {
teng_global = in;
}
void tengGlobalWrite(const float &in) { teng_global = in; }
void gpsTriggerGlobalRead(int& out) {
out = gps_trigger_global;
}
void gpsTriggerGlobalRead(int &out) { out = gps_trigger_global; }
void gpsTriggerGlobalWrite(const int& in) {
gps_trigger_global = in;
}
void gpsTriggerGlobalWrite(const int &in) { gps_trigger_global = in; }
void lastLapTimeGlobalRead(uint32_t &out) { out = last_lap_time_global; }
void lastLapTimeGlobalWrite(const uint32_t &in) { last_lap_time_global = in; }