mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 06:40:34 +08:00
Spelling errors (#19935)
This commit is contained in:
@@ -385,7 +385,7 @@ void FlightModeManager::handleCommand()
|
||||
// check what command it is
|
||||
FlightTaskIndex desired_task = switchVehicleCommand(command.command);
|
||||
|
||||
// ignore all unkown commands
|
||||
// ignore all unknown commands
|
||||
if (desired_task != FlightTaskIndex::None
|
||||
&& _vehicle_status_sub.get().vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING) {
|
||||
// switch to the commanded task
|
||||
|
||||
@@ -91,7 +91,7 @@ upperCase = lambda s: s[:].upper() if s else ''
|
||||
|
||||
@[end for]@
|
||||
@[end if]@
|
||||
// ignore all unkown commands
|
||||
// ignore all unknown commands
|
||||
default : return FlightTaskIndex::None;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ private:
|
||||
_triplet_next_wp; /**< next triplet from navigator which may differ from the intenal one (_next_wp) depending on the vehicle state.*/
|
||||
matrix::Vector3f _closest_pt; /**< closest point to the vehicle position on the line previous - target */
|
||||
|
||||
hrt_abstime _time_last_cruise_speed_override{0}; ///< timestamp the cruise speed was last time overriden using DO_CHANGE_SPEED
|
||||
hrt_abstime _time_last_cruise_speed_override{0}; ///< timestamp the cruise speed was last time overridden using DO_CHANGE_SPEED
|
||||
|
||||
MapProjection _reference_position{}; /**< Class used to project lat/lon setpoint into local frame. */
|
||||
float _reference_altitude{NAN}; /**< Altitude relative to ground. */
|
||||
|
||||
@@ -99,7 +99,7 @@ PARAM_DEFINE_FLOAT(FLW_TGT_FA, 180.0f);
|
||||
* to prevent terrain collisions due to GPS inaccuracies of the target.
|
||||
*
|
||||
* @value 0 2D Tracking: Maintain constant altitude relative to home and track XY position only
|
||||
* @value 1 2D + Terrain: Mantain constant altitude relative to terrain below and track XY position
|
||||
* @value 1 2D + Terrain: Maintain constant altitude relative to terrain below and track XY position
|
||||
* @value 2 3D Tracking: Track target's altitude (be aware that GPS altitude bias usually makes this useless)
|
||||
* @group Follow target
|
||||
*/
|
||||
|
||||
@@ -85,7 +85,7 @@ protected:
|
||||
(ParamFloat<px4::params::MPC_MAN_Y_TAU>) _param_mpc_man_y_tau,
|
||||
(ParamFloat<px4::params::MPC_MAN_TILT_MAX>) _param_mpc_man_tilt_max, /**< maximum tilt allowed for manual flight */
|
||||
(ParamFloat<px4::params::MPC_LAND_ALT1>) _param_mpc_land_alt1, /**< altitude at which to start downwards slowdown */
|
||||
(ParamFloat<px4::params::MPC_LAND_ALT2>) _param_mpc_land_alt2, /**< altitude below wich to land with land speed */
|
||||
(ParamFloat<px4::params::MPC_LAND_ALT2>) _param_mpc_land_alt2, /**< altitude below which to land with land speed */
|
||||
(ParamFloat<px4::params::MPC_LAND_SPEED>)
|
||||
_param_mpc_land_speed, /**< desired downwards speed when approaching the ground */
|
||||
(ParamFloat<px4::params::MPC_TKO_SPEED>)
|
||||
|
||||
@@ -52,7 +52,7 @@ FlightTaskOrbit::FlightTaskOrbit()
|
||||
bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command)
|
||||
{
|
||||
bool ret = true;
|
||||
// save previous velocity and roatation direction
|
||||
// save previous velocity and rotation direction
|
||||
bool new_is_clockwise = _orbit_velocity > 0;
|
||||
float new_radius = _orbit_radius;
|
||||
float new_absolute_velocity = fabsf(_orbit_velocity);
|
||||
|
||||
Reference in New Issue
Block a user