mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[rotorcraft] v_adapt: reset while not in_flight
This commit is contained in:
@@ -166,6 +166,10 @@ void guidance_v_run(bool_t in_flight) {
|
|||||||
if (in_flight) {
|
if (in_flight) {
|
||||||
gv_adapt_run(stateGetAccelNed_i()->z, stabilization_cmd[COMMAND_THRUST], guidance_v_zd_ref);
|
gv_adapt_run(stateGetAccelNed_i()->z, stabilization_cmd[COMMAND_THRUST], guidance_v_zd_ref);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
/* reset estimate while not in_flight */
|
||||||
|
gv_adapt_init();
|
||||||
|
}
|
||||||
|
|
||||||
switch (guidance_v_mode) {
|
switch (guidance_v_mode) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user