1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00
Commit graph

736 commits

Author SHA1 Message Date
DarkVegetableMatter
942c89237e Battery auto-detect and LPF for battery monitoring 2015-08-04 03:04:12 +01:00
Dominic Clifton
9d3276b222 Code and documentation cleanup of rc calibration.
Note: since it didn't actually calibrate anything it has been renamed to
rxrange.

Added ability to reset rxranges using `rxrange reset` - this follows the
same pattern as other cli commands.
2015-08-04 01:13:28 +01:00
Dominic Clifton
27f8223de7 Merge branch 'rc-calibration' of
https://github.com/digitalentity/cleanflight into
digitalentity-rc-calibration

Conflicts:
	docs/Rx.md
	src/main/io/serial_cli.c
	src/main/rx/rx.c
	src/main/rx/rx.h
2015-08-04 00:06:12 +01:00
Dominic Clifton
1ef2d8ea4d Cleanup PWM rx loss detection. 2015-08-03 20:17:47 +01:00
Dominic Clifton
c5dbf16060 De-duplicate mixer integration test code. 2015-07-17 01:05:14 -07:00
Dominic Clifton
cfe0d770ac De-duplicate mixer tri and quad integration test setup code. 2015-07-17 01:05:14 -07:00
Dominic Clifton
9f62349191 De-duplicte some Channel forwarding test-setup code 2015-07-17 01:05:14 -07:00
Dominic Clifton
5be2276b6b First cut of custom motor and servo mixer test.
Note: The test is rather heavyweight, more like an integration test than
a unit test, but will allow for the underlying code to be refactored.
2015-07-17 01:05:14 -07:00
digitalentity
2614111c39 Implemented RC calibration and unit-tests
Added rc calibration docs to Rx.md
2015-07-16 08:49:18 +10:00
Dominic Clifton
4c8f7db2c9 Updating the test suite names for some new MS5611 barometer tests. 2015-07-10 01:35:11 +01:00
Dominic Clifton
18699a1ba2 Merge branch 'baro_pressure_unit_test' of https://github.com/SteveAmor/cleanflight into SteveAmor-baro_pressure_unit_test 2015-07-10 01:32:40 +01:00
Dominic Clifton
d3e359b9e0 Merge branch 'bmp085_unit_test' of
https://github.com/SteveAmor/cleanflight into SteveAmor-bmp085_unit_test

Conflicts:
	src/test/Makefile
2015-07-10 01:29:42 +01:00
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
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
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
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