public HeadingController(Vessel vessel, IBankController bankController) { Target = new HeadingTarget(vessel); ControlElement = new BankElement(bankController); SetPoint = 90.0f; CoeffP = 1.0f; TimeConstI = 2.0f; }
//build a single bank element Element BuildBankElement(Bank bank) { var element = new BankElement (bank); element.Tapped += () => EditBank (bank); return element; }