Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AirbrakesDriver/Inc/airbrakes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion AirbrakesDriver/airbrakes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down