Update calculate heading comment (ledvinap).

This commit is contained in:
Dominic Clifton 2015-01-25 01:07:14 +01:00
parent 3fc7f32324
commit 22f80129f2
1 changed files with 7 additions and 6 deletions

View File

@ -188,12 +188,13 @@ void acc_calc(uint32_t deltaT)
/* /*
* Baseflight calculation by Luggi09 originates from arducopter * Baseflight calculation by Luggi09 originates from arducopter
* ============================================================ * ============================================================
* This function turns a vector which is (usually) the direction * This function rotates magnetic vector to cancel actual yaw and
* of magnetic flux in the coordinate system of the craft into * pitch of craft. Then it computes it's direction in X/Y plane.
* a compass heading in degrees, clockwise away from north. Note * This value is returned as compass heading, value is 0-360 degrees.
* that the magnetic flux is not parrelell with the vector towards *
* magnetic north it's self but rather is parrelell with the ground * Note that Earth's magnetic field is not parallel with ground unless
* when near the equator. * you are near equator. Its inclination is considerable, >60 degrees
* towards ground in most of Europe.
* *
* First we consider it in 2D: * First we consider it in 2D:
* *