Skip to content

Commit

Permalink
ArduCopter: correct typos and mis-spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc authored and rmackay9 committed Mar 2, 2025
1 parent 43bf730 commit d24da9e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ArduCopter/Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ AP_Vehicle::custom_mode_state* Copter::register_custom_mode(const uint8_t num, c
return nullptr;
}

// Registration sucsessful, notify the GCS that it should re-request the avalable modes
// Registration successful, notify the GCS that it should re-request the available modes
gcs().available_modes_changed();

return &mode_guided_custom[i]->state;
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/GCS_MAVLink_Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ uint8_t GCS_MAVLINK_Copter::send_available_mode(uint8_t index) const

#if MODE_AUTO_ENABLED
// Auto RTL is odd
// Have to deal with is separately becase its number and name can change depending on if were in it or not
// Have to deal with is separately because its number and name can change depending on if were in it or not
if (index_zero == 0) {
mode_number = (uint8_t)Mode::Number::AUTO_RTL;
name = "AUTO RTL";
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {

// @Param: TKOFF_SLEW_TIME
// @DisplayName: Slew time of throttle during take-off
// @Description: Time to slew the throttle from minimum to maximum while checking for a succsessful takeoff.
// @Description: Time to slew the throttle from minimum to maximum while checking for a successful takeoff.
// @Units: s
// @Range: 0.25 5.0
// @User: Standard
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ class ModeSystemId : public Mode {
float time_const_freq; // Time at constant frequency before chirp starts
int8_t log_subsample; // Subsample multiple for logging.
Vector2f target_vel; // target velocity for position controller modes
Vector2f target_pos; // target positon
Vector2f target_pos; // target position
Vector2f input_vel_last; // last cycle input velocity
// System ID states
enum class SystemIDModeState {
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/mode_poshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void ModePosHold::run()
// poshold_update_pilot_lean_angle - update the pilot's filtered lean angle with the latest raw input received
void ModePosHold::update_pilot_lean_angle(float &lean_angle_filtered, float &lean_angle_raw)
{
// if raw input is large or reversing the vehicle's lean angle immediately set the fitlered angle to the new raw angle
// if raw input is large or reversing the vehicle's lean angle immediately set the filtered angle to the new raw angle
if ((lean_angle_filtered > 0 && lean_angle_raw < 0) || (lean_angle_filtered < 0 && lean_angle_raw > 0) || (fabsf(lean_angle_raw) > POSHOLD_STICK_RELEASE_SMOOTH_ANGLE)) {
lean_angle_filtered = lean_angle_raw;
} else {
Expand Down

0 comments on commit d24da9e

Please sign in to comment.