[Top][All Lists]

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

Re: [Paparazzi-devel] Changing the main loop frequency on the Tiny

From: Andreas Gaeb
Subject: Re: [Paparazzi-devel] Changing the main loop frequency on the Tiny
Date: Tue, 16 Aug 2011 09:31:52 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv: Gecko/20110616 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.11


Am 15.08.2011 19:46, schrieb Felix Ruess:
> Of course you can... just depending on what you use you might need to
> code a bit ;-)
I'll try and go ahead... what is the place where the frequency is set?
is it somewhere in the makefiles?

> I assume you are using an imu that you can read with a higher rate?
> Which one? As a subsystem or module?
yes, I'm using an Xsens MTi-G, with the old style module (which by the
way needs gps.hmsl copied over to gps.lla_pos.alt in ins_xsens.c:509).

I also wrote my own modules for air data sensing, coefficient and thrust
calculation, and the PID algorithm. Basically, I need to run all of them
at the highest possible rate.

> For fixedwings you can set the rates of reading imu, propagation and updates:
>    <configure name="PERIODIC_FREQUENCY" value="120"/> <!-- IMU FREQ -->
>    <configure name="AHRS_PROPAGATE_FREQUENCY" value="120"/>
>    <configure name="AHRS_CORRECT_FREQUENCY" value="60"/>
> Then you can <define name="AHRS_TRIGGERED_ATTITUDE_LOOP"/> to trigger
> the control loops when a new attitude was computed.
this looks interesting, I wasn't aware of these parts of the code
before. Will have to dig into this, maybe its possible to realize
modules with higher periodic frequencies that way. However, as the Xsens
does its own AHRS computations, I don't need to run the estimator on the
Tiny and can save the processor power for other things.

> On Mon, Aug 15, 2011 at 1:49 PM, Prof. Dr.-Ing. Heinrich Warmers wrote:
>> [...]
>> But look to the main time constants.
>> It is only necessary  to be  about 8 times  faster then the lowest time
>> constant in your feedback control system.
the control loop is of minor importance for me. Firstly, I need to get
the real-time PID to run, even if it is only in manual mode.
My problem is that the aircraft's rolling time constant is very small,
so I need to sample (and differentiate) roll rate with high frequency to
separate roll damping from aileron efficiency.

Best regards,

reply via email to

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