For LIGHT

Dependencies:   mbed FastPWM

Revision:
63:a3c7f31742c9
Parent:
62:851cf7b7aa7a
Child:
65:443a5f0e8ee1
diff -r 851cf7b7aa7a -r a3c7f31742c9 function_utilities/function_utilities.cpp
--- a/function_utilities/function_utilities.cpp	Tue May 12 06:23:22 2020 +0000
+++ b/function_utilities/function_utilities.cpp	Fri May 15 03:25:15 2020 +0000
@@ -458,7 +458,7 @@
     OPERATING_MODE = flashReadInt(Rom_Sector, RID_OPERATING_MODE);
     SENSING_MODE = flashReadInt(Rom_Sector, RID_SENSING_MODE);
     CURRENT_CONTROL_MODE = flashReadInt(Rom_Sector, RID_CURRENT_CONTROL_MODE);
-    CURRENT_CONTROL_MODE = 0;
+    CURRENT_CONTROL_MODE = 1;
     FLAG_VALVE_DEADZONE = flashReadInt(Rom_Sector, RID_FLAG_VALVE_DEADZONE);
     CAN_FREQ = flashReadInt(Rom_Sector, RID_CAN_FREQ);
     CAN_FREQ = 500;
@@ -487,7 +487,7 @@
     CHAMBER_VOLUME_B = flashReadInt(Rom_Sector, RID_CHAMBER_VOLUME_B);
     PISTON_AREA_A = flashReadInt(Rom_Sector, RID_PISTON_AREA_A);
     PISTON_AREA_B = flashReadInt(Rom_Sector, RID_PISTON_AREA_B);
-    PISTON_AREA_alpha = (float)PISTON_AREA_B/(float)PISTON_AREA_A;
+    PISTON_AREA_alpha = (float)PISTON_AREA_A/(float)PISTON_AREA_B;
     alpha3 = PISTON_AREA_alpha * PISTON_AREA_alpha*PISTON_AREA_alpha;
     PRES_SUPPLY = flashReadInt(Rom_Sector, RID_PRES_SUPPLY);
     PRES_RETURN = flashReadInt(Rom_Sector, RID_PRES_RETURN);