1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00
Commit graph

644 commits

Author SHA1 Message Date
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
Andre Bernet
f7e3253d2e Add support for X9E rotary encoder in lua setup script 2016-12-08 21:10:31 +01: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
Martin Budden
e8cbae85c4 Merge pull request #1608 from raphaelcoeffic/lua_fixes
MSP/SPORT: BFSetup LUA script fixes
2016-11-19 17:54:36 +01:00
Raphael Coeffic
4d92ce25d3 MSP/SPORT: BFSetup LUA script fixes
- added MSP_EEPROM_WRITE after value upload.
- added timeout for saving (1.5s) + second retry.
- invalidate pages on telemetry lost.
- do not write values in LUA if reply set is empty.
- reset state on invalidatePages()
- removed “(…)” after the page title when loading.
2016-11-19 17:34:30 +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
Martin Budden
c987f268b7 Fixed up CRSF CRC checking. Fixed telemetry port mask 2016-11-17 22:36:11 +00:00
Martin Budden
de694386ba Fixed test code 2016-11-17 22:36:11 +00:00
Martin Budden
e7928fc019 Added test code 2016-11-17 22:36:11 +00:00
Martin Budden
2a420d94f8 Added CRC checking. Renamed address constants. Updated tests. 2016-11-17 22:36:11 +00:00
Martin Budden
4a225cf9b1 Added test data. Improved build #defines 2016-11-17 22:36:11 +00:00
Martin Budden
2b343af861 Implemented flight mode telemetry 2016-11-17 22:36:11 +00:00
Martin Budden
818a91b6c1 Fixed baud rate and inversion. Added more tests 2016-11-17 22:36:11 +00:00
Martin Budden
890eab203b First cut of CRSF RX and telemetry code 2016-11-17 22:36:11 +00:00
Raphael Coeffic
19173e1001 MSP/SPORT: added a new PID configuration script (+ minor fix)
First draft version of the PID configuration script. Please note that this script needs to be copied into /SCRIPTS/TELEMETRY/ on the SD card and renamed to something smaller than 6 characters (OpenTX does not support more for telemetry scripts).

Usage:
 - long press “Menu” to get save/reload functions.
 - press short “Menu” to switch pages.
 - press “+”/“-“ to navigate through fields.
 - press “enter” to edit a field.


implements #1311
2016-11-10 12:40:29 +01:00
Martin Budden
2c9d71aeae Added CMS test code 2016-11-07 20:51:08 +00:00
Raphael Coeffic
b8cb115a0b MSP/SPORT: fixed LUA script 2016-11-03 14:56:18 +01:00
Raphael Coeffic
ce0dd3536e LUA improvements (WiP) 2016-10-31 14:11:37 +01:00