1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Add delta from measurement // rc smooth interval // More MSP

This commit is contained in:
borisbstyle 2016-06-22 01:20:15 +02:00
parent 9160a2adbc
commit 4c59769b02
9 changed files with 79 additions and 45 deletions

View file

@ -145,7 +145,7 @@ static uint32_t activeFeaturesLatch = 0;
static uint8_t currentControlRateProfileIndex = 0;
controlRateConfig_t *currentControlRateProfile;
static const uint8_t EEPROM_CONF_VERSION = 140;
static const uint8_t EEPROM_CONF_VERSION = 141;
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
{
@ -158,9 +158,9 @@ static void resetPidProfile(pidProfile_t *pidProfile)
{
#if (defined(STM32F10X))
pidProfile->pidController = 1;
pidProfile->pidController = PID_CONTROLLER_INTEGER;
#else
pidProfile->pidController = 2;
pidProfile->pidController = PID_CONTROLLER_FLOAT;
#endif
pidProfile->P8[ROLL] = 45;
@ -197,6 +197,7 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->rollPitchItermIgnoreRate = 200;
pidProfile->yawItermIgnoreRate = 35;
pidProfile->dterm_lpf_hz = 50; // filtering ON by default
pidProfile->deltaMethod = DELTA_FROM_ERROR;
pidProfile->dynamic_pid = 1;
#ifdef GTUNE
@ -463,7 +464,7 @@ static void resetConf(void)
masterConfig.rxConfig.rssi_channel = 0;
masterConfig.rxConfig.rssi_scale = RSSI_SCALE_DEFAULT;
masterConfig.rxConfig.rssi_ppm_invert = 0;
masterConfig.rxConfig.rcSmoothing = 0; // TODO - Cleanup with next EEPROM changes
masterConfig.rxConfig.rcSmoothInterval = 0; // 0 is predefined
masterConfig.rxConfig.fpvCamAngleDegrees = 0;
masterConfig.rxConfig.max_aux_channel = 6;
masterConfig.rxConfig.airModeActivateThreshold = 1350;