Michael Keller
ccf18fe6a1
Merge pull request #7008 from jflyper/bfdev-jeti-telem-protect-GPS-related-funcitons
...
JETIEXBUS Telemetry: Conditional-ize GPS related functions with USE_GPS
2018-10-30 22:44:58 +13:00
Michael Keller
e6ff5f2b24
Merge pull request #6114 from cahe/motor-diag
...
Motor diagnostic OSD feature
2018-10-30 22:10:27 +13: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
0e7a4d6e11
Merge pull request #6998 from mikeller/remove_unused_modes
...
Remove unused BARO, GPS_HOME, GPS_HOLD modes.
2018-10-29 22:09:54 +13:00
Michael Keller
b0705caf6a
Merge pull request #6997 from mikeller/fix_fport_conditionals
...
Fixed build errors when building with USE_SERIALRX_FPORT but without USE_SERIALRX_SBUS or USE_TELEMETRY_SMARTPORT.
2018-10-29 22:09:37 +13:00
Michael Keller
74c0a3b66b
Merge pull request #6996 from mikeller/improved_frsky_x_spi
...
Added some improvements to FrSky X SPI.
2018-10-29 22:09:18 +13:00
Michael Keller
c386b77157
Merge pull request #7007 from jflyper/bfdev-drop-crsf-cms-telem-if-no-cms
...
Drop USE_CRSF_CMS_TELEMETRY if USE_CMS is not defined
2018-10-29 22:02:50 +13:00
borisbstyle
eeeec78c2d
Merge pull request #6981 from rav-rav/airmode_fix
...
fix incorrect throttle offset in airmode
2018-10-29 09:03:58 +01:00
jflyper
6c8f8138d9
Conditionalize GPS related functions with USE_GPS
2018-10-29 10:16:30 +09:00
jflyper
31e11c341c
Drop USE_CRSF_CMS_TELEMETRY if USE_CMS is not defined
2018-10-29 10:12:55 +09: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
mikeller
7b7ddd099f
Remove unused BARO, GPS_HOME, GPS_HOLD modes.
2018-10-29 00:50:44 +13:00
mikeller
45d8de2d6a
Fixed build errors when building with USE_SERIALRX_FPORT but without USE_SERIALRX_SBUS or USE_TELEMETRY_SMARTPORT.
2018-10-29 00:12:03 +13:00
mikeller
fa542cc02d
Added some improvements to FrSky X SPI.
2018-10-28 21:47:07 +13:00
Michael Keller
c677b1c19c
Merge pull request #6985 from AlienWiiBF/GYRO_cleanup
...
Gryro configuration parameters cleanup
2018-10-28 19:09:38 +13:00
Michael Keller
8609346f21
Merge pull request #6943 from kmitchel/dynamic_lowpass
...
Implement throttle based dynamic gyro and dterm filters.
2018-10-27 19:24:16 +13:00
Michael Keller
a35b310851
Merge pull request #6979 from etracer65/gps_rescue_motor_stop_fix
...
Prevent MOTOR_STOP and auto-disarm for stick arming when GPS Rescue is active
2018-10-27 19:16:36 +13:00
Michael Keller
39ae22af5e
Merge pull request #6986 from jflyper/bfdev-max7456-fix-device-type-detection
...
MAX7456: Bring CS down during device type detection
2018-10-26 22:12:21 +13:00
Kenneth Mitchell
ff8d1a842a
Fixes from reviews.
2018-10-25 20:34:55 -04:00
Kenneth Mitchell
ca460e842b
Implement throttle based dynamic gyro and dterm filters.
2018-10-25 19:23:14 -04:00
MJ666
6aa3b78629
Gryro configuration parameters cleanup
2018-10-25 18:09:27 +02:00
jflyper
a9d6c7840b
Add CS down/up for device type detection
2018-10-26 00:35:07 +09:00
Michael Keller
c222f692ea
Merge pull request #6976 from nyway/master
...
Add new target FOXEERF722DUAL
2018-10-26 00:56:44 +13:00
rav-rav
5530eb3eb5
Merge branch 'master' into airmode_fix
2018-10-25 11:13:54 +02:00
Michael Keller
ea387a0c55
Fixed tests.
2018-10-25 13:50:23 +13:00
rav
fe41edd188
fix incorrect throttle offset in airmode
2018-10-24 20:38:30 +02:00
Bruce Luckcuck
4636f10385
Prevent MOTOR_STOP auto-disarm for stick arming when GPS Rescue is active
...
The MOTOR_STOP logic is designed to stop the motors if:
1. MOTOR_STOP feature is enabled
2. Airmode is disabled
3. Throttle is at minimum
The problem is that this also applied during GPS Rescue and if the pilot had these conditions the motors would stop. Changed to disable MOTOR_STOP while GPS Rescue is active.
Also if stick-arming is used the MOTOR_STOP logic also will auto-disarm after 5 seconds (auto_disarm_delay). Disable this also when GPS Rescue is active.
2018-10-24 11:28:04 -04: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
mikeller
a03f30efa0
Converted 'SKIP_' defines to 'USE_'.
2018-10-25 00:38:05 +13:00
Michael Keller
05f935d38e
Merge pull request #6974 from etracer65/osd_remaining_time_div0
...
Fix OSD time remaining division by zero
2018-10-24 23:47:57 +13:00
Michael Keller
8ae0e929d1
Merge pull request #6973 from etracer65/osd_temperature_cleanup
...
OSD temperature display and calculations cleanup
2018-10-24 23:47:40 +13:00
Michael Keller
52b876a2a5
Merge pull request #6970 from etracer65/osd_gforce_fix
...
Improve OSD g-force display and avoid math when not needed
2018-10-24 23:46:22 +13:00
Michael Keller
9a4a3507f2
Merge pull request #6967 from jflyper/bfdev-fix-add-USE_ESC_SENSOR-conditional-to-OSD-stat-max-ESC-temp
...
OSD: Protect ESC stat max temp by USE_ESC_SENSOR
2018-10-24 23:43:50 +13:00
Michael Keller
673bb23ac6
Merge pull request #6951 from jflyper/bfdev-fix-f4by-sdcard-dma-spec
...
F4BY: Fix bad SDCARD DMA channel spec
2018-10-24 23:39:27 +13:00
Michael Keller
c06d9c8004
Merge pull request #6947 from mikeller/fix_visual_beeper
...
Changed visual beeper to respect beeper settings.
2018-10-24 23:38:58 +13:00
Michael Keller
e820c8f37c
Merge pull request #6936 from etracer65/stick_arming_gyro_calib_fix
...
Fix initial stick arming when gyro_cal_on_first_arm is used
2018-10-24 23:38:24 +13:00
ZhengNingwei
fb6547e1e4
Add new target FOXEERF722DUAL
...
Add new target FOXEERF722DUAL from FOXEER
2018-10-24 13:38:46 +08:00
Bruce Luckcuck
c1f40b8ebb
Fix OSD time remaining division by zero
...
If the current sensor wasn't configured (or the mahDrawn was still zero) then there would be a division by zero error in the remaining time OSD element calculation. Rearranged the logic to prevent.
2018-10-23 14:09:44 -04: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
6adfd345db
Merge pull request #6971 from etracer65/osd_ah_div0
...
Fix OSD artificial horizon division by zero
2018-10-24 01:36:47 +13:00
Bruce Luckcuck
810b9dab74
Fix OSD artificial horizon division by zero
...
If osd_ah_max_pit was set to zero there would be a divide by zero error in the calculations for the OSD artificial horizon. Using zero for osd_ah_max_pit is a valid use-case to disable the vertical pitch component in the artificial horizon so we can't simply change the parameter range.
2018-10-23 07:26:01 -04:00
Michael Keller
7b8fefabb6
Merge pull request #6968 from loopur/target_hakrcf722
...
Update I/O and pwm define for target HAKRCF722 in production.
2018-10-23 22:17:44 +13:00
Bruce Luckcuck
a66d6a2fc7
Improve OSD g-force display and avoid math when not needed
...
Previously the g-force element was being display using integer math and truncating the float value. This lead to the g-force displaying 0.9 much of the time. Changed to use rounding to one decimal place.
Also avoid the g-force calculation unless the element or post-flight statistic are enabled. This saves unnecessary math including a sqrt().
2018-10-22 19:46:51 -04:00
Michael Keller
d0076cf24e
Merge pull request #6953 from mikeller/remove_led_strip_from_targets
...
Removed USE_LED_STRIP from individual targets.
2018-10-23 01:39:58 +13:00
mikeller
817bb2ed86
Rename 'isAirmodeActive()' to 'airmodeIsEnabled()'.
2018-10-23 01:09:17 +13:00
mikeller
6206f034a8
Improved handling of airmode detection.
2018-10-23 01:05:50 +13:00
Michael Keller
d0432ae1e3
Merge pull request #6957 from wind0r/cleanup_dterm_lowpass
...
cleanup dterm lowpass order
2018-10-23 00:57:08 +13:00
Michael Keller
807188e652
Merge pull request #6958 from jflyper/bfdev-reinstate-f7-uart-txdma
...
Reinstate UART TX DMA for F7 (HAL driver)
2018-10-23 00:49:34 +13:00