diff --git a/libraries/AP_Generator/AP_Generator.cpp b/libraries/AP_Generator/AP_Generator.cpp index d612d00853..d5cfca045d 100644 --- a/libraries/AP_Generator/AP_Generator.cpp +++ b/libraries/AP_Generator/AP_Generator.cpp @@ -36,7 +36,7 @@ const AP_Param::GroupInfo AP_Generator::var_info[] = { // @Param: OPTIONS // @DisplayName: Generator Options // @Description: Bitmask of options for generators - // @Bitmask: 0:Supress Maintenance-Required Warnings + // @Bitmask: 0:Suppress Maintenance-Required Warnings // @User: Standard AP_GROUPINFO("OPTIONS", 2, AP_Generator, _options, 0), @@ -91,7 +91,7 @@ void AP_Generator::init() void AP_Generator::update() { - // Return immediatly if not enabled. Don't support run-time disabling of generator + // Return immediately if not enabled. Don't support run-time disabling of generator if (_driver_ptr == nullptr) { return; } @@ -124,7 +124,7 @@ bool AP_Generator::pre_arm_check(char* failmsg, uint8_t failmsg_len) const return true; } // Don't allow arming if we have disabled the generator since boot - strncpy(failmsg, "Generator disabled, reboot reqired", failmsg_len); + strncpy(failmsg, "Generator disabled, reboot required", failmsg_len); return false; } if (_driver_ptr == nullptr) { diff --git a/libraries/AP_Generator/AP_Generator_Backend.cpp b/libraries/AP_Generator/AP_Generator_Backend.cpp index 99de236336..6a74ee53e2 100644 --- a/libraries/AP_Generator/AP_Generator_Backend.cpp +++ b/libraries/AP_Generator/AP_Generator_Backend.cpp @@ -16,7 +16,7 @@ #if HAL_GENERATOR_ENABLED -// Base class consructor +// Base class constructor AP_Generator_Backend::AP_Generator_Backend(AP_Generator& frontend) : _frontend(frontend) { diff --git a/libraries/AP_Generator/AP_Generator_IE_650_800.h b/libraries/AP_Generator/AP_Generator_IE_650_800.h index 4107f463fd..94e4c50a25 100644 --- a/libraries/AP_Generator/AP_Generator_IE_650_800.h +++ b/libraries/AP_Generator/AP_Generator_IE_650_800.h @@ -46,7 +46,7 @@ private: static const uint32_t ERROR_START_UNDER_PRESS = (1U << 19); // (0x80000), Tank pressure < 6 barg static const uint32_t ERROR_TANK_UNDER_PRESS = (1U << 18); // (0x40000), Tank pressure < 5 barg static const uint32_t ERROR_TANK_LOW_PRESS = (1U << 17); // (0x20000), Tank pressure < 15 barg - static const uint32_t ERROR_SAFETY_FLAG = (1U << 16); // (0x10000), Fuel cell's internal saftey flags not set true + static const uint32_t ERROR_SAFETY_FLAG = (1U << 16); // (0x10000), Fuel cell's internal safety flags not set true static const uint32_t ERROR_DENY_START1 = (1U << 15); // (0x8000), Stack 1 denied start static const uint32_t ERROR_DENY_START2 = (1U << 14); // (0x4000), Stack 2 denied start static const uint32_t ERROR_STACK_UT1 = (1U << 13); // (0x2000), Stack 1 under temperature (<5 degC) @@ -74,7 +74,7 @@ private: | ERROR_START_TIMEOUT // (0x200000), Fuel cell's internal State == start for > 30 s | ERROR_START_UNDER_PRESS // (0x80000), Tank pressure < 6 barg | ERROR_TANK_UNDER_PRESS // (0x40000), Tank pressure < 5 barg - | ERROR_SAFETY_FLAG // (0x10000), Fuel cell's internal saftey flags not set true + | ERROR_SAFETY_FLAG // (0x10000), Fuel cell's internal safety flags not set true | ERROR_DENY_START1 // (0x8000), Stack 1 denied start | ERROR_DENY_START2 // (0x4000), Stack 2 denied start | ERROR_BAT_UV_DENY // (0x400), Battery under voltage (21.6 V) and master denied diff --git a/libraries/AP_Generator/AP_Generator_IE_FuelCell.h b/libraries/AP_Generator/AP_Generator_IE_FuelCell.h index 13a852d9a3..84395f1125 100644 --- a/libraries/AP_Generator/AP_Generator_IE_FuelCell.h +++ b/libraries/AP_Generator/AP_Generator_IE_FuelCell.h @@ -91,7 +91,7 @@ protected: // Returns true if a complete sentence was successfully decoded or if the buffer is full. bool decode(char c); - // Unit specific decoding to process characters recieved and build sentence + // Unit specific decoding to process characters received and build sentence virtual void decode_latest_term(void) = 0; // Check if we should notify on any change of fuel cell state diff --git a/libraries/AP_Generator/AP_Generator_RichenPower.cpp b/libraries/AP_Generator/AP_Generator_RichenPower.cpp index c021cbd43e..530f8192b3 100644 --- a/libraries/AP_Generator/AP_Generator_RichenPower.cpp +++ b/libraries/AP_Generator/AP_Generator_RichenPower.cpp @@ -190,7 +190,7 @@ bool AP_Generator_RichenPower::generator_ok_to_run() const constexpr float AP_Generator_RichenPower::heat_required_for_run() { // assume that heat is proportional to RPM. Return a number - // proportial to RPM. Reduce it to account for the cooling some%/s + // proportional to RPM. Reduce it to account for the cooling some%/s // cooling return (45 * IDLE_RPM) * heat_environment_loss_30s; }