From 8e5ebf57e6721d0513bd710eb6258964b9d9ed6c Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Thu, 4 Jan 2024 16:26:01 +0000 Subject: [PATCH] Copter: Update average z accel function name in autorotation --- ArduCopter/mode_autorotate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/mode_autorotate.cpp b/ArduCopter/mode_autorotate.cpp index 5482413cbf8b1..3c84a792e431e 100644 --- a/ArduCopter/mode_autorotate.cpp +++ b/ArduCopter/mode_autorotate.cpp @@ -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; } @@ -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; }