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

12150 commits

Author SHA1 Message Date
Michael Keller
739694ac62
Merge pull request #7858 from etracer65/debug_dual_gyro_scaled
Add DUAL_GYRO_SCALED debug mode to capture raw scaled roll/pitch for each gyro
2019-04-14 21:46:08 +12:00
Michael Keller
ef94b5f077
Merge pull request #7843 from stawiski/warnings-fix
Fixed warnings.
2019-04-14 21:45:37 +12:00
Michael Keller
2ce3a923e3
Merge pull request #7839 from hydra/bf-fix-duplicate-transponder-enable
Fix duplicate transponder task enable attempt.
2019-04-14 21:37:03 +12:00
Michael Keller
c3d828e4b4
Merge pull request #7737 from joelucid/remove_ff
remove smart_feedforward
2019-04-14 21:32:39 +12:00
Michael Keller
65603e49a2
Merge pull request #7621 from betaflight/bf-allow-compilation-with-no-serial-ports
Allow compilation of the printf code when no serial ports are used.
2019-04-14 21:31:31 +12:00
Michael Keller
5a67eb8c1e
Merge pull request #7626 from hydra/bf-move-memory-section-initialisation
Move memory section initialisation earlier into the init sequence.
2019-04-14 21:26:34 +12:00
Michael Keller
76444c5cc3
Merge pull request #7968 from mikeller/increment_msp_api_version_to_1_42
Incremented MSP API version to 1.42.
2019-04-14 21:19:36 +12:00
ianrmurphy
9fd158412a Added rate limit settings to MSP API 1.42 for configurator. 2019-04-13 14:14:39 +01:00
Krzysztof Matula
24bf8050c1 OSD: combined ON/ARM timer 2019-04-12 22:41:22 +02:00
Bruce Luckcuck
3f0fe85b98 Fix OSD crash if vario element is enabled but not supported by target
Missing `#ifdef USE_VARIO` around the element definition.
2019-04-12 15:52:47 -04:00
ctzsnooze
5021edb133 set dyn_notch_min_hz minimum to 70hz
dyn_notch_min_hz provides a lower frequency limit below which the dynamic notch cannot go.
The current minimum is 100hz.
For low rpm quads (>7" to X class), when the dynamic notch mode is 'LOW', we should allow the user to enter the lowest possible value that can be detected by the FFT.
That is theoretically the centre of the second bin.  In low mode that is half-way between 31 and 63hz.  In practice, that value will be biased upwards a little bit by the uppers shoulder.  In practice the lowest value returned by the FFT is likely to not be less than 60hz.
This PR lowers the limit from 100hz to 60hz, allowing access to the full range of possible FFT tracking frequencies in LOW mode for low rpm quads.
2019-04-12 22:05:37 +10:00
mikeller
b6523b4c1c Incremented MSP API version to 1.42. 2019-04-11 22:33:38 +12:00
mikeller
2fd00ea935 Incremented version to 4.1.0. 2019-04-11 22:30:23 +12:00
Michael Keller
a5678de337 Incremented EEPROM config version for the 4.0 release. 2019-04-11 16:01:56 +12:00
mikeller
5000b385cc Fixed gyro detection some more. 2019-04-11 06:23:53 +12:00
Michael Keller
fc159764f1
Merge pull request #7942 from jflyper/bfdev-add-VECTAB-region-for-F446
[F446] Add VECTAB region
2019-04-10 22:35:59 +12:00
Michael Keller
e2996f03c7
Merge pull request #7939 from x4FF3/motoroutput
doc update and motor output change
2019-04-10 22:33:56 +12:00
Bruce Luckcuck
64ddbd9924 Change serial port config validation to require MSP on VCP port
Will hopefully reduce the number of cases where users incorrectly disable MSP on the VCP port and then can no longer connect.

Should be supplemented with changes to the configurator that prevents turning off MSP on the VCP port.
2019-04-09 14:47:58 -04:00
Bruce Luckcuck
40d195aeae Fix gyro/acc initialization when more than one MPU6000 (or MPU9250) sensor is connected
Logic was not expecting there to be multiple MPU6000's connected simultaneously. There are currently no boards manufactured with this config, but it's possible to do using boards that have an onboard MPU6000 and an external gyro box containing a second MPU6000.
2019-04-09 10:58:04 -04:00
Michael Keller
2b79f2b1a4
Merge pull request #7937 from TonyBlit/altitude_alarm_fix
Avoid altitude to blink if its value exceeds the alarm threshold when…
2019-04-09 21:57:12 +12:00
jflyper
9d3956fc63 Add MCO2 output support for F4 2019-04-09 11:20:52 +09:00
jflyper
db39f9a800 Add VECTAB region for F446 2019-04-09 11:12:44 +09:00
Michael Keller
9d027275e2
Merge pull request #7934 from etracer65/cli_vtx_command_help
Add missing help text for CLI vtx command
2019-04-09 10:53:00 +12:00
david
443ca5d144 doc update and motor output change 2019-04-08 21:38:22 +02:00
Bruce Luckcuck
acf0af7790 Add DUAL_GYRO_SCALED debug mode to capture raw scaled roll/pitch from each gyro
Data is before the filters but scaled to 0-2000dps.

debug(0) = gyro 1 roll
debug(1) = gyro 1 pitch
debug(2) = gyro 2 roll
debug(3) = gyro 2 roll
2019-04-08 10:26:11 -04:00
Bruce Luckcuck
e2b5fc24bd Refactor dshot command output scheduling logic
Change to a state machine that tracks the progress of each dshot command in the queue as it moves through the various phases. Simplifies the code to make it easier to understand and maintain.

Transition to timing based on motor output cycle counts calculated from desired delays instead of using direct time comparisons. Since the output timing is always based on the motor update schedule, there were cases where if the time between motor updates was a significant percentage of the desired dshot command timing, then the output could get irregular and skip cycles (for example trying to use 2K pid loop with 500us timing conflicting with 1ms timing between dshot command outputs).
2019-04-08 08:19:38 -04:00
Michael Keller
616b476bb9
Merge pull request #7933 from mikeller/add_flywoof411_to_4_0
Added target FLYWOOF411 to 4.0.
2019-04-08 22:51:01 +12:00
Michael Keller
da67361613
Merge pull request #7932 from mikeller/add_kakutef7mini_to_4_0
Add target KAKUTEF7MINI to 4.0. Also add Unified Target configuration.
2019-04-08 22:50:23 +12:00
Michael Keller
2469fce9d2
Merge pull request #7931 from mikeller/add_ff_racepit_to_4_0
Added target FF_RACEPIT to 4.0.
2019-04-08 22:49:48 +12:00
Michael Keller
065836637c
Merge pull request #7930 from mikeller/add_rushcore7_to_4_0
Added target RUSHCORE7 to 4.0.
2019-04-08 22:49:11 +12:00
Tony Cabello
16eda6e203 Avoid altitude to blink if its value exceeds the alarm threshold when not armed, as it's showing altitude over sea level instead of flight altitude. 2019-04-08 06:37:08 +02:00
Bruce Luckcuck
2634d75528 Add missing help text for CLI vtx command 2019-04-07 09:27:57 -04:00
Krzysztof Matula
eb99c7e0d1 stats:
- cosmetic changes from code review
- not enabling stats on any F3 (not enough flash)
2019-04-07 12:09:28 +02:00
Michael Keller
95244a56f7 Merge pull request #7338 from nyway/3.5.x-maintenance
Add new target RUSHCORE7

Added target RUSHCORE7 to 4.0.
2019-04-07 20:59:56 +12:00
Michael Keller
a3591aa465 Merge pull request #7344 from AlienWiiBF/FF_RACEPIT_3.5.x
Support for FuriousFPV RacePit flight controller

Added target FF_RACEPIT to 4.0.

FuriousFPV Racepit configuration update
2019-04-07 20:58:10 +12:00
Michael Keller
b60d133586 Merge pull request #7662 from flywoo/3.5.x-maintenance
Add new target FLYWOOF411 board
2019-04-07 20:52:51 +12:00
Michael Keller
5b76f84b9a Merge pull request #7715 from jamming/3.5.x-maintenance
add a new target KakuteF7mini
2019-04-07 20:39:15 +12:00
Bruce Luckcuck
27e4dddeef Fix erroneous dshot motor frame between multiple queued dshot commands
In the case of multiple queued non-blocking dshot commands, a single motor command frame would get erroneously sent in the idle time between the commands when arming. This change contains some workarounds to prevent this behavior.
2019-04-06 20:40:53 -04:00
Krzysztof Matula
fea686f2b5 enable stats only on targets with > 256M flash 2019-04-06 22:24:24 +02:00
Krzysztof Matula
a0b410b902 unit tests update 2019-04-06 21:14:17 +02:00
Krzysztof Matula
36c8f1e224 Flight statistics (odometer) added.
Supported counters:
- total flights count
- total flight time
- total flight distance (if GPS available)
2019-04-05 23:43:09 +02:00
mikeller
760a524027 Fixed tests, added crash indication. 2019-04-05 08:39:23 +13:00
mikeller
247f759652 Added 'disarm' option to crash recovery. 2019-04-04 22:40:00 +13:00
Michael Keller
22b9f34532
Merge pull request #7919 from codecae/cms_flag_fix
Updated CMS to pass flags by reference into cmsDrawMenuEntry
2019-04-04 01:43:28 +13:00
Michael Keller
2eb8762d6f
Merge pull request #7918 from etracer65/unify_lowpass_settings
Unify lowpass settings regardless of whether USE_DYN_LPF is defined
2019-04-04 01:42:02 +13:00
Michael Keller
d0deea94a9
Merge pull request #7914 from mikeller/fix_gyro_detection
Fixed gyro detection for multi gyro setups.
2019-04-04 01:32:49 +13:00
mikeller
e44f75b4a7 Fixed gyro detection for multi gyro setups. 2019-04-04 00:39:55 +13:00
Michael Keller
d0d99f68a0
Merge pull request #7913 from LexioTech/SYNERGYF4-target-including-new-config
SYNERGYF4 updated target for  4.0 and unified targets
2019-04-03 23:44:51 +13:00
Bruce Luckcuck
96ee9e3103 Unify lowpass settings regardless of whether USE_DYN_LPF is defined
Defaults will be the same regardless of whether the target has `USE_DYN_LPF` included. Previously the defaults would vary and it wouldn't be obvious why.

Defaults are as follows:
gyro lowpass 1: 150/BIQUAD
gyro lowpass 2: OFF
dterm lowpass 1: 150/BIQUAD
dterm lowpass 2: 150/BIQUAD

Nothing has changed int eh dynamic lowpass logic. If it's enabled those settings will be used in place of the static lowpass cutoff.

Needs coordination with the Configurator to change the defaults used when re-eanbling the lowpass filters as they are currently based on previous version settings and will dfault to inappropriate values.
2019-04-02 20:18:19 -04:00
Curtis Bangert
94102cc798 Updated CMS to pass flags by reference into cmsDrawMenuEntry 2019-04-02 12:41:09 -04:00