Skip to content

Commit

Permalink
Copter: Update average z accel function name in autorotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKear committed Jan 4, 2024
1 parent 5a24f04 commit 8e5ebf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduCopter/mode_autorotate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void ModeAutorotate::run()
// Update head speed/ collective controller
_flags.bad_rpm = g2.arot.update_hs_glide_controller();
// Attitude controller is updated in navigation switch-case statements
g2.arot.calc_avg_acc_z();
g2.arot.update_avg_acc_z();

break;
}
Expand Down Expand Up @@ -269,7 +269,7 @@ void ModeAutorotate::run()
_pitch_target = g2.arot.get_pitch();

//calc average acceleration on z axis for estimating flare effectiveness
g2.arot.calc_avg_acc_z();
g2.arot.update_avg_acc_z();

break;
}
Expand Down

0 comments on commit 8e5ebf5

Please sign in to comment.