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

475 commits

Author SHA1 Message Date
Michael Keller
409bbab455 Apply 'telemetry_inversion' consistently to all protocols. 2017-06-13 00:59:18 +12:00
jflyper
c40178dda1 Touch up 2017-06-12 21:48:51 +09:00
Dan Nixon
3dae29611e Refactor IMU unit test 2017-06-11 11:44:52 +01:00
Dan Nixon
fa4517fa8b Reenable GPS conversion unit test 2017-06-11 09:13:15 +01:00
Dan Nixon
ed93775ee3 Reenabled RX ranges unit test 2017-06-11 09:08:42 +01:00
Dan Nixon
97be1698e7 Reenable LED strip unit test 2017-06-10 20:12:21 +01:00
Dominic Clifton
a4ee4102d7 Cherry-pick CF/9f7f2f2 2017-06-11 01:47:01 +09:00
Dan Nixon
50339b1c09 Reenable WS2812 unit test 2017-06-10 17:25:14 +01:00
Dan Nixon
45a436129b Reenable failsafe unit test 2017-06-10 17:14:32 +01:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
rav
d4d59fc718 fix unit tests 2017-05-05 08:22:31 +02:00
Martin Budden
015d848d73 Added TAG2_3SVARIABLE encoding 2017-05-02 08:36:49 +01:00
Martin Budden
50ac13d79b Minor blackbox code tidy 2017-05-02 07:13:55 +01:00
Martin Budden
f92c19cc6a Renamed blackbox_unittest to blackbox_encoding_unittest 2017-05-01 10:38:48 +01:00
Martin Budden
b1f290d218 Split blackbox encoding into separate module 2017-05-01 08:57:44 +01:00
Martin Budden
695c278b49 Added blackbox unittest 2017-04-25 14:52:47 +01:00
Martin Budden
c89fc98bf6 Got rx_rx_unittest running, some tests disabled 2017-04-25 07:38:36 +01:00
Hydra
be063ebbbf CF/BF - Remove usage of USE_FC based on PR discussion decisions. Add
USE_VIRTUAL_CURRENT_METER.
2017-04-12 00:39:27 +01:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Michael Keller
edc44bd830 Made 'scaleRange' agnostic to order of ranges. 2017-04-07 18:39:57 +12:00
Michael Keller
3dc4a9378b Merge pull request #2824 from mikeller/add_reverse_scale_range_tests
Added tests for reversed ranges with 'scaleRange'.
2017-04-07 11:54:45 +12:00
Michael Keller
b48db968ff Added tests for reversed ranges with 'scaleRange'. 2017-04-07 00:36:49 +12:00
Anders Hoglund
073364a285 junittest xml output was lost, fixed. 2017-04-06 01:38:24 +02:00
Michael Keller
e555f0ddab Merge pull request #2822 from manors/tidy-scaleRange
Tidy scaleRange code
2017-04-06 08:25:42 +12:00
Manors
6a87a6c40d Add test code for scaleRange 2017-04-06 02:52:45 +08:00
Magnus Ivarsson
e88e251df9 major refactor of the unit test makefile
- Specify source files in variables instead of manually writing
   the make file rules, this removes a lot of duplication
 - Use separate folders for all tests allowing for tests and common
   source files to be built with different settings (defines)
2017-04-04 00:06:56 +02:00
Martin Budden
cad16aa26c Merge pull request #2808 from unitware/bf-test-dependencies
handle dependencies in unit tests
2017-04-03 20:51:02 +01:00
Magnus Ivarsson
27059bdfd8 handle dependencies in unit tests 2017-04-03 13:10:55 +02:00
Magnus Ivarsson
9e77f9c4c8 control build verbosity for the unit tests 2017-03-31 16:57:56 +02:00
Hydra
067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00
Michi
2b5ca26cbb updated hott_unittest, for using climbrate m/s and m/3s to Hott EAM 2017-03-15 21:45:21 +01:00
Magnus Ivarsson
b13d4694bb Combine ibus serial rx and ibus telemetry on the same fc uart on a single pin.
```
+---------+
| FS-iA6B |
|         |
| Ser RX  |---|<---\       +------------+
|         |        |       | FC         |
| Sensor  |---[R]--*-------| Uart TX    |
+---------+                +------------+
```
R = 10Kohm, Diode 1N4148 or similar.

Both uart tx and rx channels are used so it's not possible to use the spare pin for rx of something else.

Configure the serial port like this to get both serial rx and ibus telemetry on the same port:
```
serial 1 4160 115200 57600 115200 115200
```

It is still possible to run the serial rx and ibus telemetry on two uarts like before, an example:
```
serial 1 64 115200 57600 0 115200
serial 2 4096 115200 57600 115200 115200
```
2017-03-13 21:43:37 +01:00
Magnus Ivarsson
8ed5c03434 add unit test of ibus telemetry 2017-03-08 15:11:00 +01:00
Magnus Ivarsson
cd299afdf0 use 14 channels, test ia6 rx also (best guess on protocol based on the production code) 2017-03-07 22:50:04 +01:00
Magnus Ivarsson
030d2dfeb7 Initial ibus telemetry tests ported from cleanflight 1.x 2017-03-07 22:10:32 +01:00
Anders Hoglund
d3cdc29635 Unittests fails to compile with gcc/g++. clang/clang++ is required. 2017-03-07 18:22:26 +01:00
Martin Budden
d148ffcaa6 Rationalised target.h files by moving common items into common.h 2017-02-21 08:18:42 +00:00
Martin Budden
781b1b1352 Removed dependency of pwm_output driver on mixers and servos 2017-02-19 08:59:37 +00:00
Martin Budden
f2b423525d Split gyro device out of gyro sensor struct 2017-02-06 00:00:32 +00:00
Martin Budden
e41d6a3b5b Preparation for conversion to parameter groups 2017-02-01 10:44:12 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
Martin Budden
003d331291 Fixup test code 2017-01-31 14:20:34 +01:00
Martin Budden
ec12c35555 Fixed up unit tests and ROM sizes 2017-01-31 14:20:27 +01:00
Michael Keller
8a32f9b875 Moved lua scripts to 'betaflight-tx-lua-scripts' repository. 2017-01-25 13:17:16 +13:00
mikeller
e3644ca507 Made ESC feedback and vbat calculation more resilient.
Fixed tests.

Cosmetic fix.
2017-01-05 01:07:04 +13:00
Michael Keller
8c371d7b49 Merge pull request #1763 from mikeller/add_hott_alternate_speed_altitude
Added speed / altitude readings from vario / baro to HoTT, in case of no GPS fix.
2016-12-29 13:06:16 +13:00
Martin Budden
909a2cc254 Added PG_FLAGS for parameter_group test 2016-12-21 22:52:34 +00:00
Martin Budden
2a18401d21 Unit test tidy 2016-12-21 22:44:57 +00:00
Martin Budden
e78a225ed3 Added pgResetCopy function and tests 2016-12-21 20:30:22 +00:00