1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00
Commit graph

13 commits

Author SHA1 Message Date
Martin Budden
dc56f143f3 Changed alignSensors to have common src/dest 2016-11-20 07:46:58 +00:00
Martin Budden
2498c66cb2 Changed alignSensors to use temporary variables 2016-11-16 17:15:48 +00:00
Martin Budden
8480570510 Improved efficiency of gyro update 2016-11-16 07:31:18 +00:00
Martin Budden
147a16a66d Whitespace and const correctness tidy 2016-08-11 17:44:54 +01:00
borisbstyle
881a448255 Convert gyroADC and accADC to int32_t 2016-02-14 22:03:19 +01:00
Petr Ledvina
7a1342bce5 Make CW0_DEG default in alignSensors 2015-10-16 10:40:58 +02:00
Phillip Jones
f239eb3f35 This addresses issue #8 by adding unit tests for sensorsAlign().
The test file includes a simple independent implementation of
vector rotation. Each of the following sensor_align_e types are
tested:
 * CW0_DEG
 * CW90_DEG
 * CW180_DEG
 * CW270_DEG
 * CW0_DEG_FLIP
 * CW90_DEG_FLIP
 * CW180_DEG_FLIP
 * CW270_DEG_FLIP

For each test, three unit vectors and a random vector are tested.
 * {1, 0, 0}
 * {0, 1, 0}
 * {0, 0, 1}
 * {R, R, R} (where R is a random number)

The vector under test is rotated using the functions defined in the
test file. The output of the test function is compared to the
output of the sensorsAlign() function. The outputs match for all
test conditions.
2015-08-18 14:00:37 -06:00
Dominic Clifton
4fcecbd667 De-duplicate vector matrix calculation code.
Saves 248 bytes of flash space when using -O0.
2015-06-24 22:33:36 +01:00
Dominic Clifton
893023d21b Delete some baseflight test code. 2014-11-10 00:40:22 +00:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton
0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton
d19a5e7046 Cleanup project structure. Update unit test Makefile to place object
files in obj/test
2014-05-31 22:43:06 +01:00
Renamed from src/boardalignment.c (Browse further)