1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-289 Clean up comments and uncrustify

This commit is contained in:
paul Jewell 2016-12-11 05:45:47 +01:00
parent 143b5e7ab6
commit ebc4b16d9a
4 changed files with 6 additions and 11 deletions

View File

@ -7,7 +7,7 @@
*
* @file pid.c
* @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2016.
* The OpenPilot Team, http://www.openpilot.org Copyright (C) 2015.
* The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
* @brief Methods to work with PID structure
*
* @see The GNU Public License (GPL) Version 3

View File

@ -6,7 +6,6 @@
* @{
*
* @file pid.h
*
* @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2016.
* The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
* @brief Methods to work with PID structure

View File

@ -117,8 +117,7 @@ void PIDControlDown::UpdateParameters(float kp, float ki, float kd, float beta,
// Define Tf, according to controller type
if (kd < 1e-6f) {
// PI Controller or P Controller
Tf = 0; // Originally this: (Ti / N) - which creates a D term from
// the integral time constant!
Tf = 0;
} else {
Tf = Td / N;
}

View File

@ -108,8 +108,7 @@ void PIDControlNE::UpdateParameters(float kp, float ki, float kd, float beta, fl
// Define Tf, according to controller type
if (kd < 1e-6f) {
// PI Controller or P Controller
Tf = 0; // Originally this: (Ti / N) - which creates a D term from
// the integral time constant!
Tf = 0;
} else {
Tf = Td / N;
}
@ -120,8 +119,6 @@ void PIDControlNE::UpdateParameters(float kp, float ki, float kd, float beta, fl
beta = 0.4f;
}
pid2_configure(&PIDvel[0], kp, ki, kd, Tf, kt, dT, beta, u0, 0.0f, 1.0f);
pid2_configure(&PIDvel[1], kp, ki, kd, Tf, kt, dT, beta, u0, 0.0f, 1.0f);
deltaTime = dT;