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
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
b48db968ff
Added tests for reversed ranges with 'scaleRange'.
2017-04-07 00:36:49 +12: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
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
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
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
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
Michael Keller
ccb155fc8e
Reverted change to speed reporting.
2016-12-08 16:37:57 +13:00
mikeller
e88eba1009
Added speed / altitude readings from vario / baro to HoTT, in case of no GPS fix.
2016-12-08 12:54:56 +13:00
Martin Budden
dc076c17bd
Fixed up tests
2016-12-05 07:12:45 +00:00
Michael Jakob
46387c9dbe
Cleanup ENUM usage
2016-12-04 16:09:21 +01:00
mikeller
e782ca55e6
Unified 'calculateBatteryPercentage' and 'calculateBatteryCapacityRemainingPercentage'.
...
Fixed tests.
Changed consumption calculations to be based on latest amperage value.
2016-12-01 13:14:14 +13:00
Martin Budden
22c5b88fd0
Updated CRSF telemetry
2016-11-25 11:35:36 +00:00
Martin Budden
5cd5eb96e5
Fixed up tests
2016-11-20 09:36:14 +00:00
Anders Hoglund
7b6ccaca6b
Fix compile warning in cms_unittest.
2016-11-19 18:12:51 +01:00
Anders Hoglund
3285543cf0
PR 1604 incomplete. One more element to init.
2016-11-19 17:34:04 +01:00
Anders Höglund
837a17bbac
Merge pull request #1604 from martinbudden/bf_fix_cms_test
...
Added all virtual functions to test displayport in cms_unittest
2016-11-19 17:21:00 +01:00
J Blackman
3a772c447c
Merge pull request #1504 from betaflight/bf_rx_crsf
...
Team Blacksheep Crossfire RX and telemetry
2016-11-20 03:17:32 +11:00
Martin Budden
da1c5fbb3a
Added all virtual functions to test displayport in cms_unittest
2016-11-19 15:43:52 +00:00
Martin Budden
e4cb051b13
Fixup after rebase
2016-11-19 06:47:53 +00:00
Martin Budden
c97e71e995
Made OSD device independent, now uses displayPort
2016-11-19 06:47:53 +00:00
Martin Budden
5d9c22e823
Changed telemetry to use broadcast address
2016-11-17 22:36:11 +00:00
Martin Budden
7249eefb9d
Updated CRSF telemetry so that telemetry and RX frames do not overlap
2016-11-17 22:36:11 +00:00