mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
S-term (for wings) (#13679)
* S-term for wings * tabs Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * pidData[axis].S --------- Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
parent
00ca8232d5
commit
e2e1a68ba0
8 changed files with 51 additions and 10 deletions
|
@ -114,10 +114,10 @@ void setDefaultTestSettings(void)
|
|||
{
|
||||
pgResetAll();
|
||||
pidProfile = pidProfilesMutable(1);
|
||||
pidProfile->pid[PID_ROLL] = { 40, 40, 30, 65 };
|
||||
pidProfile->pid[PID_PITCH] = { 58, 50, 35, 60 };
|
||||
pidProfile->pid[PID_YAW] = { 70, 45, 20, 60 };
|
||||
pidProfile->pid[PID_LEVEL] = { 50, 50, 75, 50 };
|
||||
pidProfile->pid[PID_ROLL] = { 40, 40, 30, 65, 0 };
|
||||
pidProfile->pid[PID_PITCH] = { 58, 50, 35, 60, 0 };
|
||||
pidProfile->pid[PID_YAW] = { 70, 45, 20, 60, 0 };
|
||||
pidProfile->pid[PID_LEVEL] = { 50, 50, 75, 50, 0 };
|
||||
|
||||
// Compensate for the upscaling done without 'use_integrated_yaw'
|
||||
pidProfile->pid[PID_YAW].I = pidProfile->pid[PID_YAW].I / 2.5f;
|
||||
|
@ -183,6 +183,7 @@ void resetTest(void)
|
|||
pidData[axis].I = 0;
|
||||
pidData[axis].D = 0;
|
||||
pidData[axis].F = 0;
|
||||
pidData[axis].S = 0;
|
||||
pidData[axis].Sum = 0;
|
||||
simulatedSetpointRate[axis] = 0;
|
||||
simulatedRcDeflection[axis] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue