1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00
Commit graph

186 commits

Author SHA1 Message Date
Dominic Clifton
783a4c4bfa Merge pull request #1066 from cleanflight/custom-servo-mixers
Custom servo mixers
2015-07-09 23:48:53 +01:00
Dominic Clifton
57eb44928e Update mixer unit test for 7b91524ba2 2015-07-09 21:11:46 +01:00
digitalentity
a3b57386c2 Ported fast trigonometry functions over from @Crashpilot1000 Harakiri code
Fixed maths_unittest.cc to correctly handle float-point numbers
2015-07-09 22:38:17 +10:00
Steveis
f0aec2e31d Unit tests for BMP085 2015-06-30 17:33:44 +01:00
Dominic Clifton
ea6a6ccb3d First cut of custom servo mixers.
Main rule logic and MSP commands ported from baseflight.

Gimbal mixer updated to use rules.  This allows us to remove more
conditional logic.  Operation of gimbal servos is now different.
2015-06-28 23:06:56 +01:00
Michael Hope
6b35964c34 tests: automatically collect the list of tests.
Use a wildcard instead of an explicit list.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-28 17:17:33 +02:00
Michael Hope
cf8d0cf572 tests: change the explicit rules for implicit.
Now that the other rules are refactored, use a generic rule for all
tests instead of having a copy-and-paste section for each.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-28 17:14:09 +02:00
Michael Hope
b8a9df2aa4 tests: automatically build dependencies.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-28 17:00:32 +02:00
Michael Hope
31f13e3d9c tests: simplify the build config by building as a library.
Build Cleanflight into a library instead of explicitly calling out the
object file and any dependencies.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-28 16:53:41 +02:00
Michael Hope
266d0d6726 tests: make the tests build incrementally.
Re-work the Makefile rules so the binary targets include $OBJECT_DIR.
This lets the tests build incrementally, which makes the iterating
when building new tests much faster.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-28 16:27:46 +02:00
Steveis
f2833f9dac MS5611 unit test for pressure calculations 2015-06-26 22:19:31 +01:00
Dominic Clifton
e5a50654e3 Improve code consistency by using function prefixes for telemetry
functions.

PR's to make similar changes to other non-static functions are welcomed.
2015-06-24 20:26:41 +01:00
Steveis
51ec2d6773 MS5611 CRC Unit test 2015-06-23 17:56:26 +01:00
Dominic Clifton
889b14df5f Support pan and tilt on fixed wing. Fixes #1006
The general idea is that nothing calls pwmWriteServo except for
writeServos() and that writeServos() knows which servos it has used.
2015-06-10 14:30:45 +01:00
Dominic Clifton
27db9ad0fe Merge pull request #945 from inkonova/v1.8.1-mixerFix
removed multiple declaration of function mixerUseConfigs
2015-05-30 07:27:33 +01:00
Dominic Clifton
0c1a6c5c2f Merge branch 'lock_active_features' of https://github.com/ProDrone/cleanflight into ProDrone-lock_active_features
Conflicts:
	src/test/unit/rc_controls_unittest.cc
2015-05-29 20:05:25 +01:00
Dominic Clifton
c29900f012 Fix compilation of tests on Cygwin. Tested with GCC 4.9.2. 2015-05-29 19:51:01 +01:00
Dominic Clifton
36c8b482d1 Re-order initialisers to be the same as the structure declation to avoid
GCC compilation error.

Error message is: "sorry, unimplemented: non-trivial designated
initializers not supported"
2015-05-29 19:49:01 +01:00
Dominic Clifton
a54b073419 Re-enabling pthread for travis builds. 2015-05-29 19:16:22 +01:00
Dominic Clifton
704dcf46ba Fix all warnings when compiling unit tests.
Use C++11 for the C++ unit test code to make the tests easier to read.
Previously we were using a 17 year old standard (!) (g++98)

GoogleTest is compiled with some additional flags to avoid some specific
warnings.  Consider enabling the warnings when upgrading GoogleTest.

See https://code.google.com/p/googletest/issues/detail?id=433

Closes #941
2015-05-29 15:26:10 +01:00
Dominic Clifton
0df22f8049 Remove some test duplication in RcControls unit rest by using test
fixture classes.
2015-05-29 14:41:27 +01:00
Mauro Mombelli
51a067db6d removed mixerUseConfigs multile declaration 2015-05-23 20:24:07 +02:00
ProDrone
655bd574c2 Added missing stuff to unittests 2015-05-21 14:16:22 +02:00
Dominic Clifton
23303198bb Update unit test for mixer behavior changed in
cc5c736362
2015-05-19 21:42:48 +01:00
Dominic Clifton
b63e074d0c Fix unit test compilation failure. 2015-04-25 11:00:32 +02:00
Dominic Clifton
bad0b1b04d Fix random RX loss beep when using Serial RX receivers. 2015-04-23 16:36:56 +02:00
Dominic Clifton
7266d42466 Cleanup failsafe beeper code and update failsafe unit tests. 2015-04-23 15:55:04 +02:00
Dominic Clifton
519586a5ce Merge branch 'refactoredBeeperCode_181_1' of
git://github.com/ethomas997/cleanflight into
ethomas997-refactoredBeeperCode_181_1

Conflicts:
	src/main/flight/failsafe.c
	src/main/io/beeper.c
	src/main/mw.c
2015-04-23 01:21:27 +02:00
Dominic Clifton
fbc3a8e1eb Correct rx channel min/max pulse checking so that it is inclusive to
match the documentation.  Add first unit tests for code in rx.c.
2015-04-19 13:22:32 +01:00
Dominic Clifton
20a421c4be Add test to ensure that failsafe is not activated when disarmed and RX
signal loss is occurs.
2015-04-19 06:29:54 +01:00
Dominic Clifton
d4eb558254 Ensure failsafe does not repeatedly call disarm when landed. 2015-04-18 19:00:20 +01:00
Dominic Clifton
a34e8f0bdb Update the failsafe so that an extra cycle is not required between some
phase changes.
2015-04-17 00:10:35 +01:00
Dominic Clifton
eb74735ee8 First cut of unit tests for reworked failsafe.
In writing these tests a bug was discovered with RX_SERIAL and RX_MSP
failsafe delay timing - the configured delays are not honoured.
2015-04-16 23:35:56 +01:00
Dominic Clifton
4b4e64e204 Fix unresolved references in unit tests for new failsafe code. 2015-04-16 10:57:27 +01:00
Dominic Clifton
6eaca17cbd fix unit test compilation errors caused by 0359a32 2015-04-14 19:54:48 +01:00
Dominic Clifton
f28158a5a7 Cleanup debug code. 2015-04-14 13:59:11 +01:00
Dominic Clifton
0456444cfb Fix compilation of HoTT telemetry unit test. 2015-04-07 20:33:34 +01:00
Dominic Clifton
7d9fc2699a Merge branch 'PA_update1' of git://github.com/Pierre-A/cleanflight into Pierre-A-PA_update1
Conflicts:
	src/main/config/config.c
	src/main/io/serial_cli.c
	src/main/telemetry/hott.c
	src/main/telemetry/telemetry.h
2015-04-07 20:33:03 +01:00
E Thomas
f02d7403af Port of refactored beeper code 181_1
This the "Port of refactored beeper code #669" modification applied to
version 1.8.1 (4/4/2015) of the code.
2015-04-04 17:54:44 -04:00
Dominic Clifton
b0b1eaf9c7 Add first unit test for some code in serial.c. Fix compiler warnings in
other tests.
2015-04-01 14:12:24 +01:00
Dominic Clifton
80a6507649 Merge branch 'VCM_motor_stop_fix' of git://github.com/pinkywafer/cleanflight into pinkywafer-VCM_motor_stop_fix 2015-03-30 19:29:40 +01:00
Dominic Clifton
507a022e90 Merge branch 'master' into serial-port-options 2015-03-26 01:32:06 +00:00
Dominic Clifton
4154afcb63 Adding a unit test for quad X motor mixers. 2015-03-21 11:30:03 +01:00
Nicholas Sherlock
159f57f583 Add new serial port options field (inversion, stop bits, etc) 2015-03-19 12:56:11 +13:00
Dominic Clifton
84c7c985ab First unit test for tricoper servo mixer. 2015-03-19 00:23:57 +01:00
Dominic Clifton
03b1adb042 Add the more unit tests for the mixer.
Closes #16
2015-03-17 23:56:59 +01:00
Dominic Clifton
8e6570754c Add the first unit test for the mixer.
See #16
2015-03-16 22:56:14 +01:00
Jenny
1ff8c177ce Update battery_unittest.cc
additions for feature and calculateThrottleStatus
2015-03-16 15:03:46 +00:00
Dominic Clifton
d82fc6b9be Merge pull request #477 from projectkk2glider/projectkk2glider/issue_316_frsky_voltages
Fixes #316: better arithmetics for FrSky CELL voltages, VFAS battery vol...
2015-03-13 23:40:24 +01:00
Petr Ledvina
f1a0972002 Fix incorrect merge in battery_unittest
batteryConfig initialization was merged twice, removing one version
2015-03-10 08:32:36 +01:00