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

202 commits

Author SHA1 Message Date
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
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
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
Martin Budden
2c9d71aeae Added CMS test code 2016-11-07 20:51:08 +00:00
Martin Budden
01be3842c8 Added filter unit test and tidied filter code 2016-10-23 10:10:14 +01:00
Anders Hoglund
15d9eaffd4 Added junittest XML test results. 2016-10-16 17:48:31 +02:00
Martin Budden
f6bcbff239 Got alignsensor unit test working 2016-10-16 12:51:30 +01:00
Martin Budden
2e71ac3b84 Got unit tests working by removing non-working tests 2016-10-16 10:12:41 +01:00
blckmn
9c303d6669 VCP improvements to remove need for delay in serial_cli for F4 targets. 2016-08-13 11:23:35 +10:00
Martin Budden
e9a46c6ebb Cleanup of acc device drivers extern usage CF PR#2117 2016-06-16 18:09:05 +01:00
Martin Budden
f0f2941bb6 Moved scheduler into separate directory. Moved task declarations into header file. 2016-06-15 07:35:17 +01:00
borisbstyle
7386d88d0e Merge corrections 2016-03-01 14:55:04 +01:00
Martin Budden
01a19cdc04 Post rebase fixup. 2016-03-01 12:39:37 +01:00
Martin Budden
32c4348357 Some rework before rebase. 2016-03-01 12:39:26 +01:00
Martin Budden
cd3b584879 Added test to check filling up and emptying queue. 2016-03-01 12:39:20 +01:00
Martin Budden
3fa0163713 More test code. Fixed bug in queueAdd. 2016-03-01 12:39:12 +01:00
Martin Budden
63db2d00f3 Stoppd using TASK_BEEPER in tests, since this is undefined. 2016-03-01 12:38:59 +01:00
Martin Budden
757fb54512 Optimised scheduler queue iterators. 2016-03-01 12:14:21 +01:00
Martin Budden
b22610b9e5 Unittests 2016-03-01 12:13:30 +01:00
borisbstyle
83d8a8441c Remove lowpass.c // replace by pt1
unittests fix
2016-02-10 09:31:55 +01:00
Dominic Clifton
e7620727ff Fix led strip unit test compilation warning. 2016-02-02 23:36:22 +01:00
borisbstyle
cb7028b7f1 Merge remote-tracking branch 'prodrone/improved_rx_failsafe_detection' into betaflight
Conflicts:
	src/main/drivers/accgyro_mpu6500.c
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/system.c
	src/main/mw.c
	src/main/rx/rx.c
	src/main/sensors/initialisation.c
2015-10-21 09:21:33 +02:00
ProDrone
a64e2c4f1a Improved RX failsafe detection & handling
modified debug output (currently disabled)

To solve problem as indicated here:
https://github.com/cleanflight/cleanflight/issues/1266#issuecomment-135640133

and here:
https://github.com/cleanflight/cleanflight/pull/1340

and here:
https://github.com/cleanflight/cleanflight/pull/1342

Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version).
Firmware filename: X4R-X4RSB_cppm_non-EU_150630

In both SBUS and CPPM mode.

---
Added delay to rxfail detection

All channels are monitored for bad (out of valid range) pulses.
On bad pulses channel data will HOLD the last value for a period of
MAX_INVALID_PULS_TIME (300ms) before starting rxfail substitution.
This should prevent a too aggressive reaction to small dropouts.

---
Init ARM switch rc channel to OFF for safety

Initialize ARM switch to OFF position when arming via switch is defined.
To prevent arming during init when RX is disconnected and/or when RX is
connected but TX is still off.

---
Modified rx_rx_unittest.cc

Adapted because rxInit() parameters changed.
Added tests for ARM switch initialization.
No further tests added.

---
Move smoothing of rcData to rcCommand

Commit from @borisbstyle pr #1418
rc_smoothing function has changed to leave rcData unchanged in #1418
2015-10-21 01:50:59 +02:00
Dominic Clifton
ddc5a5f15f Add IRQn_Type to tests to fix compilation errors. 2015-10-16 10:40:59 +02:00
Dominic Clifton
526f4777a2 Add IRQn_Type to tests to fix compilation errors. 2015-10-16 08:24:19 +01:00
borisbstyle
4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
Dominic Clifton
a319394f6b Merge branch 'blackbox-serial-budget' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-serial-budget
Conflicts:
	src/main/blackbox/blackbox.c
2015-10-12 20:14:20 +01:00
Petr Ledvina
8f3d9fae9a unify typedef struct name_s {} name_t; naming convention 2015-10-12 19:58:12 +01:00
borisbstyle
12c9f65f43 Merge branch 'master' into betaflight
Conflicts:
	Makefile
	docs/Cli.md
	src/main/config/config.c
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_mpu6050.h
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6000.h
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/accgyro_spi_mpu6500.h
	src/main/drivers/barometer_bmp280.c
	src/main/drivers/sensor.h
	src/main/flight/pid.c
	src/main/mw.c
	src/main/rx/rx.c
	src/main/sensors/initialisation.c
	src/main/target/CC3D/target.h
2015-10-07 17:12:54 +02:00