|
|
static const char * | fileName = "./simulator/resources/simulation_parameters.txt" |
| |
|
static const char * | batteryVoltageKey = "batt_V" |
| |
|
static const char * | vbusVoltageKey = "vbus_V" |
| |
|
static const char * | cpuTemperatureKey = "cpu_temp" |
| |
|
static const char * | addedAlgoDelayKey = "algo_del" |
| |
|
constexpr int | ledW = _LampTy::maxWidth |
| |
|
constexpr int | ledH = _LampTy::maxOverflowHeight |
| |
|
constexpr int | ledCount = _LampTy::ledCount |
| |
|
constexpr float | fLedW = _LampTy::maxWidthFloat |
| |
|
constexpr float | fResidueW = 1 / (2 * fLedW - 2 * floor(fLedW) - 1) |
| |
|
float | targetOTGVoltage = 0.0 |
| |
|
std::atomic< bool > | canRunElectricalSimuThread = false |
| |
|
std::thread | electricalSimuThread |
| |
|
std::array< uint8_t, 255 > | pinOutputValue |
| |
|
static constexpr size_t | numberOfMocks = 1 |
| |
| const std::array< std::unique_ptr< IntegratedCircuitMock_I >, numberOfMocks > | icMocks |
| |
|
bool | isI2cAvailable = false |
| |
|
std::atomic< bool > | canRunComponentUpdateThread = false |
| |
|
std::thread | componentUpdateThread |
| |
|
std::unique_ptr< LevelRecorder > | recorder |
| |
|
std::vector< std::string > | inputCommands |
| |
|
std::atomic< bool > | canRunInputThread = false |
| |
|
std::thread | inputThread |
| |
|
std::vector< std::thread > | threadPool |
| |
|
bool | isSuspended = false |
| |
|
static sf::Clock | s_clock |
| |
|
static bool | isClockReset = false |
| |
Simulator dedicated namespace.
if defined, will display colors with the same brigthness to debug the color bending
This file defines the common interface for all IC mock. They should have access to the electrical simulator, and an I2C interface