diff options
author | Ta180m | 2020-03-05 15:56:04 -0600 |
---|---|---|
committer | Ta180m | 2020-03-05 15:56:04 -0600 |
commit | 58b9a3d015a0ab2beb62c37d236a0df4d26b92b9 (patch) | |
tree | 2250753f8c097472829cf58c9ed62c018e6118e0 | |
parent | f9a1733d61aa254e16a35d6045ae553f1862f9a3 (diff) |
Update Detector_Building_v2.ino
-rw-r--r-- | Detector_Building_v2/Detector_Building_v2.ino | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Detector_Building_v2/Detector_Building_v2.ino b/Detector_Building_v2/Detector_Building_v2.ino index 0c8a891..1657d93 100644 --- a/Detector_Building_v2/Detector_Building_v2.ino +++ b/Detector_Building_v2/Detector_Building_v2.ino @@ -13,20 +13,22 @@ /* TODO: - New calibration method using cubic regression + Numerical precision */ #include <curveFitting.h> #include <detectorBuilding.h> const bool CALIB = false; // Calibration mode -const int n = 17; // Number of data points +const int n = 4; // Number of data points const int m = 1; // Number of segments const int deg = 3; // Regression degree ld data[2 * n] = { // V T - 2.70, 24.0 - + 2.70, 24.0, + 2.90, 30.0, + 3.10, 36.0, + 3.50, 50.0 }; ld coeff[m][deg + 1], V[n], T[n]; |