Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL2

Dependencies:   mbed

Revision:
30:d8721a46ee03
Parent:
26:55e8e1a9cc84
Child:
33:6c7364ea360f
--- a/inc/adc_defs.h	Tue Mar 05 19:21:32 2019 +0000
+++ b/inc/adc_defs.h	Wed Mar 06 22:32:31 2019 +0000
@@ -44,20 +44,7 @@
 const double VOLTAGE_24_FACTOR = 24.0*VOLTAGE_24_CORRECTION;
 const double VOLTAGE_12_FACTOR = 12.0*VOLTAGE_12_CORRECTION;
 
-//#define CURRENT_ACTUAL_VALUE 1.7091
-//#define CURRENT_TARG_VALUE 1.65
-//const double CURRENT_OFFSET = (CURRENT_ACTUAL_VALUE/CURRENT_TARG_VALUE)*ADC_SCALE_FACTOR;
-//const double CURRENT_48_OFFSET = 33940;
-//const double CURRENT_24_OFFSET = 33580;
-//const double CURRENT_12_OFFSET = 33380;
-//#define CURRENT_OFFSET 33940
-//#define CURRENT_DIV_FACTOR -390
-/*
-#define CURRENT_48_DIV_FACTOR -368
-#define CURRENT_24_DIV_FACTOR -308
-#define CURRENT_12_DIV_FACTOR -324
-*/
-//#define CURRENT_48_DIV_FACTOR -372
+
 #define CURRENT_48_DIV_FACTOR5 -370
 #define CURRENT_48_DIV_FACTOR4 -570
 #define CURRENT_48_DIV_FACTOR3 -740
@@ -72,15 +59,8 @@
 #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_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_FACTOR5 -188
 #define CURRENT_12_DIV_FACTOR4 -186