Update GPS PH and Navigation defaults.

These come from the multiwii codebase and were tested by stronnag.

See
https://code.google.com/p/multiwii/source/browse/trunk/MultiWii_shared/MultiWii.h#187
This commit is contained in:
Dominic Clifton 2014-12-14 23:52:02 +00:00
parent 26239c0071
commit 00d0e30981
1 changed files with 7 additions and 7 deletions

View File

@ -127,15 +127,15 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->P8[PIDALT] = 50; pidProfile->P8[PIDALT] = 50;
pidProfile->I8[PIDALT] = 0; pidProfile->I8[PIDALT] = 0;
pidProfile->D8[PIDALT] = 0; pidProfile->D8[PIDALT] = 0;
pidProfile->P8[PIDPOS] = 11; // POSHOLD_P * 100; pidProfile->P8[PIDPOS] = 15; // POSHOLD_P * 100;
pidProfile->I8[PIDPOS] = 0; // POSHOLD_I * 100; pidProfile->I8[PIDPOS] = 0; // POSHOLD_I * 100;
pidProfile->D8[PIDPOS] = 0; pidProfile->D8[PIDPOS] = 0;
pidProfile->P8[PIDPOSR] = 20; // POSHOLD_RATE_P * 10; pidProfile->P8[PIDPOSR] = 34; // POSHOLD_RATE_P * 10;
pidProfile->I8[PIDPOSR] = 8; // POSHOLD_RATE_I * 100; pidProfile->I8[PIDPOSR] = 14; // POSHOLD_RATE_I * 100;
pidProfile->D8[PIDPOSR] = 45; // POSHOLD_RATE_D * 1000; pidProfile->D8[PIDPOSR] = 53; // POSHOLD_RATE_D * 1000;
pidProfile->P8[PIDNAVR] = 14; // NAV_P * 10; pidProfile->P8[PIDNAVR] = 25; // NAV_P * 10;
pidProfile->I8[PIDNAVR] = 20; // NAV_I * 100; pidProfile->I8[PIDNAVR] = 33; // NAV_I * 100;
pidProfile->D8[PIDNAVR] = 80; // NAV_D * 1000; pidProfile->D8[PIDNAVR] = 83; // NAV_D * 1000;
pidProfile->P8[PIDLEVEL] = 90; pidProfile->P8[PIDLEVEL] = 90;
pidProfile->I8[PIDLEVEL] = 10; pidProfile->I8[PIDLEVEL] = 10;
pidProfile->D8[PIDLEVEL] = 100; pidProfile->D8[PIDLEVEL] = 100;