public static void CalcLongNav(DateTime now) { if (TWA.IsValid() && BRG.IsValid() && DRIFT.IsValid() && NavPolar.IsLoaded) { PolarPoint p = NavPolar.GetTargetVMC(TWS.Average(Inst.BufTwoMin), TWD.Average(Inst.BufTwoMin), BRG.Val, DRIFT.Average(Inst.BufTwoMin), SET.Average(Inst.BufTwoMin)); TGTVMC.Val = p.SPD; TGTVMC.SetValid(now); TGTCTS.Val = TWD.Average(Inst.BufTwoMin) + p.TWA; TGTCTS.SetValid(now); } }