1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

605 commits

Author SHA1 Message Date
Michael Keller
2a748e73d0
Merge pull request #7074 from pulquero/telm_config2
Support for enabling individual telemetry sensors
2018-11-23 01:43:33 +13:00
Mark Hale
8789246110 Support for disabling individual telemetry sensors.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-12 22:02:35 +00:00
mikeller
0d5b2c417c Added '=' after defines in test Makefile to avoid conflicts because gcc defaults to '1' for command line defines. 2018-11-10 20:10:55 +13:00
Tony Cabello
7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01:00
Bruce Luckcuck
98641cde75 Suppress OSD stats if disarming from crash-flip or untriggered launch control
The OSD stats provide no meaningful information and are just an annoyance when exiting these special states.

For Launch Control the stats will be displayed if the launch is triggered and normal flight occurrred.
2018-11-04 09:57:02 -05:00
Michael Keller
3492bcff3d
Merge pull request #7028 from mikeller/add_crash_flip_led_warning
Added 'crash flip active' to the list of warnings to be shown on LED_STRIP.
2018-11-04 14:52:40 +13:00
mikeller
79fd505a8c Changed warning to only be shown when armed. 2018-11-04 13:37:39 +13:00
mikeller
286f21150c Unified warning activation conditions. 2018-11-03 19:25:43 +13:00
Bruce Luckcuck
bb834bb126 Prevent crash recovery detection immediately after entering self-level modes
If the quad is in an extreme orientation (like upside down) the transition to self-level modes can cause enough motion to trigger crash recovery. Added a 1 second delay during which crash recovery detection is blocked immediately after entering a self-level mode.

This also addresses an issue with GPS Rescue as when it activates it enables self-level. If in the above scenario this triggered a crash recovery detection then GPS Rescue would interpret this as a crash and immediately disarm.
2018-11-02 23:43:41 -04:00
Michael Keller
c0344496ca
Merge pull request #6992 from etracer65/launch_control
Launch Control
2018-11-02 00:49:42 +13:00
Michael Keller
ace5017cc8
Merge pull request #6480 from pulquero/osd_frame_errors_3_5
Added frame quality to OSD.
2018-11-01 22:24:20 +13:00
Bruce Luckcuck
b723d2976d Changes from review and add unit tests
Stylistic updates and add tests to the PID unit tests to verify launch control behavior
2018-10-30 18:14:49 -04:00
Mark Hale
9b9a86e4c5 Added rx link quality indicator (based on rx frame error rate) to OSD. 2018-10-30 17:31:25 +00:00
Maciej Janowski
9656dbba40 Merge branch 'master' of https://github.com/betaflight/betaflight into motor-diag
# Conflicts:
#	src/main/io/osd.c
#	src/main/io/osd.h
#	src/test/unit/osd_unittest.cc
2018-10-29 21:16:24 +01:00
Maciej Janowski
3d2d5a2efa Initial implementation
Percentage implementation

Settings fix, formatting

Add support for different number of motors

Optimize and cut superfluous code

Hard-add mixer.h

Formatting adjustment to fit BF standards, linking error in unittest fix attempt

Add stubs and variables for unittests

Character based indicators

Change output to special characters

Fix spacing

Update test code, add variable

Include changes as per peer review
2018-10-29 21:09:46 +01:00
Michael Keller
71c563fdb4
Merge pull request #6977 from mikeller/remove_skip_defines
Converted 'SKIP_' defines to 'USE_'.
2018-10-29 07:37:10 +13:00
Bruce Luckcuck
e4dc93b128 Launch Control
Adds a race start assistance system that allows the pilot to pitch forward and then release the sticks with the quad holding position for the race start.
2018-10-27 11:50:37 -04:00
Michael Keller
ea387a0c55 Fixed tests. 2018-10-25 13:50:23 +13:00
Michael Keller
f912b891b5
Merge pull request #6952 from mikeller/improve_airmode_detection
Improved handling of airmode detection.
2018-10-25 00:41:50 +13:00
Bruce Luckcuck
b31b2d0680 OSD temperature display and calculations cleanup
Remove unnecessary decidegrees conversions as all temperature providers are in degrees celcius.

Fixed rounding for imperial units.

Fixed data type error in core temp warning element. Temperature is captured as int16 and can be negative but logic was using uint8 leading to an underflow for negative temperatures and a false alarm triggering.
2018-10-23 09:27:26 -04:00
mikeller
feaa082ac3 Fixes from review. 2018-10-24 02:02:59 +13:00
Michael Keller
2f1643924e
Merge pull request #6656 from timman2er/add_stat_esc_max_temp_rpm
added esc max temp and rpm to OSD
2018-10-08 01:03:20 +13:00
Michael Keller
811364c2ec
Merge pull request #6810 from azolyoung/fix_rcsplit_t_control_bug
fix rcdevice can't work
2018-10-06 15:38:20 +13:00
azolyoung
18085eafdd fix coding style 2018-09-22 10:15:01 +08:00
Michael Keller
ae0f99c494
Merge pull request #6806 from Smeat/fport_rssi
Fix rssi logging for fport.
2018-09-22 03:55:11 +12:00
azolyoung
6bc6c36116 fix error of unittest 2018-09-21 17:00:47 +08:00
Kevin
8e5bd7fc71 Fix blackbox unit test. 2018-09-20 15:35:50 +02:00
Michael Keller
ec8d363adb
Merge pull request #6748 from borisbstyle/fix_ITERM_RELAX_RP_INC_bug
Improved pid_unittests
2018-09-21 00:13:49 +12:00
Michael Keller
b43c6ca73b
Merge pull request #6796 from etracer65/adjustment_range_optimize
Optimize in-flight adjustments to only process configured ranges
2018-09-20 20:51:21 +12:00
timman2er
ef17d7fc31 add max esc temp and rpm to osd 2018-09-20 10:15:00 +02:00
borisbstyle
2d68e9c387
Merge pull request #6793 from etracer65/crsf_telem_gps_speed_fix
Fix CRSF telmetry GPS speed calculation
2018-09-19 09:32:32 +02:00
borisbstyle
87b2eeb2fd More isolated pid_unittests
Refactor iterm_relax to iterm_relax_axis

Isolate pidLevel test

Isolate pidHorizon tests

remove if UNIT_TEST

revert to iterm_relax from iterm_relax_axis
2018-09-19 08:15:32 +02:00
Bruce Luckcuck
044648ca12 Optimize in-flight adjustments to only process configured ranges
Previously the logic would process all possible ranges defined by MAX_ADJUSTMENT_RANGE_COUNT even if some (or even all) ranges were not configured.  This change first builds a list of configured ranges and only processes thos entries.

Reduces CPU load by skipping unnecessary processing and minimizes the impact of increasing the number of available ranges.
2018-09-18 10:31:58 -04:00
Michael Keller
3f41eb78a2
Merge pull request #6760 from andrejpodzimek/test_reintroduction
Fixing a wrong defintion of TARGET in the test Makefile.
2018-09-18 23:37:28 +12:00
Bruce Luckcuck
0d7f8f5feb Fix CRSF telmetry GPS speed calculation
Calculation was assuming that the GPS groundspeed was in 1/10 m/s when in reality it's in cm/s units.  This was causing the value sent in telemetry to be 10 times too large.
2018-09-18 07:07:22 -04:00
ctzsnooze
9cc96bfa67 Grr missed two ITerm's in unit test clode 2018-09-16 12:04:57 +10:00
Andrej Podzimek
dc76f7a473 Fixing a test TARGET definition and adding comments on disabled tests. 2018-09-14 00:44:39 +02:00
Michael Keller
8207dab3e5
Merge pull request #5868 from jflyper/bfdev-poc-migrate-to-dual-gyro
Configurable ACC/GYRO
2018-09-14 09:22:47 +12:00
borisbstyle
93c6f93ac1
Merge pull request #6738 from andrejpodzimek/per_target_tests
Adding a per-target unit test for timer metadata consistency.
2018-09-12 21:59:56 +02:00
borisbstyle
afccf50d96 Add Iterm Relax unittest // refactor
Refactor PID code Iterm Relax and Absolute control

Move defines for unittest to Makefile

Fix unittest isAirmodeActivated()

Absolute control unittests + optimizations

Fix dead code absolute control // unittests

Further optimizations to absolute control switch logic
2018-09-12 08:09:21 +02:00
Andrej Podzimek
9d553380c3 Adding a per-target unit test for timer metadata consistency. 2018-09-11 06:42:10 +02:00
borisbstyle
aa44fd6bbd Change default iterm_windup 2018-09-10 23:38:40 +02:00
borisbstyle
00dbaf9fa7 Cleanup code // add unittestst for iterm windup 2018-09-10 23:38:39 +02:00
jflyper
fc6c24c38e Configurable acc/gyro 2018-09-10 17:55:52 +09:00
borisbstyle
864a2d6a2b Fix bug with antiwindup inversion 2018-09-10 09:08:36 +02:00
Michael Keller
39ced6bbfe
Merge pull request #6668 from mikeller/add_fno_common
Added '-fno-common' build option, fixed resulting problems.
2018-09-08 16:51:22 +12:00
jflyper
9caeceb2dd Resolve upward inclusion 2018-09-06 18:43:58 +09:00
mikeller
4ec481a843 Added '-fno-common' build option, fixed resulting problems. 2018-08-30 18:58:34 +12:00
borisbstyle
9d01a5681e
Merge pull request #6659 from betaflight/pid_unittest_fix
Feedforward unittest
2018-08-29 09:10:45 +02:00
Michael Keller
b14d532dc5
Merge pull request #6624 from thomasbridi/CRSF_avg_cell_telemetry
feat:add average cell voltage in CRSF telemetry
2018-08-28 21:21:36 +12:00