diff options
Diffstat (limited to 'workspace/TS100/src/main.cpp')
-rw-r--r-- | workspace/TS100/src/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/workspace/TS100/src/main.cpp b/workspace/TS100/src/main.cpp index 54a94a03..499e98bb 100644 --- a/workspace/TS100/src/main.cpp +++ b/workspace/TS100/src/main.cpp @@ -57,10 +57,8 @@ int main(void) { PCBVersion = 2; //Setup the ST Accelerometer accel2.initalize(); //startup the accelerometer - } - { + } else { PCBVersion = 3; - } HAL_IWDG_Refresh(&hiwdg); restoreSettings(); // load the settings from flash @@ -843,9 +841,9 @@ void startPIDTask(void const *argument) { int32_t integralCount = 0; int32_t derivativeLastValue = 0; int32_t kp, ki, kd; - kp = 80; - ki = 120; - kd = 60; + kp = 30; + ki = 60; + kd = 20; // REMEBER ^^^^ These constants are backwards // They act as dividers, so to 'increase' a P term, you make the number // smaller. |