public HeadingController(Vessel vessel, IBankController bankController) { Target = new HeadingTarget(vessel); ControlElement = new BankElement(bankController); SetPoint = 90.0f; CoeffP = 1.0f; TimeConstI = 2.0f; }
public void Execute(int index) { var noise = Unity.Mathematics.noise.srdnoise(new float2(t, index)); var noiseNormalized = math.normalize(noise); HeadingTargets[index] = new HeadingTarget { Value = noiseNormalized }; }