Fix truncated blackbox logging by restoring PID scale

This commit is contained in:
borisbstyle 2017-01-24 22:33:18 +01:00
parent c96ffe5164
commit 38abced6a9
2 changed files with 7 additions and 7 deletions

View File

@ -137,10 +137,10 @@ static void resetControlRateConfig(controlRateConfig_t *controlRateConfig)
static void resetPidProfile(pidProfile_t *pidProfile)
{
pidProfile->P8[ROLL] = 40;
pidProfile->P8[ROLL] = 44;
pidProfile->I8[ROLL] = 40;
pidProfile->D8[ROLL] = 20;
pidProfile->P8[PITCH] = 55;
pidProfile->P8[PITCH] = 58;
pidProfile->I8[PITCH] = 50;
pidProfile->D8[PITCH] = 22;
pidProfile->P8[YAW] = 70;

View File

@ -20,16 +20,16 @@
#include <stdbool.h>
#define PID_CONTROLLER_BETAFLIGHT 1
#define PID_MIXER_SCALING 100.0f
#define PID_SERVO_MIXER_SCALING 7.0f
#define PID_MIXER_SCALING 1000.0f
#define PID_SERVO_MIXER_SCALING 0.7f
#define YAW_P_LIMIT_MIN 100 // Maximum value for yaw P limiter
#define YAW_P_LIMIT_MAX 500 // Maximum value for yaw P limiter
#define PIDSUM_LIMIT 0.5f
// Scaling factors for Pids for better tunable range in configurator for betaflight pid controller. The scaling is based on legacy pid controller or previous float
#define PTERM_SCALE 0.003558774f
#define ITERM_SCALE 0.027153417f
#define DTERM_SCALE 0.000058778f
#define PTERM_SCALE 0.032029f
#define ITERM_SCALE 0.244381f
#define DTERM_SCALE 0.000529f
typedef enum {
PIDROLL,