![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2011
Diff: function_utilities/function_utilities.cpp
- Revision:
- 133:22ab22818e01
- Parent:
- 99:7bbcb3c0fb06
- Child:
- 169:645207e160ca
diff -r 06e670a4f416 -r 22ab22818e01 function_utilities/function_utilities.cpp --- a/function_utilities/function_utilities.cpp Sun Sep 27 07:42:10 2020 +0000 +++ b/function_utilities/function_utilities.cpp Mon Oct 05 13:33:46 2020 +0000 @@ -86,6 +86,14 @@ int16_t STROKE; +float Amm = 236.4f; +float beta = 1300000000.0f; +float Ps = 10000000.0f; //100bar = 100*10^5 Pa +float Pt = 0.0f; // 0bar = 0Pa +//float Kv = 0.00000002635f; // Q = Kv*xv*sqrt(Ps-Pa) => 100bar full opening 5LPM (full opening : xv = 1) [unit] m^3.5/kg^0.5 +float gamma_hat = 1075.0f; // Kv*beta*A/(sqrt(2)*V) 0.00000002635f * 1300000000.0f * / (sqrt(2.0f)*(1256.6f + 236.4f * 39.75f) * 0.000000001f / 2) [unit] m^3.5/kg^0.5 +float V = 0.0000053f; // (1256.6f + 236.4f * 39.75f) * 0.000000001f / 2 +float x_4_des_old = 0.0f; //int16_t VALVE_LIMIT_PLUS; //int16_t VALVE_LIMIT_MINUS; @@ -465,6 +473,7 @@ void ROM_CALL_DATA(void) { BNO = flashReadInt(Rom_Sector, RID_BNO); + BNO = 1; OPERATING_MODE = flashReadInt(Rom_Sector, RID_OPERATING_MODE); // OPERATING_MODE = 5; SENSING_MODE = flashReadInt(Rom_Sector, RID_SENSING_MODE);