AP_Generator: Fix some typos

Fixed some typos found in the code.
This commit is contained in:
Mykhailo Kuznietsov 2023-10-11 18:41:53 +11:00 committed by Peter Barker
parent 590db701d0
commit 3acd0b3817
5 changed files with 8 additions and 8 deletions

View File

@ -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) {

View File

@ -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)
{

View File

@ -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

View File

@ -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

View File

@ -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;
}