From 05084ec30645f6b20fa6f196d18c8aa1de43c593 Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Wed, 12 Oct 2016 09:55:34 +0200 Subject: [PATCH] Set D default --- src/main/config/config.c | 4 ++-- src/main/io/serial_cli.c | 2 +- src/main/target/NAZE/BEEBRAIN.mk | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 src/main/target/NAZE/BEEBRAIN.mk diff --git a/src/main/config/config.c b/src/main/config/config.c index 9f65b4f126..e7dcdf590f 100755 --- a/src/main/config/config.c +++ b/src/main/config/config.c @@ -207,10 +207,10 @@ static void resetPidProfile(pidProfile_t *pidProfile) pidProfile->P8[ROLL] = 45; pidProfile->I8[ROLL] = 40; - pidProfile->D8[ROLL] = 16; + pidProfile->D8[ROLL] = 20; pidProfile->P8[PITCH] = 60; pidProfile->I8[PITCH] = 65; - pidProfile->D8[PITCH] = 19; + pidProfile->D8[PITCH] = 22; pidProfile->P8[YAW] = 70; pidProfile->I8[YAW] = 45; pidProfile->D8[YAW] = 20; diff --git a/src/main/io/serial_cli.c b/src/main/io/serial_cli.c index 05a500f8e6..d38ec3a07c 100755 --- a/src/main/io/serial_cli.c +++ b/src/main/io/serial_cli.c @@ -847,7 +847,7 @@ const clivalue_t valueTable[] = { { "mag_hardware", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, &masterConfig.mag_hardware, .config.lookup = { TABLE_MAG_HARDWARE } }, { "mag_declination", VAR_INT16 | MASTER_VALUE, &masterConfig.mag_declination, .config.minmax = { -18000, 18000 } }, #endif - { "dterm_lowpass_level", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, &masterConfig.profile[0].pidProfile.dterm_filter_type, .config.lookup = { TABLE_LOWPASS_TYPE } }, + { "dterm_lowpass_type", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, &masterConfig.profile[0].pidProfile.dterm_filter_type, .config.lookup = { TABLE_LOWPASS_TYPE } }, { "dterm_lowpass", VAR_INT16 | PROFILE_VALUE, &masterConfig.profile[0].pidProfile.dterm_lpf_hz, .config.minmax = {0, 500 } }, { "dterm_notch_hz", VAR_UINT16 | PROFILE_VALUE, &masterConfig.profile[0].pidProfile.dterm_notch_hz, .config.minmax = { 0, 500 } }, { "dterm_notch_cutoff", VAR_UINT16 | PROFILE_VALUE, &masterConfig.profile[0].pidProfile.dterm_notch_cutoff, .config.minmax = { 1, 500 } }, diff --git a/src/main/target/NAZE/BEEBRAIN.mk b/src/main/target/NAZE/BEEBRAIN.mk new file mode 100755 index 0000000000..d82b12d14a --- /dev/null +++ b/src/main/target/NAZE/BEEBRAIN.mk @@ -0,0 +1 @@ +# BEEBRAIN is a VARIANT of NAZE with custom config for micro quads like tiny whoop