#include "globals.h" std::optional raw_gas, raw_brems; std::optional 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{}; float lastAvgSpeedKmh{}; float avgAccel{}; bool isLocked{}; espchrono::millis_clock::time_point lastAvgSpeedKmhTs{}; std::optional sunrise; std::optional sunset; std::optional sunrise_dt; esp_chip_info_t chip_info; esp_pm_config_t pm_config; #ifdef GLOBALS_SOURCE GLOBALS_SOURCE #endif bool simplified = #if defined(HAS_SIMPLIFIED) true #else false #endif ; ProfileSettings profileSettings; SettingsPersister settingsPersister; std::atomic rawButtonRequest; std::atomic buttonRequest; bool initScreenRequest{false}; Controllers controllers; #ifdef FEATURE_BLUETOOTH BluetoothSerial bluetoothSerial; #endif ModeInterface *lastMode{}; ModeInterface *currentMode{};