From 81e1c3c0b0c7409bf5e57eaaedd5d573746f12ef Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:51 +1100 Subject: [PATCH] AP_BLHeli: Fix some typos Fixed some typos found in the code. --- libraries/AP_BLHeli/AP_BLHeli.cpp | 6 +++--- libraries/AP_BLHeli/AP_BLHeli.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_BLHeli/AP_BLHeli.cpp b/libraries/AP_BLHeli/AP_BLHeli.cpp index 918bd8256a..66577622a7 100644 --- a/libraries/AP_BLHeli/AP_BLHeli.cpp +++ b/libraries/AP_BLHeli/AP_BLHeli.cpp @@ -51,7 +51,7 @@ extern const AP_HAL::HAL& hal; // the MSP protocol on hal.console #define BLHELI_UART_LOCK_KEY 0x20180402 -// if no packets are received for this time and motor control is active BLH will disconect (stoping motors) +// if no packets are received for this time and motor control is active BLH will disconnect (stoping motors) #define MOTOR_ACTIVE_TIMEOUT 1000 const AP_Param::GroupInfo AP_BLHeli::var_info[] = { @@ -395,7 +395,7 @@ void AP_BLHeli::msp_process_command(void) break; case MSP_UID: - // MCU identifer + // MCU identifier debug("MSP_UID"); msp_send_reply(msp.cmdMSP, (const uint8_t *)UDID_START, 12); break; @@ -1421,7 +1421,7 @@ void AP_BLHeli::init(uint32_t mask, AP_HAL::RCOutput::output_mode otype) motor_mask = mask; debug("ESC: %u motors mask=0x%08lx", num_motors, mask); - // check if we have a combination of reversable and normal + // check if we have a combination of reversible and normal mixed_type = (mask != (mask & channel_reversible_mask.get())) && (channel_reversible_mask.get() != 0); if (num_motors != 0 && telem_rate > 0) { diff --git a/libraries/AP_BLHeli/AP_BLHeli.h b/libraries/AP_BLHeli/AP_BLHeli.h index 6c00b537bd..ae583262fd 100644 --- a/libraries/AP_BLHeli/AP_BLHeli.h +++ b/libraries/AP_BLHeli/AP_BLHeli.h @@ -237,7 +237,7 @@ private: // have we locked the UART? bool uart_locked; - // true if we have a mix of reversable and normal ESC + // true if we have a mix of reversible and normal ESC bool mixed_type; // mapping from BLHeli motor numbers to RC output channels