fadectune.nas 333 B

1234567891011121314
  1. # test routines for tuning engine PD controller
  2. var tune = func(a,b,c) {
  3. bk117.engines.engine[0].Fadec.Kp = a;
  4. bk117.engines.engine[0].Fadec.Kd = b;
  5. bk117.engines.engine[0].pwrLP.coeff = c;
  6. print( "set:" , bk117.engines.engine[0].Fadec.Kp, ", ",
  7. bk117.engines.engine[0].Fadec.Kd, ", ",
  8. bk117.engines.engine[0].pwrLP.coeff);
  9. };