Open wztted opened 2 years ago
下面这段是不是第四行错了?应该是 config->pid.outputKi += config->pid.integralRound 吧? config->pid.integralRound += (config->pid.ki * config->pid.vError); config->pid.integralRemainder = config->pid.integralRound >> 10; config->pid.integralRound -= (config->pid.integralRemainder << 10); config->pid.outputKi += config->pid.integralRemainder;
下面这段是不是第四行错了?应该是 config->pid.outputKi += config->pid.integralRound 吧? config->pid.integralRound += (config->pid.ki * config->pid.vError); config->pid.integralRemainder = config->pid.integralRound >> 10; config->pid.integralRound -= (config->pid.integralRemainder << 10); config->pid.outputKi += config->pid.integralRemainder;