public void NavGoTarget(Vector3D vTarget, int modeArrival = WicoControl.MODE_ARRIVEDTARGET, int stateArrival = 0, double DistanceMin = 50, string TargetName = "", double maxSpeed = 9999, bool bGo = true) { string data = NavCommon.NAVSerializeCommand(vTarget, modeArrival, stateArrival, DistanceMin, TargetName, maxSpeed, bGo); thisProgram.IGC.SendBroadcastMessage(NavCommon.WICOB_NAVADDTARGET, data, TransmissionDistance.CurrentConstruct); thisProgram.IGC.SendBroadcastMessage(NavCommon.WICOB_NAVSTART, "", TransmissionDistance.CurrentConstruct); }
void ModuleProgramInit() { // wicoTravelMovement = new TravelMovement(this); //OurName = ""; //moduleName += "\nOrbital V4"; //sVersion = "4"; wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoCameras = new Cameras(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster); wicoPower = new PowerProduction(this, wicoBlockMaster); wicoTimers = new Timers(this, wicoBlockMaster); // navRemote = new NavRemote(this); navCommon = new NavCommon(this); _cargoCheck = new CargoCheck(this, wicoBlockMaster); _sensors = new Sensors(this, wicoBlockMaster); _drills = new Drills(this, wicoBlockMaster); // spaceDock = new SpaceDock(this, _wicoControl, wicoBlockMaster, wicoThrusters, wicoConnectors, // wicoAntennas, wicoGasTanks, wicoGyros, wicoPower, wicoTimers, wicoIGC, wicoBases, navCommon, _cargoCheck); //wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); /// DEBUG wicoIGC.SetDebug(true); _wicoControl.SetDebug(true); }
void ModuleProgramInit() { wicoThrusters = new WicoThrusters(this, wicoBlockMaster); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoCameras = new Cameras(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster); wicoPower = new PowerProduction(this, wicoBlockMaster); wicoTimers = new Timers(this, wicoBlockMaster); // navRemote = new NavRemote(this); navCommon = new NavCommon(this); _sensors = new Sensors(this, wicoBlockMaster); _drills = new Drills(this, wicoBlockMaster); _displays = new Displays(this, wicoBlockMaster, wicoElapsedTime); Echo("_displays"); _cargoCheck = new CargoCheck(this, wicoBlockMaster, _displays); Echo("_cargoCheck"); _dock = new DockBase(this); Echo("_dock"); // _scanBase = new ScanBase(this, _wicoControl); _asteroids = new Asteroids(this, _wicoControl, wicoIGC, _displays); _scanMode = new ScansMode(this, _wicoControl, wicoBlockMaster, wicoIGC, wicoCameras, _asteroids); _ores = new Ores(this, wicoBlockMaster, _wicoControl, wicoIGC, _asteroids, _displays); Echo("_ores"); _miner = new Miner(this, _wicoControl, wicoBlockMaster, wicoElapsedTime, wicoIGC , _scanMode, _asteroids, wicoThrusters, wicoConnectors, wicoSensors , wicoCameras, _drills, wicoAntennas, wicoGasTanks, wicoGyros, wicoPower , wicoTimers, navCommon, _ores, _dock , _displays ); Echo("_miner"); // spaceDock = new SpaceDock(this, _wicoControl, wicoBlockMaster, wicoThrusters, wicoConnectors, // wicoAntennas, wicoGasTanks, wicoGyros, wicoPower, wicoTimers, wicoIGC, wicoBases, navCommon, _cargoCheck); //wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); /// DEBUG // wicoIGC.SetDebug(true); // _wicoControl.SetDebug(true); // wicoElapsedTime.SetDebug(true); }
void ModuleProgramInit() { // wicoTravelMovement = new TravelMovement(this); //OurName = ""; //moduleName += "\nOrbital V4"; //sVersion = "4"; wicoThrusters = new WicoThrusters(this, wicoBlockMaster); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoLandingGears = new LandingGears(this); wicoCameras = new Cameras(this); wicoParachutes = new Parachutes(this); wicoNavRotors = new NavRotors(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster); wicoWheels = new Wheels(this); wicoEngines = new HydrogenEngines(this); wicoPower = new PowerProduction(this, wicoBlockMaster); wicoTimers = new Timers(this, wicoBlockMaster); _displays = new Displays(this, wicoBlockMaster, wicoElapsedTime); wicoBases = new WicoBases(this, wicoIGC, _displays); // navRemote = new NavRemote(this); navCommon = new NavCommon(this); _cargoCheck = new CargoCheck(this, wicoBlockMaster, _displays); spaceDock = new SpaceDock(this, _wicoControl, wicoBlockMaster, wicoThrusters, wicoConnectors, wicoAntennas, wicoGasTanks, wicoGyros, wicoPower, wicoTimers, wicoIGC, wicoBases, navCommon, _cargoCheck , _displays); //wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); /// DEBUG // wicoIGC.SetDebug(true); // _wicoControl.SetDebug(true); // wicoElapsedTime.SetDebug(true); }