This commit is contained in:
2025-02-13 00:54:03 +01:00
parent c130026f00
commit b0068333c8
6 changed files with 78 additions and 36 deletions

View File

@@ -88,12 +88,14 @@ public:
/// @return available current in milliamps
static float getMax3V3Current();
/// @brief update Power State
/// @note needs to be public for task creation
static void updatePowerStateHandler();
protected:
/// @brief PowerScheduler instance to manage power consumption
static PowerScheduler *powerScheduler;
/// @brief update Power State
static void updatePowerStateHandler();
/*
* Power State
@@ -115,6 +117,9 @@ protected:
/// @brief Add calculated value to circular array, pushing out oldest value
static void addSoCSample(float soc);
/// @brief initialize the power state
static void initPowerState(void);
};
extern Power power;