Ejemplo n.º 1
0
 public void UpdateCore()
 {
     core.debug = debug;
     core.SetTarget(tgtLatitude, tgtLongitude, tgtAlt);
     // Set Angle - of - Attack from gains
     core.reentryBurnMaxAoA = maxSteerAngle * (core.reentryBurnSteerKp / maxReentryGain);
     core.aeroDescentMaxAoA = maxSteerAngle * (core.aeroDescentSteerKp / maxAeroDescentGain);
     core.landingBurnMaxAoA = maxSteerAngle * (core.landingBurnSteerKp / maxLandingBurnGain);
     // Other
     core.touchdownMargin         = touchdownMargin;
     core.touchdownSpeed          = (float)touchdownSpeed;
     core.deployLandingGear       = deployLandingGear;
     core.deployLandingGearHeight = deployLandingGearHeight;
     core.Changed();
     Targets.RedrawTarget(FlightGlobals.ActiveVessel.mainBody, tgtLatitude, tgtLongitude, tgtAlt);
 }