[Top][All Lists]

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

Re: [Paparazzi-devel] guidance horizontal reference in Hover mode

From: Felix Ruess
Subject: Re: [Paparazzi-devel] guidance horizontal reference in Hover mode
Date: Sat, 8 Jun 2013 15:31:47 +0200

Hi Loic,

You are right about resetting the reference in hover.
I started to clean this up a month ago, but didn't really have time to test it.
Pushed to master now...

It makes sense to use the horizontal guidance reference in hover as well, as it will take the speed and acceleration into account as well when you get pushed of the current position by wind. Also this will make it behave the same way in the separate HOVER mode as in hover in NAV.

Cheers, Felix

On Thu, Jun 6, 2013 at 12:27 PM, Loic Drumettaz <address@hidden> wrote:

Sorry for late feedback about that, but I don't quite understand the purpose of this commit:

Yesterday I tested to switch from attittude to hover mode. Since the horizontal reference generator is now activated by default in hover mode, the quad goes to the previous setpoint instead of holding position. (Then it comes back to the setpoint)

I have seen that it's possible to disactivate reference generator via GCS settings, but why do we want it to be activated by default in hover mode?

If that's because it is then easier to keep the reference generator activated in all modes, then the hover mode should be initialized the same way as nav mode:

in guidance_h.c,

static void guidance_h_hover_enter(void) {
  VECT2_COPY(guidance_h_pos_sp, *stateGetPositionNed_i());
  guidance_h_rc_sp.psi = stateGetNedToBodyEulers_i()->psi;

should be:

static void guidance_h_hover_enter(void) {
  VECT2_COPY(guidance_h_pos_sp, *stateGetPositionNed_i());
  struct Int32Vect2 pos,speed,zero;
  VECT2_COPY(pos, *stateGetPositionNed_i());
  VECT2_COPY(speed, *stateGetSpeedNed_i());
  GuidanceHSetRef(pos, speed, zero);
  guidance_h_rc_sp.psi = stateGetNedToBodyEulers_i()->psi;



Paparazzi-devel mailing list

reply via email to

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