void _NavAddTarget(Vector3D vTarget, int modeArrival = MODE_NAVNEXTTARGET, int stateArrival = 0, double DistanceMin = 50, string TargetName = "", double maxSpeed = 9999, bool bGo = true) { if (maxSpeed > fMaxWorldMps) { maxSpeed = fMaxWorldMps; } WicoNavCommand wicoNavCommand = new WicoNavCommand { pg = this, vNavTarget = vTarget, bValidNavTarget = true, NAVArrivalMode = modeArrival, NAVArrivalState = stateArrival, arrivalDistanceMin = DistanceMin, shipSpeedMax = maxSpeed, NAVTargetName = TargetName }; if (bGo) { wicoNavCommand.Command = CommandTypes.Waypoint; } else { wicoNavCommand.Command = CommandTypes.Orientation; } // sStartupError += "Adding NAV Commnd:"; // sStartupError += " Name=:" + wicoNavCommand.NAVTargetName; // sStartupError += " Loc=" + Vector3DToString(wicoNavCommand.vNavTarget); wicoNavCommands.Add(wicoNavCommand); }
void _NavQueueDock() { WicoNavCommand wicoNavCommand = new WicoNavCommand { pg = this, Command = CommandTypes.Dock }; wicoNavCommands.Add(wicoNavCommand); }
void _NavQueueOrbitalLaunch() { WicoNavCommand wicoNavCommand = new WicoNavCommand { pg = this, Command = CommandTypes.OrbitalLaunch }; wicoNavCommands.Add(wicoNavCommand); }