Closed adam-at-epsilon closed 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
Gyro & accelerometer analysed (they have their axes according to their respective datasheets, but not aligned)
In progress.
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
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?)
done with commit referenced just above. Diagram of coordinate frames added to wiki page "Sensors"
Looks right!
Maybe we could make an enum struct that makes it possible for us to redefine the coordinate system relative to the board?
Determine how x, y and z axes are oriented for gyroscope, magnetometer and accelerometer, whether they are in agreement or need rotation before use.