diff --git a/AirbrakesDriver/Inc/airbrakes.hpp b/AirbrakesDriver/Inc/airbrakes.hpp index 21023d2..9ec3b31 100644 --- a/AirbrakesDriver/Inc/airbrakes.hpp +++ b/AirbrakesDriver/Inc/airbrakes.hpp @@ -18,7 +18,7 @@ class AirbrakesDriver { bool SetTargetDutyCycle(float current); uint32_t ReadRawADC(); float ReadVoltsADC(); - bool Adjust(); + bool TickControlLoop(); inline bool IsEnabled() const { return enabled; diff --git a/AirbrakesDriver/airbrakes.cpp b/AirbrakesDriver/airbrakes.cpp index fa412f4..4c51d22 100644 --- a/AirbrakesDriver/airbrakes.cpp +++ b/AirbrakesDriver/airbrakes.cpp @@ -96,7 +96,7 @@ float AirbrakesDriver::ReadVoltsADC() { /* @brief Run the active current ramping loop. Will smooth PWM changes and check latch status. * @return true if successful. false if the current exceeds limits or the driver is disabled. */ -bool AirbrakesDriver::Adjust() { +bool AirbrakesDriver::TickControlLoop() { if(!CurrentGood() || !IsEnabled()) { Disable();