From d1a1cc3f1305f1602ca7571855d8866a66a59a5b Mon Sep 17 00:00:00 2001 From: Pierre Hugo Date: Wed, 21 Jan 2015 19:27:46 -0800 Subject: [PATCH] Added clarifying comment to calculateHeading method. --- src/main/flight/imu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/flight/imu.c b/src/main/flight/imu.c index ea8ac8700..d3f7a1866 100644 --- a/src/main/flight/imu.c +++ b/src/main/flight/imu.c @@ -247,7 +247,13 @@ void acc_calc(uint32_t deltaT) 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) { int16_t head;