Skip to content

Commit

Permalink
AC_AttitudeControl: update comment to reflect the current logic in is…
Browse files Browse the repository at this point in the history
…_active_xy()
  • Loading branch information
tatsuy authored and peterbarker committed Aug 22, 2024
1 parent ecd9694 commit 62e3c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AC_AttitudeControl/AC_PosControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void AC_PosControl::stop_vel_xy_stabilisation()
_pid_vel_xy.reset_I();
}

// is_active_xy - returns true if the xy position controller has bee n run in the previous 5 loop times
// is_active_xy - returns true if the xy position controller has been run in the previous loop
bool AC_PosControl::is_active_xy() const
{
const uint32_t dt_ticks = AP::scheduler().ticks32() - _last_update_xy_ticks;
Expand Down Expand Up @@ -942,7 +942,7 @@ void AC_PosControl::update_pos_offset_z(float pos_offset_z)
_jerk_max_z_cmsss, _dt, false);
}

// is_active_z - returns true if the z position controller has been run in the previous 5 loop times
// is_active_z - returns true if the z position controller has been run in the previous loop
bool AC_PosControl::is_active_z() const
{
const uint32_t dt_ticks = AP::scheduler().ticks32() - _last_update_z_ticks;
Expand Down

0 comments on commit 62e3c6a

Please sign in to comment.