public QFModule CalQuFu(ShuXianCaiJiModule.SXCJModule module, List <float> list, double qfLimit, float maxForce, MachineBase machine) { QFModule _QFModule = new QFModule(); OKEUnivers ou = machine as OKEUnivers; if (ou != null) { _QFModule.DownQF = ou.GetQuFuL(); _QFModule.UpQF = ou.GetQuFuH(); } return(_QFModule); }
public virtual bool FilterPrecision(ref float Force, SXCJModule _SXCJModule) { if (_TempForce > Force) { _TempNum++; if (_TempNum >= 3) { _TempForce = Force; _TempForceL = 0.00f; return(true); } else { if (_TempForceL == 0.00f) { _TempForceL = _TempForce; } _TempForce = Force; return(false); } } else { _TempNum = 0; if (_TempForceL != 0.00f && _TempForceL < Force) { _TempForceL = 0.00f; _TempForce = Force; return(true); } else { _TempForce = Force; return(false); } } }