Browse Source

FlightTaskAuto: fix typo pos(i)tion

master
Matthias Grob 3 years ago
parent
commit
8525a8e520
  1. 2
      src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp

2
src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp

@ -66,7 +66,7 @@ bool FlightTaskAuto::activate(const vehicle_local_position_setpoint_s &last_setp @@ -66,7 +66,7 @@ bool FlightTaskAuto::activate(const vehicle_local_position_setpoint_s &last_setp
Vector3f accel_prev{last_setpoint.acceleration};
for (int i = 0; i < 3; i++) {
// If the position setpoint is unknown, set to the current postion
// If the position setpoint is unknown, set to the current position
if (!PX4_ISFINITE(pos_prev(i))) { pos_prev(i) = _position(i); }
// If the velocity setpoint is unknown, set to the current velocity

Loading…
Cancel
Save