I need some to guide me to fix this.
I have run this 3 times with no CTD and then on the 4th. I get no source file found.
This is my Artemis.
Any clue on how to fix?
I can post the cpp,....
I was debugging by attaching to process.
But I tried to debug and get that is can't find it.
I was thinking it was in the load scn part. I commented out most and ctd of the 3 or 4 load.
and the scn:
I have run this 3 times with no CTD and then on the 4th. I get no source file found.
This is my Artemis.
Any clue on how to fix?
I can post the cpp,....
I was debugging by attaching to process.
But I tried to debug and get that is can't find it.
I was thinking it was in the load scn part. I commented out most and ctd of the 3 or 4 load.
Code:
void ARTEMIS2::clbkLoadStateEx(FILEHANDLE scn, void* status)
{
char* line;
int value;
while (oapiReadScenario_nextline(scn, line))
{
{
/*
if (!_strnicmp(line, "MODE", 4)) {
sscanf_s(line + 4, "%d", &value);
mode = (int)value;
}
else if (!_strnicmp(line, "FAIRING", 7)) {
fairing = 1;
}
else if (!_strnicmp(line, "BEACON", 6)) {
sscanf(line + 6, "%d", &BEACON);
}
else if (!_strnicmp(line, "CHAIR", 5)) {
sscanf(line + 5, "%d", &CHAIRDEPLOY);
}
else if (!_strnicmp(line, "BLOWNFAIRING", 12)) {
sscanf(line + 12, "%d", &BLOWNFAIRING);
}
else if (!_strnicmp(line, "HATCH", 5)) {
sscanf(line + 5, "%d %lf", &HATCH_status, &HATCH_proc);
}
else if (!_strnicmp(line, "TABLE", 5)) {
sscanf(line + 5, "%d %lf", &TABLE_status, &TABLE_proc);
}
else if (!_strnicmp(line, "PANELFOLD", 9)) {
sscanf(line + 9, "%d %lf", &SPANELFOLD_status, &SPANELFOLD_proc);
}
else if (!_strnicmp(line, "JOINT1", 6)) {
sscanf(line + 6, "%lf", &JOINT1_proc);
}
else if (!_strnicmp(line, "WING1ROTATE", 11)) {
sscanf(line + 11, "%lf", &WING1ROTATE_proc);
}
else if (!_strnicmp(line, "WING2ROTATE", 11)) {
sscanf(line + 11, "%lf", &WING2ROTATE_proc);
}
else if (!_strnicmp(line, "WING3ROTATE", 11)) {
sscanf(line + 11, "%lf", &WING3ROTATE_proc);
}
else if (!_strnicmp(line, "WING4ROTATE", 11)) {
sscanf(line + 11, "%lf", &WING4ROTATE_proc);
}
else if (!_strnicmp(line, "SOLP", 4)) {
sscanf(line + 4, "%d %lf %d %lf", &solp_status, &solp_proc, &solp_rot_status, &solp_rot_proc);
}
switch (mode) {
case 0:
SetConfig0_Ready();
break;
case 1:
SetConfig1_Orbit();
break;
case 2:
SetConfig2_Reentry();
break;
case 3:
SetConfig3_Drogue();
break;
case 4:
case 5:
SetConfig4_Chute();
break;
case 6:
SetConfig6_Land();
break;
case 10:
SetConfig10_Launch0();
break;
case 11:
SetConfig11_Launch1();
break;
}
*/
ParseScenarioLineEx(line, status);
}
// SetAnimation(anim_SPANELFOLD, SPANELFOLD_proc);
// SetAnimation(anim_HATCH, HATCH_proc);
// SetAnimation(anim_TABLE, TABLE_proc);
// SetAnimation(anim_SPANEL1ROTATE, WING1ROTATE_proc);
// SetAnimation(anim_SPANEL2ROTATE, WING2ROTATE_proc);
// SetAnimation(anim_SPANEL3ROTATE, WING3ROTATE_proc);
// SetAnimation(anim_SPANEL4ROTATE, WING4ROTATE_proc);
// SetAnimation(anim_SPANEL, JOINT1_proc);
}
}
Code:
BEGIN_DESC
Current scenario state
Contains the latest simulation state.
END_DESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 45285.7568112807
Context SpaceX
Help CurrentState_img
END_ENVIRONMENT
BEGIN_FOCUS
Ship Artemis2
END_FOCUS
BEGIN_CAMERA
TARGET Artemis2
MODE Extern
POS 5.236671 81.567956 -6.628279
TRACKMODE TargetRelative
FOV 40.00
END_CAMERA
BEGIN_HUD
TYPE Surface
END_HUD
BEGIN_MFD Left
TYPE Map
REF Earth
POS 0.00 0.00
END_MFD
BEGIN_MFD Right
TYPE Orbit
PROJ Frame
FRAME Ecliptic
REF Earth
END_MFD
BEGIN_SHIPS
Artemis2:ARTEMIS2
MODE 0
BEACON 0
BLOWNFAIRING 0
CHAIR 0
HATCH 0 0.0000
TABLE 0 0.0000
PANELFOLD 0 0.0000
JOINT1 0.5000
WING1ROTATE 0.5000
WING2ROTATE 0.5000
WING3ROTATE 0.5000
WING4ROTATE 0.5000
SOLP 0 0.000000 1 0.079275
STATUS Orbiting Earth
RPOS -6071932.655 -10.363 3500080.285
RVEL -3766.4366 -0.0039 -6533.5397
AROT 94.122 -78.271 175.790
AFCMODE 7
PRPLEVEL 0:1.000000 1:1.000000
NAVFREQ 0 0
XPDR 0
END
END_SHIPS
BEGIN_Attachment Manager
END
[\code]
Attachments
Last edited: