|
From: | laizzb |
Subject: | Re: [Paparazzi-devel] Apogee's attitude recovery |
Date: | Fri, 08 Nov 2013 21:28:17 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hi,
please also not that the float_dcm does NOT correctly
handle BODY_TO_IMU angles larger than a few degrees.
I hope SD card up. I modified the code <define name="BODY_TO_IMU_PSI" value="-90." unit="deg"/> @Gautier, it seems the default AHRS_PROPAGATE_FREQUENCY
and AHRS_CORRECT_FREQUENCY for the apogee imu driver is 100Hz.
Which means that the PERIODIC_FREQUENCY should probably
also be at least 100Hz:
Add to your firmware section: <configure
name="PERIODIC_FREQUENCY" value="100"/>
Depending on what kind of vehicle dynamics you expect you
might want to increase the AHRS frequency, adjust the MPU
output freq, gyro range and lowpass, etc...
Fortunately attitude changed after modifying code Seems you are on the master branch, depending on which
_exactly_ which paparazzi version you are using (http://paparazzi.enac.fr/wiki/FAQ#How_do_I_check_which_Paparazzi_Version_I.27m_using)
you might want to try ahrs type int_cmpl_quat instead which
was recently (v5.1_devel-455-gb40da0a) improved for
fixedwings.
It is v5.1_devel-569-g3fe72e2-dirty
int_cmpl_quat is based magnetoresistance. Lack now mpu9150 driver. Also on a side note: <define name="ALT_KALMAN"/> is
not needed anymore in master.
But you probably want to add <define
name="ALT_KALMAN_ENABLED" value="TRUE"/> instead (false by
default if not defined).
<firmware name="fixedwing"> <define name="USE_I2C1"/> <define name="USE_I2C2"/> <define value="TRUE" name="ALT_KALMAN_ENABLED"/> <define name="USE_GYRO_PITCH_RATE"/> <configure value="100" name="PERIODIC_FREQUENCY"/> <target name="sim" board="pc"/> <target name="ap" board="apogee_1.0"/> <subsystem type="ppm" name="radio_control"/> <subsystem type="transparent" name="telemetry"/> <subsystem type="apogee" name="imu"/> <subsystem type="float_dcm" name="ahrs"/> <subsystem type="alt_float" name="ins"/> <subsystem name="control"/> <subsystem name="navigation"/> <subsystem type="ublox" name="gps"/> <subsystem name="spi_master"/> </firmware> <section prefix="IMU_" name="IMU"> <define value="-68" name="ACCEL_X_NEUTRAL"/> <define value="-1" name="ACCEL_Y_NEUTRAL"/> <define value="-64" name="ACCEL_Z_NEUTRAL"/> <define value="2.46053275899" name="ACCEL_X_SENS" integer="16"/> <define value="2.45567151099" name="ACCEL_Y_SENS" integer="16"/> <define value="2.44223710019" name="ACCEL_Z_SENS" integer="16"/> <define value="0" name="GYRO_P_NEUTRAL"/> <define value="0" name="GYRO_Q_NEUTRAL"/> <define value="0" name="GYRO_R_NEUTRAL"/> <define value="2.17953" name="GYRO_P_SENS" integer="16"/> <define value="2.17953" name="GYRO_Q_SENS" integer="16"/> <define value="2.17953" name="GYRO_R_SENS" integer="16"/> <define value="0" name="BODY_TO_IMU_PHI"/> <define value="0" name="BODY_TO_IMU_THETA"/> <define value="-90." unit="deg" name="BODY_TO_IMU_PSI"/> </section> Cheers, Felix
On Wed, Nov 6, 2013 at 1:17 PM, Gautier
Hattenberger <[hidden
email]> wrote:
On 2013年11月06日 00:14, laizzb wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |