From 657fcb7f5988e18fccb68c76f6395ea470cdd373 Mon Sep 17 00:00:00 2001 From: Peter Hall Date: Sat, 28 Aug 2021 14:50:19 +0100 Subject: [PATCH] Plane: quadplane: set `last_pidz_init_ms` --- ArduPlane/quadplane.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 2464dbc81d..74b6553082 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -1002,6 +1002,7 @@ void QuadPlane::run_z_controller(void) // initialise the vertical position controller with no descent pos_control->init_z_controller_no_descent(); } + last_pidz_init_ms = now; } last_pidz_active_ms = now; pos_control->update_z_controller();