Some defaults changed

max angle
This commit is contained in:
borisbstyle 2015-10-23 01:13:43 +02:00
parent d685b4d6d8
commit 7de7ba60d6
2 changed files with 7 additions and 7 deletions

View File

@ -147,10 +147,10 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->P8[ROLL] = 40;
pidProfile->I8[ROLL] = 30;
pidProfile->D8[ROLL] = 20;
pidProfile->D8[ROLL] = 18;
pidProfile->P8[PITCH] = 40;
pidProfile->I8[PITCH] = 30;
pidProfile->D8[PITCH] = 20;
pidProfile->D8[PITCH] = 18;
pidProfile->P8[YAW] = 95;
pidProfile->I8[YAW] = 50;
pidProfile->D8[YAW] = 10;
@ -178,11 +178,11 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->P_f[ROLL] = 1.5f; // new PID with preliminary defaults test carefully
pidProfile->I_f[ROLL] = 0.4f;
pidProfile->D_f[ROLL] = 0.03f;
pidProfile->D_f[ROLL] = 0.02f;
pidProfile->P_f[PITCH] = 1.5f;
pidProfile->I_f[PITCH] = 0.4f;
pidProfile->D_f[PITCH] = 0.03f;
pidProfile->P_f[YAW] = 3.5f;
pidProfile->D_f[PITCH] = 0.02f;
pidProfile->P_f[YAW] = 3.9f;
pidProfile->I_f[YAW] = 0.9f;
pidProfile->D_f[YAW] = 0.00f;
pidProfile->A_level = 5.0f;
@ -405,7 +405,7 @@ static void resetConf(void)
masterConfig.boardAlignment.pitchDegrees = 0;
masterConfig.boardAlignment.yawDegrees = 0;
masterConfig.acc_hardware = ACC_DEFAULT; // default/autodetect
masterConfig.max_angle_inclination = 500; // 50 degrees
masterConfig.max_angle_inclination = 600; // 50 degrees
masterConfig.yaw_control_direction = 1;
masterConfig.gyroConfig.gyroMovementCalibrationThreshold = 32;

View File

@ -413,7 +413,7 @@ const clivalue_t valueTable[] = {
{ "align_board_pitch", VAR_INT16 | MASTER_VALUE, &masterConfig.boardAlignment.pitchDegrees, -180, 360 },
{ "align_board_yaw", VAR_INT16 | MASTER_VALUE, &masterConfig.boardAlignment.yawDegrees, -180, 360 },
{ "max_angle_inclination", VAR_UINT16 | MASTER_VALUE, &masterConfig.max_angle_inclination, 100, 900 },
{ "max_angle_inclination", VAR_UINT16 | MASTER_VALUE, &masterConfig.max_angle_inclination, 100, 1200 },
{ "moron_threshold", VAR_UINT8 | MASTER_VALUE, &masterConfig.gyroConfig.gyroMovementCalibrationThreshold, 0, 128 },
{ "imu_dcm_kp", VAR_UINT16 | MASTER_VALUE, &masterConfig.dcm_kp, 0, 20000 },