AlienFlight F3 custom configuration update

Fix gyro and pid denominator for V1, V2 and brushed, brushless
configuration
This commit is contained in:
Michael Jakob 2016-12-19 21:31:55 +01:00
parent f2ea479324
commit 65e332e75d
1 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,9 @@ void targetConfiguration(master_t *config)
#ifdef LED2_A #ifdef LED2_A
config->statusLedConfig.ledTags[2] = IO_TAG(LED2_A); config->statusLedConfig.ledTags[2] = IO_TAG(LED2_A);
#endif #endif
} else {
config->gyroConfig.gyro_sync_denom = 2;
config->pidConfig.pid_process_denom = 2;
} }
config->rxConfig.spektrum_sat_bind = 5; config->rxConfig.spektrum_sat_bind = 5;
@ -82,7 +85,7 @@ void targetConfiguration(master_t *config)
if (hardwareMotorType == MOTOR_BRUSHED) { if (hardwareMotorType == MOTOR_BRUSHED) {
config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE; config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE;
config->pidConfig.pid_process_denom = 2; config->pidConfig.pid_process_denom = 1;
} }
config->profile[0].pidProfile.P8[ROLL] = 90; config->profile[0].pidProfile.P8[ROLL] = 90;