try to use more locks with timeouts
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2023-03-02 15:21:45 +01:00
parent b5049fa8d0
commit 4b37a19644
8 changed files with 33 additions and 24 deletions

View File

@ -9,6 +9,8 @@ namespace torquer {
// Additional buffer time to accont for time until I2C command arrives and ramp up / ramp down
// time of the MGT
static constexpr dur_millis_t TORQUE_BUFFER_TIME_MS = 20;
static constexpr MutexIF::TimeoutType LOCK_TYPE = MutexIF::TimeoutType::WAITING;
static constexpr uint32_t LOCK_TIMEOUT = 20;
MutexIF* lazyLock();
extern bool TORQUEING;