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
Dominic Clifton
e40a3663d2
Remove failsafe vtable usage.
2015-03-09 23:19:21 +01:00
Dominic Clifton
60a95f1d22
Removing noise from unit tests.
2015-03-09 23:19:21 +01:00
Dominic Clifton
bce6c6722c
Merge branch 'port-changes' of https://github.com/ledvinap/cleanflight into ledvinap-port-changes
...
Conflicts:
src/main/blackbox/blackbox.c
src/main/io/serial.c
2015-03-09 22:23:04 +01:00
Damjan Adamic
517d38c94f
Re #316 : Battery voltage calculation converted to integer arithmetic, unit tests updated to account for proper rounding of voltage
...
Added frsky_hiprec_vfas configuration option that selects how VFAS is sent
Better arithmetics for FrSky CELL voltages, VFAS battery voltage send with other ID that allows 0.1V resolution
2015-03-09 20:43:04 +01:00
Dominic Clifton
9d0e464aaf
Updating unit tests to match roll/pid/yaw rate decoupling.
2015-03-08 00:51:29 +00:00
Dominic Clifton
a156d915f4
Only index into the configurable baud rate list when needed.
2015-03-03 17:30:35 +00:00
Dominic Clifton
dca984ff88
Merge branch 'master' into serial-cleanup
...
Conflicts:
src/main/telemetry/hott.c
2015-03-03 17:21:43 +00:00
Dominic Clifton
1a8500c768
Transition to new per-port & per-function baud rate configuration.
2015-02-27 01:05:37 +00:00
Dominic Clifton
b6509dd1eb
Merge branch 'master' into serial-cleanup
...
Conflicts:
src/main/blackbox/blackbox_io.c
src/main/config/config.c
2015-02-26 22:43:29 +00:00
Nicholas Sherlock
451d3d7ba2
Move zigzag encoding function to new common/encoding.c file, add tests
2015-02-26 13:27:09 +13:00
Petr Ledvina
737fbe02ed
Fix battery unittest
...
New code uses divition to get cell count, so nonzero vbatmaxcellvoltage is neccessary. Also added remaining fields to avoid future problems (and g++ doesn't support non-trivial initializers)
2015-02-23 09:18:51 +01:00
Pierre-A
39160a785a
to solve the unreference compiling issue
2015-02-22 17:49:01 +01:00
Dominic Clifton
9057d70410
Allow excluding of servo code at compilation time.
...
This is in preparation for backbox on CJMCU/64k.
Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton
5a15c3b271
Merge branch 'master' into fusterjj-lowpass
2015-02-22 15:24:11 +00:00