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

246 commits

Author SHA1 Message Date
borisbstyle
cbcf028302 Dterm robust differentiator Initial Implementation 2016-04-27 21:08:15 +02:00
borisbstyle
1e1d445fd3 Dynamic D Implementation 2016-04-22 12:08:17 +02:00
borisbstyle
fb35cc6477 Remove MW23 pid controller 2016-04-18 11:02:38 +02:00
borisbstyle
f2f1e2c513 Change default expo factor and yaw pterm max 2016-03-30 21:39:14 +02:00
borisbstyle
3e5e30c42c Fix Iterm reset in super expo mode // new defaults 2016-03-30 21:23:14 +02:00
borisbstyle
595d5d0867 Acro Plus replaced by Super Expo feature 2016-03-30 12:38:29 +02:00
borisbstyle
7b468c09f0 Luxfloat rework to int pids // Many pid cleanups // filter rework
Eeprom version // Dterm improvement

Further PID Improvements

Version Change

Coupling configured // reworked filtering // more test features

remove iterm scaler luxfloat

Further rework filters etc

Restore original luxfloat but scaled

Restore original luxfloat but scaled
2016-03-30 10:16:20 +02:00
borisbstyle
0aac025494 Version 2.5.3 / Configurable yaw_p_limit for all pid controllers 2016-03-06 14:04:09 +01:00
borisbstyle
f5de06c59e Enable Faster cycletimes (Sample Rates) on all targets // More automatic looptime calculations
cleanup
2016-02-24 23:17:21 +01:00
borisbstyle
4eb6456ea1 Revert "Remove GTUNE"
This reverts commit a16ac7fbe7.
2016-02-21 14:06:10 +01:00
borisbstyle
67d3d84a95 Spool up prevention without airmode 2016-02-20 21:25:01 +01:00
KiteAnton
a16ac7fbe7 Remove GTUNE 2016-02-20 14:20:31 +01:00
borisbstyle
293820f567 Move acroplus to mixer 2016-02-19 21:00:16 +01:00
borisbstyle
77b387a08a Acro Plus Rework 2016-02-19 01:03:34 +01:00
borisbstyle
7fd88f060d Fixed point math Implementation instead of floats 2016-02-19 01:03:24 +01:00
borisbstyle
4c2acde6e2 Configurable Dterm average count 2016-02-17 21:44:07 +01:00
borisbstyle
33eef46db3 PID3 mw23 implementation
Finish PID3 implementation
2016-02-17 21:18:36 +01:00
borisbstyle
035b34bbc4 Cleanup delta method code code and refactor 2016-02-06 14:00:45 +01:00
borisbstyle
fda0794441 Airmode rework // Fix 3D from negative to positive // cleanup 2016-02-05 22:04:39 +01:00
borisbstyle
c55d0baf31 Fix non Working Anti Windup 2016-02-04 01:55:44 +01:00
borisbstyle
eebacc2542 Refactor BiQuad // Set filters to floats 2016-02-03 13:46:56 +01:00
borisbstyle
9859bbfcae Less Anti Winduo in Air mode 2016-02-03 01:32:57 +01:00
borisbstyle
a1ebe6fd4f Remove old mixer // Separate Acro Plus from Airmode // Fix MOTOLAB merge issues 2016-02-03 00:58:38 +01:00
borisbstyle
112543efb2 Add alternative delta approach (set delta_from_gyro = ON) 2016-01-25 23:22:18 +01:00
borisbstyle
93d917af3b Configurable Soft LPF values (gyro_lpf_hz and dterm_lpf_hz) 2016-01-14 14:34:46 +01:00
borisbstyle
0216d9a18d Fix windup issues in aidModePlus 2016-01-11 01:42:58 +01:00
borisbstyle
e0e7db74f1 Increase Acc update in 1khz mode // cleanup 2016-01-10 21:21:11 +01:00
borisbstyle
d2122e0674 Airmode Plus with Insane Acrobility Factor 2016-01-07 02:11:47 +01:00
borisbstyle
42dfba8218 Add more configurable Dterm approaches (for testing purposes) 2016-01-07 02:11:46 +01:00
borisbstyle
b84e9f4676 AIR MODE Safety Enhancements 2015-12-08 12:25:37 +01:00
borisbstyle
4864f1ce64 Cli PID Controller fix 2015-11-25 13:53:35 +01:00
borisbstyle
054868e0a4 Gyro Soft LPF Rework // Filter rework
remove 3 point average

lux optimize
2015-11-24 15:23:29 +01:00
borisbstyle
6d5dcb5495 Configurable Yaw Pterm Filter
Fix compile error
2015-11-13 15:21:04 +01:00
borisbstyle
d685b4d6d8 Pid Controller Cleanup
Correction to dump
2015-10-23 01:10:21 +02:00
Konstantin Sharlaimov (DigitalEntity)
5df8ca926c Quaternion-based DCM IMU (original code my S.Madgwick)
Restore binaries from merge
2015-10-22 10:45:36 +02:00
Michael Jakob
53531224be Make G-Tune more configurable
- add two new CLI paramaters "gtune_settle_time" and
"gtune_average_cycles"
- the settle time is not depending on looptime anymore
- updated default setting to cover e wider range of copters
- remove lower limit for P value for CLI (Zero P is now posible, but
schould be used with care)
- Documentation updates
2015-10-04 18:37:21 +02:00
Michael Jakob
43f5792a61 G-Tune port from Harakiri
Enabled for NAZE, ALIENWWIIF1 and ALIENWIIF3 targets
Implement G-Tune for all PID controllers
The G-Tune tuning results will be save if G-Tune mode will be disabled
during copter is disarmed.
Update PID controller and G-Tune documentation
2015-10-04 18:37:18 +02:00
Michael Jakob
b20dc77a74 Harakiri PID controller make hardcoded parameters configurable 2015-10-04 18:37:17 +02:00
borisbstyle
10f2d35759 Soft Filtering (Gyro, Dterm, Pterm)
pterm_cut_hz added

Let's play with this as well to get more noise filtered

Code Cleanup

Make filter more flexible for reuse

rewrite correction pterm

Define static delta in filter

Fix array count

ident

return function for filter

Filter Function enhanced

Full software filtering (DTerm, PTerm, Gyro, Acc)

Normalize Variables

Revert Back gyro settings

Bugfix gyro/acc filter // (MPU60xx equalize lpf settings)

Moved filtering to mw.c

This has been done to prevent reusing old cycletime for filter function.

acc_cut_hz removed (not needed)

Harakiri zero fix
2015-06-27 14:13:10 +02:00
Dominic Clifton
d2f878ef00 Removing unused PIDWeight variable. 2015-06-26 17:49:34 +01:00
Michael Hope
14869d0a99 various: use enums to make the code easier to read.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-23 05:21:48 +02:00
Michael Jakob
42218f1ea5 The yaw_p_limit minimum is now set to 100 to prevent misconfigurations.
Maximum value of 500 is now removing the limit (same as for
yaw_jump_prevention_limit)
Moving defines for PID controllers to headerfiles.
Some general code cleanup.
Documentation update
2015-05-19 17:42:03 +02:00
borisbstyle
f1a490b6ba Added PIDweight to header file 2015-05-12 23:39:51 +02:00
Michael Jakob
2fd79a7aa2 This fix is for avoiding yaw overshoot and bounce back for some
configurations
The hardcoded limit in the mixer and PID controllers 3-5 would be
removed
by default and will be configurable by CLI variables:

yaw_jump_prevention_limit, global setting (original fixed value was 100)
yaw_p_limit, per profile setting (fixed value was 300)
2015-04-23 17:30:20 +02:00
Dominic Clifton
bc8e53a9d8 Rename some PID controller methods.
See #461.
2015-03-09 23:26:52 +00:00
Dominic Clifton
55cac2bdeb Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
Relocate more code.
2015-02-01 00:39:38 +01:00
Renamed from src/main/flight/flight.h (Browse further)