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

58 lines
1.0 KiB
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{};
float lastAvgSpeedKmh{};
float avgAccel{};
2021-11-21 01:37:51 +01:00
bool isLocked{};
2021-11-01 20:44:57 +01:00
espchrono::millis_clock::time_point lastAvgSpeedKmhTs{};
2022-04-01 15:41:18 +02:00
std::optional<int> sunrise;
std::optional<int> sunset;
std::optional<espchrono::DateTime> sunrise_dt;
2022-05-16 00:09:52 +02:00
esp_chip_info_t chip_info;
2023-08-13 22:33:45 +02:00
esp_pm_config_t pm_config;
2022-05-16 00:09:52 +02: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;
2022-06-23 21:50:58 +02:00
std::atomic<int8_t> rawButtonRequest;
std::atomic<int8_t> buttonRequest;
2022-06-25 21:58:28 +02:00
bool initScreenRequest{false};
2022-06-23 21:50:58 +02:00
2021-11-01 20:44:57 +01:00
Controllers controllers;
#ifdef FEATURE_BLUETOOTH
BluetoothSerial bluetoothSerial;
#endif
ModeInterface *lastMode{};
ModeInterface *currentMode{};