MMA8652FC Rotation, referencial change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MMA8652FC Rotation, referencial change

5,340 Views
sérgioneves
Contributor I

Hello everyone,

Don't know if this is the correct location to ask this, to debate this topic.

I have the accelerometer (MMA8652FC) inside my equipment, such that when the equipment is placed in rest in a flat surface I have the G vector forces (0, 0, 1), like I show in the image (Forças_G_EN.png).
This would be the ideal position to place it inside a car, were would we know the position of the equipment / car.
I mean, we would know that the front of the car was at -X, back was at X, left was at -Y, right was at Y, floor was at -Z and roof was at Z. Image (EquipInCar_02_EN.png)

But the equipment is placed inside the car in a frontal position to the co-driver, and it can be in a rotated position.
It doesn't have a fixed position.

I show in image (EquipInCar_01_EN.png) an example of the positioning in a car.

My question is how to convert the values given by the accelerometer from the position in the car (EquipInCar_01_EN.png) to the ideal position (EquipInCar_02_EN.png)?
Anyone can help on this?

Regards,

Sergio

Labels (1)
0 Kudos
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-813585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMMA8652FC%20Rotation%2C%20referencial%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-813585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EDon't%20know%20if%20this%20is%20the%20correct%20location%20to%20ask%20this%2C%20to%20debate%20this%20topic.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20have%20the%20accelerometer%20(MMA8652FC)%20inside%20my%20equipment%2C%20such%20that%20when%20the%20equipment%20is%20placed%20in%20rest%20in%20a%20flat%20surface%20I%20have%20the%20G%20vector%20forces%20(0%2C%200%2C%201)%2C%20like%20I%20show%20in%20the%20image%20(For%C3%A7as_G_EN.png).%3CBR%20%2F%3EThis%20would%20be%20the%20ideal%20position%20to%20place%20it%20inside%20a%20car%2C%20were%20would%20we%20know%20the%20position%20of%20the%20equipment%20%2F%20car.%3CBR%20%2F%3EI%20mean%2C%20we%20would%20know%20that%20the%20front%20of%20the%20car%20was%20at%20-X%2C%20back%20was%20at%20X%2C%20left%20was%20at%20-Y%2C%20right%20was%20at%20Y%2C%20floor%20was%20at%20-Z%20and%20roof%20was%20at%20Z.%20Image%20(EquipInCar_02_EN.png)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBut%20the%20equipment%20is%20placed%20inside%20the%20car%20in%20a%20frontal%20position%20to%20the%20co-driver%2C%20and%20it%20can%20be%20in%20a%20rotated%20position.%3CBR%20%2F%3EIt%20doesn't%20have%20a%20fixed%20position.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20show%20in%20image%20(EquipInCar_01_EN.png)%20an%20example%20of%20the%20positioning%20in%20a%20car.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EMy%20question%20is%20how%20to%20convert%20the%20values%20given%20by%20the%20accelerometer%20from%20the%20position%20in%20the%20car%20(EquipInCar_01_EN.png)%20to%20the%20ideal%20position%20(EquipInCar_02_EN.png)%3F%3CBR%20%2F%3EAnyone%20can%20help%20on%20this%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ESergio%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-813585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ESensorFusion%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E