public void map_modues() { pvc = owner.cur_ves_modules[typeof(PitchAngularVelocityController)] as PitchAngularVelocityController; yvc = owner.cur_ves_modules[typeof(YawAngularVelocityController)] as YawAngularVelocityController; rvc = owner.cur_ves_modules[typeof(RollAngularVelocityController)] as RollAngularVelocityController; mapped = true; }
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; }