1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00
Commit graph

179 commits

Author SHA1 Message Date
Steffen Windoffer
2f8e59f8fc fix rate accel limit ranges (#5367) 2018-03-04 11:49:53 +13:00
etracer65
3b20e8279b Add accelerometer calibration values to the CLI - also change mag calib representation (#5354)
Allows the accelerometer calibration to be exported in a dump or diff and restored after upgrading.

The accelerometer calibration is specific to the frame and orientation in which the flight controller is installed.  The users should have a way to restore a correct setting during upgrades without having to recalibrate after every flash.  Replicates the way the magnetometer calibration is exported.

Added acc_calibration as an array type to the CLI.  For consistency changed magnetometer representation from magzero_X, magzero_Y, magzero_Z to be a single array mag_calibration.
2018-03-04 11:48:51 +13:00
Míguel Ángel Mulero Martínez
73eb5d396e Add compass QMC5883L driver (#5309) 2018-03-04 11:45:54 +13:00
Dominic Clifton
cde9a9517b SPRacingF7DUAL - Dual SIMULTANEOUS gyro support. (#5264)
* CF/BF - Set STM32F7 SPI FAST clock to 13.5Mhz - Gyros not stable at
27mhz.

* CF/BF - Initial SPRacingF7DUAL commit.

Support two simultaneous gyro support (code by Dominic Clifton and Martin Budden)
There are new debug modes so you can see the difference between each gyro.

Notes:
* spi bus instance caching broke spi mpu detection because the detection
tries I2C first which overwrites the selected bus instance when using
dual gyro.
* ALL other dual-gyro boards have one sensor per bus.  SPRacingF7DUAL is has two per bus and thus commit has a lot of changes to fix SPI/BUS/GYRO initialisation issues.

* CF/BF - Add SPRacingF4EVODG target.

This target adds a second gyro to the board using the SPI pads on the back of the board.

* CF/BF - Temporarily disable Gyro EXTI pin to allow NEO target to build.
2018-03-04 11:29:31 +13:00
Michael Keller
9bcc6aca8e
Revert "BEEPER Conversion to use USE_ scheme" (#5368) 2018-03-04 09:40:17 +13:00
jflyper
ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Michael Keller
372f527476
Merge pull request #5339 from mikeller/fix_osd_stat_datetime_cli
Added missing `osd_stat_rtc_date_time` to CLI.
2018-03-01 02:22:56 +13:00
mikeller
d110ba6caf Added missing osd_stat_rtc_date_time to CLI. 2018-03-01 01:28:19 +13:00
Bruce Luckcuck
449f5f2f5c Runaway Takeoff remove unneeded parameters and enhance deactivate logic
Removed parameters runaway_takeoff_threshold (hardcode to 60) and runaway_takeoff_activate_delay (hardcode to 75).  The previous default values worked well and required no tuning.

Enhance the deactivate logic to remove the R/P/Y stick activity condition once throttle reaches 2X runaway_takeoff_deactivate_throttle_percent.  Additionally reduce the runaway_takeoff_deactivate_delay by 50% when throttle exceeds 75%.
2018-02-27 19:22:33 -05:00
Hydra
f0e06fcb58 CF/BF - Fix incorrect ACC sensor name for ICM20608G.
It was missing the 'G' suffix when compared to the gyro names.  Now the
two sensor name strings can be de-duplicated by the linker.
2018-02-22 19:32:53 +01:00
Michael Keller
b4667332d7
Merge pull request #5208 from jflyper/bfdev-piniobox-cleanup
PINIOBOX Separation of boxId and permanentId.
2018-02-20 01:53:07 +13:00
Michael Keller
f07bf40d19
Merge pull request #5210 from DieHertz/f4-overclock-subset
Adjustable overclock for F405 and F411
2018-02-19 02:26:15 +13:00
jflyper
18d5a373c0 Separation of boxId and permanentId. 2018-02-18 21:30:05 +09:00
Michael Keller
3dddb17e35
Merge pull request #5179 from mikeller/unify_3d_switches
Unified `BOX3DDISABLE` and `BOX3DONASWITCH` switches.
2018-02-18 03:21:20 +13:00
Andrey Mironov
ac26c975dd Adjustable OC for F405 and F411 2018-02-17 14:12:16 +03:00
AJ Christensen
3c8b9637c8 Biquad RC+FIR2: Reverse interface settings DEFINE conditional
* Previously we allowed the user to override from the Biquad RC+FIR2 to the FKF
  impl. at compile time via `make OPTIONS=USE_GYRO_FAST_KALMAN`.
* This was regressed in PR #5144 / commit: 4dd65a2. Restores previous behavior.
2018-02-17 22:51:25 +13:00
mikeller
1de60106b2 Fixed ordering of SPI RX protocols. 2018-02-15 00:22:36 +13:00
Michael Keller
afff03197c
Merge pull request #5144 from fujin/bqrcf2-lpf-cutoff-hz
Biquad RC+FIR2: Allow user to specify cutoff Hz parameter directly
2018-02-14 13:23:57 +13:00
AJ Christensen
4dd65a2876 Biquad RC+FIR2: Allow user to specify cutoff Hz parameter directly
* Generate 'k' per the code for the PT1
* Adjust function prototypes/functions to accept f_cut/dT where applicable
* Adjust gyro configuration, parameter group, interface settings to suit
2018-02-14 12:09:49 +13:00
mikeller
232fc4e8de Unified BOX3DDISABLE and BOX3DONASWITCH switches. 2018-02-13 20:02:02 +13:00
jflyper
45c5d37693 Use permanentId for config, convert to boxId_e at init 2018-02-12 16:02:38 +09:00
jflyper
6557b161aa Add box to pinio monitor/mapper 2018-02-12 13:54:40 +09:00
Michael Keller
06691e4d7c
Merge pull request #5108 from jflyper/bfdev-pinio
PINIO Generic pin output driver
2018-02-12 15:06:48 +13:00
jflyper
9475988218 Make burst and non-burst runtime configurable 2018-02-11 23:24:07 +09:00
jflyper
8f76a11081 Generic pin output driver 2018-02-11 15:57:28 +09:00
Michael Keller
81e75badf3
Merge pull request #3724 from DanNixon/cms_power_config
CMS power menu
2018-02-11 13:19:30 +13:00
Michael Keller
ec4b3b0d60 Revert "CAMERA_CONTROL Drop software PWM mode" 2018-02-11 12:33:00 +13:00
jflyper
93ce6e542a Separate pg related to pg directory 2018-02-09 16:46:12 +09:00
jflyper
86149361ab Drop softpwm option
Also separates PG related code to pg directory.
2018-02-04 12:29:22 +09:00
Dan Nixon
22874d8ba2 CMS power menu
Menu including:
- Voltage meter selection
- Current meter selection
- Max cell voltage (moved from MISC menu)
- Voltage scale adjust (moved from MISC menu)
- ADC current scale and offset adjust
- Virtual current scale and offset adjust
2018-02-01 15:31:45 +00:00
Michael Keller
8738e7d623
Merge pull request #5092 from etracer65/airmode_activate_3d_fix
Change airmode activation to be throttle percent based to fix 3D mode
2018-02-02 02:59:14 +13:00
Michael Keller
e4b96eb97a
Merge pull request #5073 from wind0r/remove_disarm_kill_switch_disable
remove setting which disallow disarming on throttle above low
2018-02-02 00:50:50 +13:00
Bruce Luckcuck
003979a2eb Change airmode activation to be throttle percent based to fix 3D mode
The previous logic used an absolute throttle value of 1350us which won't work in 3D mode and resulted in airmode being activated on arming.  Renamed the parameter to airmode_start_throttle_percent and set the default to 32 (equivalent to what the previous setting of 1350 when min_check is taken into account).

To preserve MSP functionality the value is transformed to/from microsecond values (32 becomes 1320) when interfaced.
2018-01-31 22:40:56 -05:00
Bruce Luckcuck
a32b05c284 Initial implementation of Runaway Takeoff Prevention (anti-taz)
Detects runaway pidSum values on takeoff and auto-disarms to prevent the "Tasmanian Devil" caused by incorrect props, wrong motor order/direction, incorrect flight controller orientation, etc.  After a successful takeoff and normal flight is detected the feature is disabled for the remainder of the battery.
2018-01-31 07:36:16 -05:00
Martin Budden
7acebf8b34 Increased number of rate profiles to 6 2018-01-31 09:21:53 +00:00
Steffen Windoffer
45a6588eaf remove setting which disallow disarming on throttle above low 2018-01-30 23:48:54 +01:00
Steffen Windoffer
0506d755a3 remove unused entries from cli lookup table 2018-01-27 22:58:27 +01:00
Adrian Miriuta
b21d681153 Introduced cli parameter <gyro_offset_yaw>
It allows to manually compensate gyro drift over time.
rebased squashed.
2018-01-25 12:45:38 +01:00
Michael Keller
b579ef2703
Merge pull request #4992 from mikeller/fix_selectable_rates
Fixed Betaflight rates calculation. Moved `rates_type` into rate profile config in CLI.
2018-01-20 16:48:06 +13:00
Michael Keller
c4b5748b8d
Merge pull request #4978 from qba667/betaflight_ibus
Additional IBUS telemetry implemented.
2018-01-20 16:27:50 +13:00
mikeller
d9922c8227 Fixed Betaflight rates calculation. Moved rates_type into rate profile config in CLI. 2018-01-20 16:16:45 +13:00
qba667
5748e75408 Additional IBUS telemetry implemented. 2018-01-18 13:37:02 +01:00
mikeller
ee65eba88d Added selectable RaceFlight rates. 2018-01-19 00:38:14 +13:00
Michael Keller
bca7b905b5
Merge pull request #4965 from fujin/biquad-RC-FIR2-filter
Biquad RC+FIR2 Filter: Prototype of ledvinap's suggestion on #4890
2018-01-16 16:15:33 +13:00
AJ Christensen
17bd318ec1 Biquad RC+FIR2 Filter: Prototype of ledvinap's suggestion on #4890
https://github.com/betaflight/betaflight/pull/4890#issuecomment-356636997
2018-01-16 15:37:19 +13:00
Michael Keller
bf1d31083b
Merge pull request #4926 from DanNixon/osd_temperatures
Add temperature sensors to OSD
2018-01-16 01:03:19 +13:00
mikeller
018c24fec2 Fixed range for setpoint_relax_ratio to avoid division by zero. 2018-01-14 12:12:54 +13:00
Dan Nixon
f8e4d02c99 Add core (MCU) temperature to OSD 2018-01-13 12:39:42 +00:00
mikeller
88a7aeb672 Adjusted CLI parameter value range for PWM input parameters to be the valid PWM input range. 2018-01-10 18:55:00 +13:00
Michael Keller
2157bd67e0
Merge pull request #4916 from mikeller/convert_vtx_defines_to_use_use
Converted defines for `VTX_COMMON`, `VTX_CONTROL`, `VTX_RTC6705`, `VTX_RTC6705SOFTSPI`, `VTX_TRAMP`, `VTX_SMARTAUDIO` to use `USE_` prefix.
2018-01-10 01:04:39 +13:00