paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Rotocraft: Increase in psi while switching into HO


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Rotocraft: Increase in psi while switching into HOVER_Z_HOLD mode
Date: Tue, 28 Apr 2015 21:03:05 +0200

Hi Simon,

when entering hover, the heading RC setpoint is set to current the heading in guidance_h_hover_enter:
https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/firmwares/rotorcraft/guidance/guidance_h.c#L534
As long as you don't change the heading via RC, that initial heading when entering hover is applied as cmd_heading in guidance_h_run:
https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/firmwares/rotorcraft/guidance/guidance_h.c#L363

So it would make sense to plot the estimated heading together with cmd_heading (e.g. psi from ROTORCRAFT_FP).
My guess is that your (estimated) heading drifted between switches....

What I don't understand is that guidance_h_heading_sp (sent as cmd_heading in HOVER_LOOP) changes even when you switch from KILL to HOVER.
But the only two instances where this variable is updated (apart from initialization to zero) is in guidance_h_run if you are in HOVER or NAV mode.
Did you make any changes that could impact this?

I can take a look at the logs if you upload them somewhere...

Cheers, Felix

On Tue, Apr 28, 2015 at 6:33 PM, Simon Liebold <address@hidden> wrote:

Hello all,

During last flight session I noticed the quad turning clockwise every time I switched into hover mode. The logs seem to support my observation (see screenshot).

Anyone who noticed something like this before? I was expecting HOVER_Z_HOLD to keep the heading when entering this mode.

Simon



_______________________________________________
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]