Commit graph

37 commits

Author SHA1 Message Date
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 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 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 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 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 8e6570754c Add the first unit test for the mixer.
See #16
2015-03-16 22:56:14 +01:00
Nicholas Sherlock 451d3d7ba2 Move zigzag encoding function to new common/encoding.c file, add tests 2015-02-26 13:27:09 +13:00
Joel Fuster ec946ea7d5 Split filter into separate file for future reuse 2015-01-31 11:46:44 -05:00
Joel Fuster 4f0af41e79 Merge remote-tracking branch 'upstream/master' into lowpass 2015-01-31 10:47:39 -05:00
Dominic Clifton 2ac7282314 Use different scale for inflight adjustments to PIDs of FP based PID
controllers.
2015-01-30 21:46:23 +01:00
Dominic Clifton 6bf6ca4b29 Merge branch 'travis-test-two' of https://github.com/avoid3d/cleanflight into avoid3d-travis-test-two
Conflicts:
	src/test/Makefile
2015-01-25 01:35:39 +01:00
Pierre Hugo 33481c86d7 Fixed test dependencies. 2015-01-23 22:44:47 -08:00
Pierre Hugo cfa4e19acd Added maths test.
Conflicts:
	src/test/Makefile
2015-01-23 22:40:14 -08:00
Pierre Hugo e58825288b Make makefile return non zero exit code on test failure. 2015-01-23 21:50:29 -08:00
Pierre Hugo 9a9cb0dbaa Make primative test runner script and skipped failing test for now. 2015-01-23 16:42:48 -08:00
Pierre Hugo 377f9dfc83 Introduced a 'run all tests' command to the makefile. 2015-01-23 16:37:42 -08:00
Pierre Hugo 80b78fd808 Fixed flight_imu_test after including maths. 2015-01-21 19:29:45 -08:00
Dominic Clifton 30b928c0bc Cleanup unit test compiler flags. Fix compiler warnings in unit test
and related code.
2015-01-14 15:09:29 +00:00
Dominic Clifton bf88696847 Update unit tests to correctly use C/C++ where appropriate. Cleanup
makefile by using additional whitespace.
2015-01-14 14:24:34 +00:00
Joel Fuster fd71e1ee93 Limit UT changes to those mixer-related 2015-01-04 22:32:11 -05:00
Joel Fuster de7fa3f31a Fixed point passes initial unit test 2015-01-04 21:11:40 -05:00
Joel Fuster 596da65a87 Interim dev checkin 2015-01-03 14:56:50 -05:00
Dominic Clifton 503e7a0817 Decouple altitudehold.c from config.c. Update flight_imu_unittest and
altitude_hold_unittest.
2014-11-03 20:03:21 +01:00
Dominic Clifton f8b13d7c62 Update unittest_flight_imu. 2014-11-01 11:10:57 +00:00
Dominic Clifton 21e9b0b537 Update battery_unittest. 2014-11-01 11:06:24 +00:00
Dominic Clifton 6efa63b8bd Update telemetry_hott_unittest. 2014-11-01 11:04:39 +00:00
Dominic Clifton cac814923c Update RC Controls so that functions with different modes can be
applied.  The existing modes are 'step'.  A new mode is 'select'.

The other unit tests need fixing up so that appropriate code is compiled
as C and not C++ code.
2014-10-29 20:52:44 +00:00
Dominic Clifton 2369a63df0 First cut of code that passed the unit tests for mod activations,
however it uses / operations and doesn't handle the case where the
channel value is on the boundary between two ranges.
2014-10-12 18:15:44 +01:00
Dominic Clifton e847a6347d Improve speed of LED STRIP code.
Shaved about 150us each strip update.

This commit leaves in some timing trace code for the CC3D target, the
results of which can be seen in the debug variables for the sections
being timed.

A later commit will remove/disable the timing code.
2014-09-20 01:00:13 +01:00
Dominic Clifton d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton 6ce5736990 Update LED strip code to allow configurable LED strips.
See documentation for details.
2014-09-15 03:15:11 +01:00
Dominic Clifton ca72890964 Adding unit test for updateRcOptions 2014-09-05 23:44:06 +01:00
Dominic Clifton 5b3d86e966 Update unit tests. 2014-09-05 22:46:33 +01:00
Dominic Clifton 9f1a0fcb4c Cleanup line endings. 2014-07-31 23:53:34 +01:00
Dominic Clifton deda79cb14 Update unit tests to reflect new location of battery.c/h 2014-06-07 02:39:38 +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