Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public static void CalcLongNav(DateTime now)
 {
     if (TWA.IsValid() && BRG.IsValid() && DRIFT.IsValid() && NavPolar.IsLoaded)
     {
         PolarPoint p = NavPolar.GetTargetVMC(TWS.Val, TWD.Val, BRG.Val, DRIFT.Val, SET.Val);
         TGTVMC.Val = p.SPD;
         TGTVMC.SetValid(now);
         TGTCTS.Val = TWD.Val + p.TWA;
         TGTCTS.SetValid(now);
     }
 }