1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

127 commits

Author SHA1 Message Date
Ivan Efimov
d5c31accdf FW sliders: separate MSP commands for requesting calculations but not applying them into the FW 2021-12-19 04:00:50 -06:00
haslinghuis
2a954c6203
Merge pull request #10673 from KarateBrot/sdft
Remove Dynamic Notch from "Features"
2021-12-01 23:21:05 +01:00
Hans Christian Olaussen
834925260d Rename and reorder simplified PID parameters 2021-11-29 17:18:26 +01:00
KarateBrot
450cee3e08 Removed dynamic notch from features 2021-11-10 23:03:43 +01:00
Hans Christian Olaussen
fcabdf231f Rename cms PITCH PI GAIN
to "PITCH PIFF GAIN".
It adjusts feedforward too.
2021-10-25 13:33:12 +02:00
Joeri Capens
e42c3f2b7f Apply CMS simplified tuning settings on exit if there are changes. 2021-10-02 14:37:21 +02:00
ctzsnooze
99a7479b8c consistent gyro and dterm filter names 2021-09-27 09:12:00 +10:00
ctzsnooze
90a2057179 pid slider support with changed defaults 2021-09-26 15:05:05 +10:00
J Blackman
afe49c480f
Merge pull request #10585 from knoopx/stuning-dmin-def
hide DMIN RATIO unless USE_D_MIN
2021-09-06 14:20:47 +10:00
Michael Keller
7a8b40a670
Merge pull request #10777 from ctzsnooze/move-feedforward-transtion-calculation 2021-09-04 16:56:37 +12:00
KarateBrot
8649f1003f Dynamic notch refactoring
+ added new parameter group for Dyn Notch
2021-09-01 12:39:21 +12:00
ctzsnooze
5863015354 ifdef condition consistently applied, field names consistent, pg ID updated 2021-08-30 09:33:12 +10:00
Victor Martinez
059e5a12fe disable s.tuning DMIN RATIO when USE_D_MIN is undefined 2021-07-21 13:11:51 +02:00
KarateBrot
1ae31fd3d5 Dynamic notch bandwidth back to Q
+ simplified frequency estimation
2021-06-11 00:16:21 +02:00
ctzsnooze
636d563abe major rc changes ctzsnooze 2021 2021-05-07 14:40:43 +10:00
ctzsnooze
d4f0ec2d0a feed forward jitter improvements 2021-04-27 12:47:06 +10:00
Michael Keller
a5d0f7e457
Merge pull request #10589 from IllusionFpv/fix/cms-simplified-tuning-5pt-steps
move simplified tuning parameters by 5pt
2021-03-28 18:34:35 +13:00
KarateBrot
d02af7334c Added tracking of multiple dynamic notches per axis and replaced FFT with SDFT 2021-03-24 17:09:28 +01:00
Nicola De Pasquale
d1ab041103 move simplified tuning parameters by 5pt 2021-02-25 21:54:59 +01:00
Nicola De Pasquale
3f3c143199 refactor calculateNewPidValues function
roll pitch ratio now increase pitch

constrain dmin ratio, disable dmin if multiplier is 200

fix apply simplified tuning
2021-02-19 22:55:44 +01:00
Bruce Luckcuck
87f322927a Self-level modes expo
Adds angle setpoint roll/pitch expo for self-level modes.

Previously the angle setpoint was a simple linear calculation based on the stick deflection percentage and the angle limit. This makes control very jumpy around center stick and people would often resort to adding expo in their radios to compensate. This then adds the complication of wanting expo in the radio when in self-level but not when in acro - leading to complicated mixes, virtual switches, etc.

This PR adds separate self-level expo settings for roll/pitch so the user can customize the axis behavior. Yaw is excluded because this axis uses normal rates and expo controlling the rotational rate around the yaw axis and not an angle setpoint. The roll/pitch expo can range from 0 (off) to 100 (max) like other RC expo settings. For example:
```
set roll_level_expo = 30
set pitch_level_expo = 40
```
The default values are 0 which disables any expo and behaves as before.

The settings are available in the CMS rate profile menu.
2021-01-25 19:08:43 -05:00
Michael Keller
7fc3c7cea6 Renamed 'tuning sliders' to 'simplified tuning'. 2020-12-26 14:26:56 +01:00
IvoFPV
cff19dc113 Implement tuning sliders, add to CMS, MSP 2020-12-26 14:26:50 +01:00
Michael Keller
0f5d28a63c
Merge pull request #10238 from IllusionFpv/add-dlpf-gyro-expo-in-osd
Added dlpf gyro expo curve in CMS
2020-10-07 00:57:09 +13:00
Nicola De Pasquale
ff79f2927d added vbat sag compensation in CMS 2020-10-04 16:30:08 +02:00
Nicola De Pasquale
dab365aa62 added dlpf gyro expo curve in osd 2020-10-03 22:03:29 +02:00
Victor Martinez
e375ac1c21 add thrust linearization to CSM 2020-08-19 01:58:48 +02:00
Michael Keller
a8085bef8b
Merge pull request #9759 from etracer65/pid_init_separate
Split initialization from pid.c for flash savings
2020-06-22 00:35:42 +12:00
mikeller
9bace5b9d1 Fixed condition for the 'ANTI GRAVITY' mode switch to hide it wen anti-gravity is disabled. 2020-05-08 01:14:45 +12:00
Bruce Luckcuck
c06106e2d1 Split initialization from pid.c for flash savings
Move low performance requirements initialization code into pid_init.c and optimize that for size.

Saves 2688 bytes for target STM32F7X2.
2020-05-03 13:58:55 -04:00
Bruce Luckcuck
265d6dde2b CMS dynamic setup popup menu
Adds a dynamically constructed menu that will appear before the main menu when the user enters CMS if there are any outstanding setup items to complete. Currently only includes entry to calibrate the ACC if required, but provides a framework for other setup reminders as needed. The user can choose to exit this menu without remedying the problems, but the menu will reappear when they next enter CMS. If there are no required setup items then the menu will be skipped and the user will go straight to the main menu.
2020-03-12 11:45:44 -04:00
Nicola De Pasquale
4519935c92 increase srate max setting for using new rate systems 2020-03-09 21:33:10 +01:00
Michael Keller
6876b89c8e
Merge pull request #9487 from Asizon/ffInterpolateToCms
Added FF Interpolate options to CMS
2020-02-19 00:01:31 +13:00
Asizon
d51b150585 FF Interpolate to CMS 2020-02-16 14:57:05 +01:00
ctzsnooze
2bbe525853 Fix iterm_relax at low cutoff values
Doesn't adjust threshold upwards when cutoff is reduced below default.
This reverts to original setpoint code behaviour.

Probably better to go back entirely to the original code.

Add changed max on iterm_relax_cutoff to CMS

Restore ITERM_RELAX_SETPOINT_THRESHOLD to float to fix Travis error
2020-02-16 10:17:06 +13:00
ctzsnooze
7b2e075b3a Simplify and improve Dynamic Notch
Remove prevCenterFreq[axis]
Simpler peak detection:
- cubes, not squares
- only look one bin either side
More accurate frequency determination
Updated annotations and explanations
Whitespace fixes
fftStartBin can't be less than 1
Dynamic PT1 smoothing
biquad filter on centerFreq removed
centerFreq's now floats

Limits and better min max logic

constrain within nyquist limits

If gyro rate was 2khz and dynamic notch range max, this will keep the notch max to 960hz.

Simple fixes

Get lowest min above and below the peak

First go at setting DN range by a maxHz

increment the PG version in gyro.c

MSP correct size

Resolve comments from Mike and Rav.

Fis msp, deprecating range
2020-01-26 13:05:24 +13:00
Nicola De Pasquale
b833fbd171 add dterm lpf curve expo to CMS 2020-01-18 18:45:47 +01:00
mikeller
438a801eb8 Fixed 'cast-function-type' warnings, reworked CMS function pointer juggle. 2019-11-29 03:45:27 +13:00
Michael Keller
140bb22b88 Removed 'checkRedirect' and references to it. 2019-11-26 19:14:47 +13:00
mikeller
cedcf2d7e2 Added calibration menu to CMS. 2019-11-19 13:59:52 +13:00
mikeller
4a7904695e Moved 'config.[ch]' into the 'config/' directory. 2019-10-28 11:17:25 +13:00
Bruce Luckcuck
5c98726318 Replace individual CMS vtx menus with a single entry that redirects to the correct protocol menu
Instead of having individual menus for RTC6705, SmartAudio, and Tramp, Now there is a single VTX menu that detects the type of active device and redirects to the appropriate protocol menu.

Reduces confusion and chances of erroneously using the wrong VTX menu.

Fixes a problem where the Tramp menu could be used to change band/channel/power even though the VTX was a SmartAudio device.

If the VTX is not configured or not communicating, a more informative message will be presented rather than a partially populated protocol menu. For example:
```
  VTX NOT RESPONDING
  OR NOT CONFIGURED

> BACK
```

Extends the CMS menu capabilities by adding an optional `redirectCheck` function that can conditionally return a menu that should be redirected to instead of the current menu. This redirect happens before any processing happens for the original menu. Adds flexibility to make the CMS menus have a more dynamic aspect.
2019-10-19 20:17:43 -04:00
IvoFPV
9a02a407ea Add ff_boost to CMS 2019-08-16 17:54:43 +02:00
IvoFPV
596222055d add itermrelax to cms 2019-08-08 10:24:59 +02:00
Bruce Luckcuck
f42f6a8047 Fix filter cutoff frequency limits
Was missed when 32KHz filtering was removed.
2019-06-25 19:01:44 -04:00
Asizon
22e9c32b84 Added REBOOT_REQUIRED flag 2019-05-23 00:49:42 +02:00
Asizon
8e987eeaaf Add switchable gyro to cms options
Applied only to MULTI_GYRO

Added forgotten definition
2019-05-23 00:47:06 +02:00
Bruce Luckcuck
f5bc673ada Revise PID/Rate profile names to use get/set and eliminate extra PG's
Removes the custom CLI commands to update or display the PID and Rate profile names. Moves the storage into the pidProfile and controlRateProfile PG's.

Names can now be set with:
set profile_name = NAME
set rate_profile_name = NAME

Also added profile name display to the profile and rate CMS menus.
2019-05-08 09:03:31 -04:00
Miguel Angel Mulero Martinez
c542b0a367 Add D_MIN Gain and Advance to CMS 2019-05-06 10:27:43 +02:00
root
ad43631a8b clean up some spaces before newlines 2019-05-02 23:24:36 +00:00