paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Yaw from AHRS - aspirin v1.5


From: Eduardo lavratti
Subject: Re: [Paparazzi-devel] Yaw from AHRS - aspirin v1.5
Date: Sat, 26 Nov 2011 14:24:54 +0000

My lisa/m come with aspirinv1.5

I have the same issue with yaw and a critical problem.

After i atualize the code the values for MAG_RAW change every time.
After board reset the values not actualize anymore.

I think it`s init problem so v1.5 use hmc5883 and old versions use hmc5843.

By now i am analyzing the code.

Does anyone have this problem?
Have some code specific to aspirin1.5 ?

regards and sorry for my poor English.





Date: Tue, 1 Nov 2011 10:40:41 +0100
From: address@hidden
To: address@hidden
Subject: Re: [Paparazzi-devel] Yaw from AHRS

I have seen PCB of at least 6 versions of aspirin now... so I lost track but I suppose there might be differences. 

Can anyone give us an overview, then I am willing to adapt the code.

@Loic: do not forget to define AHRS_H_X H_Y and H_Z to define your local magnetic field as long as we do not have this automated using GPS.

-Christophe 



On Tue, Nov 1, 2011 at 9:55 AM, Loic Drumettaz <address@hidden> wrote:
Hi Christophe,

I finally solved the problem. When I was pointing X to the north and 60° down, i had something like [0 0 150]. Y to the same direction: [-150 0 0] and Z, [0 150 0].
So I modified the channels in aspirin.h:

#define IMU_MAG_X_CHAN 2    /* X  in Z */
#define IMU_MAG_Y_CHAN 0    /* Y in X */   
#define IMU_MAG_Z_CHAN 1    /* Z in Y */

And I also modified the sign of Y:

#define IMU_MAG_Y_SIGN    -1

After these modifications the AHRS filter measures correctly the yaw: I don't have any more weird transients. Thank you for your help.
I think I have an aspirin V2.0. I'm surprised that I had to change the code in aspirin.h, there is no other way to do that?


Regards
Loïc





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



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