Improve power denial handling

This commit is contained in:
2025-02-13 22:57:55 +01:00
parent 35c11f42e2
commit 0d6977e148
3 changed files with 81 additions and 66 deletions

View File

@@ -45,8 +45,10 @@ class Motor{
* @attention it is requried at any time to use that method to access the motors or methods of the motionclass to avoid such peaks.
*
* @param duty the duty cyle that should be set, can be between 0-8192
*
* @return true if the speed was set, false if the power was not granted in time
*/
void setSpeed(uint16_t duty);
bool setSpeed(uint16_t duty);
/**
* @brief returns the currently activ speed