diff --git a/calc_gate.c b/calc_gate.c index 22d7488..33c4911 100644 --- a/calc_gate.c +++ b/calc_gate.c @@ -3,6 +3,11 @@ #include #include "calc_gate.h" +#define WISFARM_DEBUG +#define LOG_TAG "gate.calc" +#include + + typedef enum { gate_full_open_with_free_flow = 0, /*A 闸门全开自由流*/ gate_full_open_with_submerged_flow, /*B 闸门全开淹没流*/ @@ -232,6 +237,8 @@ double cal_gate_full_open_with_free_flow(double water_depth_front_of_gate,double { double instantaneousFlow; + LOG_I("gate full open with free flow."); + switch(wingwall){ case warped_wingwall: if(ds == EXIST) @@ -276,6 +283,8 @@ double cal_gate_full_open_with_submerged_flow(double water_depth_front_of_gate,d { double instantaneousFlow; + LOG_I("gate full open with submerged flow."); + switch(wingwall){ case warped_wingwall: if(ds == EXIST) @@ -325,6 +334,8 @@ double cal_gate_control_with_free_flow(double water_depth_front_of_gate,double w { double instantaneousFlow; + LOG_I("gate control with free flow."); + switch(wingwall){ case warped_wingwall: if(ds == EXIST) @@ -370,6 +381,8 @@ double cal_gate_control_with_submerged_flow(double water_depth_front_of_gate,dou { double instantaneousFlow; + LOG_I("gate control with submerged flow."); + switch(wingwall){ case warped_wingwall: if(ds == EXIST) diff --git a/calc_gate.h b/calc_gate.h index 540a7b8..ad6eb95 100644 --- a/calc_gate.h +++ b/calc_gate.h @@ -14,4 +14,7 @@ struct param_gate{ int Calculation_of_InstantaneousFlow(double *value,struct param_gate *param); + +#ifndef + #endif