/// <summary> /// Decreases flap deflection level for all control surfaces on this vessel, down to min setting of 0 /// </summary> public static void VesselDecreaseFlapDeflection(Vessel v) { for (int i = 0; i < v.parts.Count; i++) { Part p = v.parts[i]; if (p.Modules.Contains("FARControllableSurface")) { ferram4.FARControllableSurface surface = (ferram4.FARControllableSurface)p.Modules["FARControllableSurface"]; surface.SetDeflection(surface.flapDeflectionLevel - 1); } } }
/// <summary> /// Increases flap deflection level for all control surfaces on this vessel, up to max setting of 3 /// </summary> public static void VesselIncreaseFlapDeflection(Vessel v) { for (int i = 0; i < v.parts.Count; i++) { Part p = v.parts[i]; if (p.Modules.Contains <ferram4.FARControllableSurface>()) { ferram4.FARControllableSurface surface = p.Modules.GetModule <ferram4.FARControllableSurface>(); surface.SetDeflection(surface.flapDeflectionLevel + 1); } } }