paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] problem with rotorcraft vertical guidance


From: Felix Ruess
Subject: Re: [Paparazzi-devel] problem with rotorcraft vertical guidance
Date: Thu, 19 Jun 2014 00:12:39 +0200

Hi Alonso,

as already noted in the previous mail, limiting the throttle via RC was actually only meant for emergencies and in normal operation you should give max throttle before takeoff.

You have to keep in mind that we currently don't have a "real" velocity control mode (that would also mean more tuning parameters) but also use the position/altitude control mode for this and "simply" advance the reference and setpoint with a desired speed.
However you are of course right that the "climb" mode does not handle this situation well. Please see https://github.com/paparazzi/paparazzi/pull/754 which proposes a limit (GUIDANCE_V_REF_MAX_Z_DIFF with default of 2m) to how far the z_ref can advance from current altitude in climb mode. This is probably not an ideal solution, but should at least help a lot.

Cheers, Felix


On Wed, Jun 18, 2014 at 7:46 AM, alonso acuña <address@hidden> wrote:
Hello. There is a problem in the way the altitude reference (desired altitude) is set when vmode is climb. This causes a situation where the aircraft takes off but then comes down when going to the STDBY point.

In the takeoff block we have <stay climb="0.5" vmode="climb" wp="CLIMB"/>
The problem is that the gv_z_ref variable is allowed to drift arbitrarily from the current altitude. So for example if the throttle is set to 0 in the RC the aircraft will not move but the desired altitude increases continuously. Once the throttle is increased and it goes to sufficient altitude to move into the Standby block the speed is set using the difference from the gv_z_ref to the new target altitude. The actual altitude is not taken into account. So this means that for example if the throttle was at 0 for enough time to allow the gv_z_ref to go to 30m and the STBDY is at 5m and the aircraft is at 2m, the speed is set for descent from 30 to 5m, which quickly makes the aircraft come back to the ground.

I am not sure if this is a general error and the entire reference calculation needs to be fixed or just a special case needs to be made for the takeoff.  There could be other situations, for example if the aircraft is in the air and the motors are not giving enough thrust to achieve the desired climb speed the gv_z_ref could go very high and then make the aircraft come down when it should be going up to a higher target altitude.



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]