Added clarifying comment to calculateHeading method.

This commit is contained in:
Pierre Hugo 2015-01-21 19:27:46 -08:00
parent fcdc0af218
commit d1a1cc3f13
1 changed files with 7 additions and 1 deletions

View File

@ -247,7 +247,13 @@ void acc_calc(uint32_t deltaT)
accSumCount++; accSumCount++;
} }
// baseflight calculation by Luggi09 originates from arducopter /*
* Baseflight calculation by Luggi09 originates from arducopter
* ============================================================
*
* Calculate the heading of the craft (in degrees clockwise from North)
* when given a 3-vector representing the direction of North.
*/
static int16_t calculateHeading(t_fp_vector *vec) static int16_t calculateHeading(t_fp_vector *vec)
{ {
int16_t head; int16_t head;