Did it work for you?
I kinda have moved on. Done about what I can do.
I kinda have moved on. Done about what I can do.
ATMPRESSURE = GetAtmPressure();
if (ATMPRESSURE >.1)//in atmosphere so use control surfaces
{
//EnableRCS(true);
SetADCtrlMode(7);//set control surface enable
(SetAttitudeMode(0));//no rcs
}
else {
//in space
SetADCtrlMode(0);//disable control surfaces
(SetAttitudeMode(1));
(SetAttitudeMode(2));
}
if (USEIUS == 1){
char cbuf[255];
//tilt of ase/IUS
//sprintf(oapiDebugString(), " tipx %f tipy %f tipz %f", arm1_tip[1].x, arm1_tip[1].y, arm1_tip[1].z);
// if (tilt == 1)tiltvalue = .6; //first step
// if (tilt == 3)tiltvalue = 1.0; //2nd step
//phi = phi + .001;//move up second step
// if (tilt == 1) phi = (phi + .001);//move up
// if (tilt == 2) phi = (phi - .001);//move down
// if (tilt == 4) phi = (phi + .001);//move down
if ((tilt == 1) && (phi < tiltvalue)){
sprintf(cbuf, "IUS moving to first stop");
skp->Text(hps->W / 3, hps->H / 5, cbuf, strlen(cbuf));
}
if (tilt == 3) {
sprintf(cbuf, "IUS at first stop");
skp->Text(hps->W / 3, hps->H / 5, cbuf, strlen(cbuf));
}
if ((tilt == 4) && (phi < tiltvalue)) {
sprintf(cbuf, "IUS moving to second stop");
skp->Text(hps->W / 3, hps->H / 5, cbuf, strlen(cbuf));
}
if (tilt == 5) {
sprintf(cbuf, "IUS ready to deploy");
skp->Text(hps->W / 3, hps->H / 5, cbuf, strlen(cbuf));
}
if (GetAttachmentStatus(sat_attach))//ius deployed so clear ius info
sprintf(cbuf, " ");
skp->Text(hps->W / 3, hps->H / 5, cbuf, strlen(cbuf));
}
**** Orbiter.log
000000.000: Build Aug 28 2016 [v.160828]
000000.000: Timer precision: 3.66536e-007 sec
000000.000: Found 0 joystick(s)
000000.000: Module AtlantisConfig.dll .... [Build 160828, API 160828]
000000.000: Module AtmConfig.dll ......... [Build 160828, API 160828]
000000.000: Module DGConfigurator.dll .... [Build 160828, API 160828]
000000.000: ---------------------------------------------------------------
BaseDir : D:\Orbiter\OShuttle16\
ConfigDir : D:\Orbiter\OShuttle16\Config\
MeshDir : D:\Orbiter\OShuttle16\Meshes\
TextureDir : D:\Orbiter\OShuttle16\Textures\
HightexDir : D:\Orbiter\OShuttle16\Textures2\
ScenarioDir: D:\Orbiter\OShuttle16\Scenarios\
000000.000: ---------------------------------------------------------------
000000.000: Module D3D9Client.dll ........ [Build 190225, API 160828]
000000.000: Module TrackIR.dll ........... [Build 160828, API 160828]
000000.000: TrackIR module not found.
000000.000: Module CustomMFD.dll ......... [Build 160828, API 160828]
000000.000: Module LuaMFD.dll ............ [Build 160828, API 160828]
000000.000: Module transx.dll ............ [Build 160216, API 160214]
000000.000: Module Orbits.dll ............ [Build 160704, API 160703]
000000.000: Module LuaConsole.dll ........ [Build 160828, API 160828]
000000.000: Module ScriptMFD.dll ......... [Build 160828, API 160828]
000000.000: Module ExtMFD.dll ............ [Build 160828, API 160828]
000000.000: Module ScnEditor.dll ......... [Build 100830, API 100830]
000000.000: Module Attachment Manager.dll [Build ******, API 060425]
000000.000: Module AutoFCS.dll ........... [Build ******, API 050206]
000000.000: Module Multistage2015_MFD.dll [Build 170626, API 160828]
000000.000: Module universalParachute.dll [Build ******, API 060425]
000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: oapiRegisterMFDMode
000000.000: At least one active module is accessing an obsolete interface function.
000000.000: Addons which rely on obsolete functions may not be compatible with
000000.000: future versions of Orbiter.
000000.000: ---------------------------------------------------------------
000000.000: Module XRSound.dll ........... [Build 180309, API 160828]
000000.000:
000000.000: **** Creating simulation session
000000.000: D3D9: [DirectX 9 Initialized]
000000.000: D3D9: [3DDevice Initialized]
000000.000: D3D9: [Loading Constellations]
000000.000: D3D9: [D3D9Client Initialized]
000000.000: Module Sun.dll ............... [Build 160828, API 160828]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 160828, API 160828]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 160828, API 160828]
000000.000: Module VenusAtm2006.dll ...... [Build 160828, API 160828]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 160828, API 160828]
000000.000: Module EarthAtmNRLMSISE00.dll [Build 160828, API 160828]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 160828, API 160828]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 160828, API 160828]
000000.000: Module MarsAtm2006.dll ....... [Build 160828, API 160828]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 160828, API 160828]
000000.000: Module Jupiter.dll ........... [Build 160828, API 160828]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 160828, API 160828]
000000.000: Module Europa.dll ............ [Build 160828, API 160828]
000000.000: Module Ganymede.dll .......... [Build 160828, API 160828]
000000.000: Module Callisto.dll .......... [Build 160828, API 160828]
000000.000: Module Satsat.dll ............ [Build 160828, API 160828]
000000.000: Module Saturn.dll ............ [Build 160828, API 160828]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 160828, API 160828]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 160828, API 160828]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 160828, API 160828]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 160828, API 160828]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 160828, API 160828]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 160828, API 160828]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 160828, API 160828]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 160828, API 160828]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 160828, API 160828]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module Multistage2015.dll .... [Build 170626, API 160828]
000000.000: Multistage Version: 170506
000000.000: Load State Started
000000.000: ET-25: Guidance File present: Config\Multistage2015\Guidance\STS-51-L_(Challenger).txt
000000.000: ET-25: Sound found @step 1
000000.000: ET-25: Orbit Call Found! Targets: Apogee:228000.0 Perigee:105000.0 Inclination:-28.4 Mode:-1.0 GT initial Pitch: 0.0 Abside:105000.0
000000.000: ET-25: Config File: A:\Orbiter\OShuttle16\Config\Multistage2015\STS-51-L.ini
000000.000: ET-25: Number of stages in the ini file: 1
000000.000: ET-25: Number of boosters group in the ini file: 1
000000.000: ET-25: Number of Payloads in the ini file: 1
000000.000: ET-25: Thrust in Real Position
000000.000: ET-25: Texture n.1 Loaded Exhaust_atsme
000000.000: ET-25: Texture n.2 Loaded solidfuel_exhaust
000000.000: ET-25: Texture n.3 Loaded contrail4
000000.000: ET-25: Texture n.4 Loaded contrail
000000.000: ET-25: Texture n.5 Loaded contrailSRBA
000000.000: ET-25: booster n. 1 Tank Added: 1006974.000 kg
000000.000: ET-25: Stage n. 1 Tank Added: 728715.230 kg
000000.000: ET-25: Stage n. 1 Engines Exhaust Added--> number of engines: 3 , diameter: 2.000, position x: -1.600 y: 7.930 z: -27.880
000000.000: ET-25: Stage n. 1 Engines Exhaust Added--> number of engines: 3 , diameter: 2.000, position x: 1.600 y: 7.930 z: -27.880
000000.000: ET-25: Stage n. 1 Engines Exhaust Added--> number of engines: 3 , diameter: 2.000, position x: 0.000 y: 11.330 z: -27.030
000000.000: ET-25: Booster Group n.1 Engine Exhaust Stream Added: solidfuel_exhaust to engine n.1
000000.000: ET-25: Booster Group n.1 Engine Exhaust Stream Added: contrail4 to engine n.1
000000.000: ET-25: Booster Engines Exhaust Added--> Booster Group: 1 number of engines: 1 , diameter: 2.200, position x: 5.800 y: 0.000 z: -33.786
000000.000: ET-25: Booster Group n.1 Engine Exhaust Stream Added: solidfuel_exhaust to engine n.2
000000.000: ET-25: Booster Group n.1 Engine Exhaust Stream Added: contrail4 to engine n.2
000000.000: ET-25: Booster Engines Exhaust Added--> Booster Group: 1 number of engines: 1 , diameter: 2.200, position x: -5.800 y: 0.000 z: -33.786
000000.000: ET-25: Stage n.1 Mesh Preloaded: Atlantis_tank
000000.000: ET-25: Stage n.1 Mesh Added Mesh: Atlantis_tank @ x:-0.050 y:0.000 z:0.000
000000.000: ET-25: Booster Mesh Preloaded: 2016spaceshuttle\booster\rsrm_1
000000.000: ET-25: Booster Mesh Added Mesh: 2016spaceshuttle\booster\rsrm_1 @ x:6.000 y:0.000 z:-11.286
000000.000: ET-25: Booster Mesh Preloaded: 2016spaceshuttle\booster\rsrm_2
000000.000: ET-25: Booster Mesh Added Mesh: 2016spaceshuttle\booster\rsrm_2 @ x:-6.000 y:0.000 z:-11.286
000000.000: Load State Terminated
000000.000: Module EmptyModule.dll ....... [Build 170626, API 160828]
000000.000: Module MS_Camera.dll ......... [Build 170626, API 160828]
000000.000: MS_Camera: Target Vessel Loaded->ET-25
000000.000: Module SPACESHUTTLE2016D.dll . [Build 181218, API 160828]
============================ ERROR: ===========================
Mesh not found: .\Meshes\2016SPACESHUTTLE\Discovery\DiscoveryORG2016f.msh
[MeshManager::LoadMesh | .\Mesh.cpp | 1238]
===============================================================
000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: VESSEL::CreateVariableDragElement
000000.000: At least one active module is accessing an obsolete interface function.
000000.000: Addons which rely on obsolete functions may not be compatible with
000000.000: future versions of Orbiter.
000000.000: ---------------------------------------------------------------
000000.000: Module spacecraft3.dll ....... [Build ******, API 060425]
000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: VESSEL::SetBankMomentScale
000000.000: At least one active module is accessing an obsolete interface function.
000000.000: Addons which rely on obsolete functions may not be compatible with
000000.000: future versions of Orbiter.
000000.000: ---------------------------------------------------------------
000000.000: Module Spacecraft4.dll ....... [Build 151223, API 100830]
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
000000.000: D3D9: [Scene Initialized]
000000.000: Post Creation Started
000000.000: ET-25: Gravity Turn Initial Pitch by user: 0.000 Calculated:71.000
000000.000: RESET PEG
000000.000: ET-25: Planet Reference Pressure = 101325.0 Pa Atmosphere Altitude Limit:2500.0 km
000000.000: Post Creation Terminated
000000.000: oapi::Module::clbkSimulationStart
000000.000: Finished initialising panels