Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL2

Dependencies:   mbed

Revision:
25:8bcc8bea0e31
Parent:
24:078f62c8d0ed
Child:
26:55e8e1a9cc84
--- a/inc/adc_defs.h	Fri Jan 18 20:17:55 2019 +0000
+++ b/inc/adc_defs.h	Sun Jan 20 16:56:52 2019 +0000
@@ -57,10 +57,37 @@
 #define CURRENT_24_DIV_FACTOR -308
 #define CURRENT_12_DIV_FACTOR -324
 */
-#define CURRENT_48_DIV_FACTOR -372
+//#define CURRENT_48_DIV_FACTOR -372
+#define CURRENT_48_DIV_FACTOR5 -370
+#define CURRENT_48_DIV_FACTOR4 -570
+#define CURRENT_48_DIV_FACTOR3 -740
+#define CURRENT_48_DIV_FACTOR2 -948
+#define CURRENT_48_DIV_FACTOR1 -1541
+#define CURRENT_48_DIV_FACTOR0 -1610
+
+#define CURRENT_48_DIV_THRESH5 3000
+#define CURRENT_48_DIV_THRESH4 2500
+#define CURRENT_48_DIV_THRESH3 2000
+#define CURRENT_48_DIV_THRESH2 1500
+#define CURRENT_48_DIV_THRESH1 500
+
 #define CURRENT_24_DIV_FACTOR -376
 //#define CURRENT_12_DIV_FACTOR -356
-#define CURRENT_12_DIV_FACTOR -208
+//#define CURRENT_12_DIV_FACTOR -208
+
+#define CURRENT_12_DIV_FACTOR5 -305
+#define CURRENT_12_DIV_FACTOR4 -335
+#define CURRENT_12_DIV_FACTOR3 -355
+#define CURRENT_12_DIV_FACTOR2 -391
+#define CURRENT_12_DIV_FACTOR1 -440
+#define CURRENT_12_DIV_FACTOR0 -535
+
+#define CURRENT_12_DIV_THRESH5 5000
+#define CURRENT_12_DIV_THRESH4 4000
+#define CURRENT_12_DIV_THRESH3 3000
+#define CURRENT_12_DIV_THRESH2 2000
+#define CURRENT_12_DIV_THRESH1 1000
+
 
 //const double ROW_CORRECTION_FACTOR = 1.017; // 2.6W/chip avg.
 const double ROW_CORRECTION_FACTOR = 0.85; // 3W/chip avg.