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

50 lines
935 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
float avgSpeed{};
float avgSpeedKmh{};
float sumCurrent{};
2021-11-21 01:37:51 +01:00
bool isLocked{};
2021-11-01 20:44:57 +01:00
char deviceName[32] = STRING(DEVICE_PREFIX) "_ERR";
bool simplified =
#if defined(HAS_SIMPLIFIED)
true
#else
false
#endif
;
2021-11-14 03:20:21 +01:00
#ifdef FEATURE_DNS_NS
std::string dns_lastIpAddress_v4 = "";
std::string dns_lastIpAddress_v6 = "";
std::string dns_lastIpAddress_v6_global = "";
#endif
2021-11-01 20:44:57 +01:00
Settings settings;
StringSettings stringSettings;
SettingsPersister settingsPersister;
std::array<CRGB, 8> ledstrip_custom_colors;
Controllers controllers;
Performance performance;
#ifdef FEATURE_BLUETOOTH
BluetoothSerial bluetoothSerial;
#endif
ModeInterface *lastMode{};
ModeInterface *currentMode{};