Example #1
0
 public override void InitializeDependencies(Dictionary <Type, AutopilotModule> modules)
 {
     gui_list[0] = pc = modules[typeof(PitchAngularVelocityController)] as PitchAngularVelocityController;
     gui_list[1] = rc = modules[typeof(RollAngularVelocityController)] as RollAngularVelocityController;
     gui_list[2] = yvc = modules[typeof(YawAngularVelocityController)] as YawAngularVelocityController;
     gui_list[3] = ac = modules[typeof(PitchAoAController)] as PitchAoAController;
     gui_list[4] = yc = modules[typeof(SideslipController)] as SideslipController;
 }
 public override void InitializeDependencies(Dictionary <Type, AutopilotModule> modules)
 {
     imodel  = modules[typeof(FlightModel)] as FlightModel;
     aoa_c   = modules[typeof(PitchAoAController)] as PitchAoAController;
     side_c  = modules[typeof(SideslipController)] as SideslipController;
     pitch_c = modules[typeof(PitchAngularVelocityController)] as PitchAngularVelocityController;
     roll_c  = modules[typeof(RollAngularVelocityController)] as RollAngularVelocityController;
     yaw_c   = modules[typeof(YawAngularVelocityController)] as YawAngularVelocityController;
 }