afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Sensor x y z coordinate frames #107

Closed adam-at-epsilon closed 8 years ago

adam-at-epsilon commented 8 years ago

Determine how x, y and z axes are oriented for gyroscope, magnetometer and accelerometer, whether they are in agreement or need rotation before use.

adam-at-epsilon commented 8 years ago

The coordinate frame of our quadcopter fuselage is:

Positive x points forward between M1 and M2 arms. Positive y becomes starboard. Positive z is down.

See Flight Dynamics

adam-at-epsilon commented 8 years ago

Gyro & accelerometer analysed (they have their axes according to their respective datasheets, but not aligned)

In progress.

adam-at-epsilon commented 8 years ago

coordinateframes

adam-at-epsilon commented 8 years ago

The inclination of earth's magnetic field in Malmo is high, about 70 degrees. The declination (horizontal offset) seems to be near zero (see isoclinic map links in link below).

The magnetometer shows positive values for magnetic north (cross-checked with actual compass).

This link has further links to maps showing inclination and declination of earth's magnetic field. http://gravmag.ou.edu/mag_earth/mag_earth.html

adam-at-epsilon commented 8 years ago

This is hopefully clear how the sensors are orientated with respect to the quadcopter body frame.

@DanielStenis Is the STM32F3 orientation correctly depicted (i.e. the "diode circle" points ahead?)

coordinateframes

adam-at-epsilon commented 8 years ago

done with commit referenced just above. Diagram of coordinate frames added to wiki page "Sensors"

stenbergd commented 8 years ago

Looks right!

Maybe we could make an enum struct that makes it possible for us to redefine the coordinate system relative to the board?