Files
bobbycar-boardcomputer-firm…/main/globals.cpp
T

42 lines
686 B
C++
Raw Normal View History

2021-11-01 20:44:57 +01:00
#include "globals.h"
std::optional<int16_t> raw_gas, raw_brems;
std::optional<float> gas, brems;
#ifdef FEATURE_GAMETRAK
int16_t raw_gametrakX{};
int16_t raw_gametrakY{};
int16_t raw_gametrakDist{};
float gametrakX;
float gametrakY;
float gametrakDist;
#endif
2022-01-09 04:28:43 +01:00
2021-11-01 20:44:57 +01:00
float avgSpeed{};
float avgSpeedKmh{};
float sumCurrent{};
2021-11-21 01:37:51 +01:00
bool isLocked{};
2021-11-01 20:44:57 +01:00
2022-02-08 10:59:47 +01:00
#ifdef GLOBALS_SOURCE
GLOBALS_SOURCE
#endif
2021-11-01 20:44:57 +01:00
bool simplified =
#if defined(HAS_SIMPLIFIED)
true
#else
false
#endif
;
2022-01-03 17:13:45 +01:00
ProfileSettings profileSettings;
2021-11-01 20:44:57 +01:00
SettingsPersister settingsPersister;
Controllers controllers;
#ifdef FEATURE_BLUETOOTH
BluetoothSerial bluetoothSerial;
#endif
ModeInterface *lastMode{};
ModeInterface *currentMode{};