From d5beab76bb5359276557e9ccc515404845f3b4d3 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sun, 11 Nov 2018 09:26:30 +1100 Subject: [PATCH] TS80 Tuning fairly well now --- workspace/TS100/src/main.cpp | 6 ++++++ workspace/TS100A/.cproject | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/workspace/TS100/src/main.cpp b/workspace/TS100/src/main.cpp index 415f8214..f05e937f 100644 --- a/workspace/TS100/src/main.cpp +++ b/workspace/TS100/src/main.cpp @@ -957,7 +957,13 @@ void startPIDTask(void const *argument __unused) { // divided by 20 to let I term dominate near set point. // I should retune this, but don't want to do it until // the feed-forward temp adjustment is in place. +#ifdef MODEL_TS100 const uint16_t mass = 1690 / 20; +#endif +#ifdef MODEL_TS80 + const uint16_t mass = 1690 / 50; +#endif + int32_t milliWattsNeeded = tempToMilliWatts(tempError.average(), mass, rawC); milliWattsOut += milliWattsNeeded; diff --git a/workspace/TS100A/.cproject b/workspace/TS100A/.cproject index 71603da9..8025ecc0 100644 --- a/workspace/TS100A/.cproject +++ b/workspace/TS100A/.cproject @@ -45,13 +45,13 @@ -