1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00
Commit graph

339 commits

Author SHA1 Message Date
Michael Keller
c3d828e4b4
Merge pull request #7737 from joelucid/remove_ff
remove smart_feedforward
2019-04-14 21:32:39 +12: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
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
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
247f759652 Added 'disarm' option to crash recovery. 2019-04-04 22:40:00 +13:00
mikeller
9e50bae9ef Fixed PWM beeper. 2019-03-29 01:44:23 +13:00
mikeller
b9f20e72a2 Added 'blackbox_device' to hardware diff / dump list. 2019-03-17 18:54:59 +13:00
TheIsotopes
e2f47473ed
remove baro_hardware from dump hardware list
this one was discussed in #7738 and approved
2019-03-08 12:52:03 +01:00
Thorsten Laux
11c21368c8 remove smart_feedforward 2019-03-08 06:49:09 +01:00
Michael Keller
52630c7077 Re-added setting for 'baro_hardware' that was accidentally deleted in #7721. 2019-03-07 11:56:23 +13:00
mikeller
081756febe Added 'hardware' selector to CLI 'diff' / 'dump'. 2019-03-06 03:21:40 +13:00
Michael Keller
2b9880f71b
Merge pull request #7497 from azolyoung/optimization_initialize_logic
add feature & protocolVersion cli setting
2019-03-04 15:11:50 +13:00
Michael Keller
bf8d08b6fa
Merge pull request #7692 from mikeller/make_cc2500_spi_rx_configurable
Made CC2500 (FrSky, SFHSS) SPI RX runtime configurable.
2019-03-04 14:42:55 +13:00
Michael Keller
8fff3cae09
Merge pull request #7655 from kmitchel/dyn_notch_binoffset
Automatically adjust bin offset based on dyn notch minimum.
2019-03-04 14:41:08 +13:00
azolyoung
fcf784b4a1 add feature & protocolVersion cli setting 2019-03-04 09:16:34 +08:00
Kenneth Mitchell
832306743e
Automatically adjust bin offset based on dyn notch minimum.
Changes per review.

Drop min HZ to allow for 7".

Put alignment back.

Fix mistakenly delete variable.
2019-03-02 18:06:04 -05:00
mikeller
96d5b5dcac Added configurability for FlySky. 2019-03-02 23:54:02 +13:00
mikeller
86a5a30267 Made CC2500 (FrSky, SFHSS) SPI RX runtime configurable. 2019-03-02 23:15:32 +13:00
Thorsten Laux
f6ecf097e1 allow use of dshot bidir on targets without burst 2019-03-01 13:24:21 +01:00
Bruce Luckcuck
30672a37c5 Refactor OSD element display code
Remove the giant `select` block that contained all the code to generate the elements and transition them to individual functions called only when the element is active. Simplifies the code and results in a performance improvement as it's not necessary to fall through the large `select` statement for every element that will be drawn. The individual functions and the element to function mapping are moved to a new `osd_elements.c` file.

Moved the OSD related code files to a new `osd/` directory.

Also pre-analyze the active elements and only process those that are active. This also saves processing as it's not necessary to loop through all 50 or so elements when only a couple are active.

Various other cleanup and removal of stale or unnecessary code.

In the default configuration the element drawing phase of the OSD task is reduced from ~51us to ~35us - resulting in about a 30% decrease in processing time.
2019-02-21 14:03:25 -05:00
Thorsten Laux
e16ef1db4f First attempt low throttle airmode oscillation fix
raise dc offset immediately

Add airmode noise fix

no filter when inactive and slightly more throttle

hpf throttle to avoid large moves increasing throttle persistently

fix ws

fix ununsed variable and default to off

include airmode throttle offset in loggingThrottle
2019-02-18 23:48:36 +13:00
Michael Keller
c73a2787ee
Merge pull request #7567 from fujin/RIP-32kHz-mode
Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code
2019-02-14 19:45:14 +13:00
AJ Christensen
4fdee6ec1c Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code 2019-02-13 22:41:21 +13:00
Thorsten Laux
602b33faf1 rpm_lpf -> rpm_notch_rpf 2019-02-12 14:44:39 +01:00
Thorsten Laux
81a514c9ac increase possible Q to 30, default Q to 10 and set scheduler optimize rate policy by default 2019-02-12 11:25:48 +01:00
Bruce Luckcuck
a64bd06f5a D_MIN cleanup - use array for parameters; move CMS menu entries
Change to using an array of `uint8_t` for the `d_min_` axis parameters. Simplifies the code.

The CMS menu entries were incorrectly placed under the `FILTER PP` submenu. Moved to the `MISC PP` submenu.
2019-02-09 15:40:27 -05:00
ctzsnooze
b70d34f9db Update D_CUT to D_MIN, add setpoint
Directly and easily set the minimum value for D on pitch and roll.
- Boost back to the primary D setting is generated from gyro or setpoint inputs.
- Setpoint input is stick derived, faster by 10ms approx, and does not respond to propwash.
- Gyro input is motor derived and slower, but responds to propwash
- timing value sets balance between gyro (100) and setpoint (0) boost factors
- gain value sets overall sensitivity
- default D mins are 20 roll 22 pitch
- default D is 35, 38; if undefined then normal 30, 32 values
TUNING
- D value to flip overshoot control
- D_min to noise, lower values mean cooler motors but perhaps more propwash.
- Advance, higher values bring the boost in earlier, and stronger overall, useful for very high flip rates, but dampen stick responsiveness slightly.
- Gain value adjust against logs, checking maximal boost with flips and some rise with propwash, should be edging to get up from the min value in normal flight.
2019-02-10 01:44:55 +11:00
mikeller
b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00
mikeller
299d96fdc7 Added battery cell count based automatic PID profile switching. 2019-02-04 13:15:43 +13:00
Bruce Luckcuck
9d7af42e9f Add CMS entry for motor_output_limit
Will assist tuning while at the field. Added under PROFILE -> MISC PP.
2019-02-04 10:55:24 +13:00
mikeller
f5a979c737 Added support for full range uint16_t parameters in CLI. 2019-02-03 11:14:07 +13:00
Michael Keller
fd297b6b2c
Merge pull request #6924 from smoriarty21/pilot_name
Pilot Name
2019-02-02 21:20:08 +13:00
Michael Keller
b3b2517fab
Merge pull request #7489 from etracer65/ledstrip_beacon_improvements
Enhance ledstrip BEACON profile
2019-02-02 15:27:15 +13:00
Michael Keller
d208cd0f8f
Merge pull request #7482 from mikeller/add_motor_output_limit
Added motor output limiting per profile.
2019-02-02 15:25:54 +13:00
Sean M
09fce7f1fa Adding display name to OSD and CLI 2019-02-01 01:11:40 +13:00
Bruce Luckcuck
12a29eb7a9 Enhance ledstrip BEACON profile
Added features to the BEACON ledstrip profile:

Added a `ledstrip_beacon_color` to allow color selection rather than forcing to white.

Added `ledstrip_beacon_period_ms` to configure the blink period in milliseconds. Smaller time periods mean faster blinking.

Added `ledstrip_beacon_percent` to configure the "ON" time duty cycle. User can set to 100% to have the beacon display a solid color. 0% can be used to turn the becaon completely off.

Added `ledstrip_beacon_armed_only` to allow the user to configure whether the beacon is only on when armed.

Added `ledstrip_visual_beeper_color` to allow configuration of the visual beeper color.

Added the new parameters to the CMS menu.

Simplified the code and combined the RACE and BEACON profile processing.

Added support for auutomatically displaying a beacon that indicates RX_SET or failsafe regardless of the other RACE or BEACON settings.
2019-01-29 15:26:13 -05:00
jflyper
5b40bb4b24 Set acc alignment to that of active gyro 2019-01-29 11:33:01 +09:00
mikeller
a3cf7e0cf7 Added motor output limiting per profile. 2019-01-28 00:37:00 +13:00
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Renamed from src/main/interface/settings.c (Browse further)