HCB with MPC
Dependencies: mbed Eigen FastPWM
Diff: function_utilities/function_utilities.cpp
- Revision:
- 25:f83396e3d25c
- Parent:
- 23:59218d4a256d
--- a/function_utilities/function_utilities.cpp Thu Sep 26 06:08:32 2019 +0000 +++ b/function_utilities/function_utilities.cpp Mon Oct 14 10:08:13 2019 +0000 @@ -41,7 +41,7 @@ int16_t DIR_VALVE_ENC = 0; double SUPPLY_VOLTAGE = 12000.0; -double VALVE_VOLTAGE_LIMIT = 12000.0; //mv +double VALVE_VOLTAGE_LIMIT = 5000.0; //mv double P_GAIN_VALVE_POSITION = 0.0; double I_GAIN_VALVE_POSITION= 0.0; @@ -333,7 +333,7 @@ void make_delay(void) { int i = 0; - for (i = 0; i < 100000; i++) { + for (i = 0; i < 10000; i++) { ; } @@ -431,7 +431,7 @@ SUPPLY_VOLTAGE = (double) (flashReadInt(Rom_Sector, RID_VOLATGE_SUPPLY)) *0.1; SUPPLY_VOLTAGE = 12000.0; VALVE_VOLTAGE_LIMIT = (double) (flashReadInt(Rom_Sector, RID_VOLTAGE_VALVE)) * 0.1; - VALVE_VOLTAGE_LIMIT = 12000.0; + VALVE_VOLTAGE_LIMIT = 5000.0; P_GAIN_VALVE_POSITION = flashReadInt(Rom_Sector, RID_P_GAIN_VALVE_POSITION); I_GAIN_VALVE_POSITION = flashReadInt(Rom_Sector, RID_I_GAIN_VALVE_POSITION); D_GAIN_VALVE_POSITION = flashReadInt(Rom_Sector, RID_D_GAIN_VALVE_POSITION);