I found a bug with the docking camera view. The camera should be rotated 180 degrees from its current orientation. I tried SetCameraDefaultDirection(_V(0,1, 0), 180*RAD), but that didn't make any difference.
Thanks! It hasn't been easy to get the RSS lined up just right, but I think(and hope as the real final test will be in Orbiter) I got it right this time.DaveS: Looks really good that way!![]()
while (oapiReadScenario_nextline (scn, line)) {
if (!strnicmp (line, "OAA", 3)) {
sscanf (line+3, "%d%lf", &OAA_status, &OAA_proc);
} else if (!strnicmp (line, "GVA", 3)) {
sscanf (line+3, "%d%lf", &GVA_status, &GVA_proc);
} else if (!strnicmp (line, "RSS", 3)) {
sscanf (line+3, "%d%lf", &RSS_status, &RSS_proc);
} else {
ParseScenarioLineEx (line, vs);
}
}
That makes sense. I learned something new, so thanks!Daves: Try parsing the lines like that:
As you can see, I only changed some numbers. 3 is the length of the parameter. In strnicmp, the 3 is the length of the string that gets compared (only the first three characters). In sscanf, it is the distance from the usual beginning of the string, meaning it should start searching for numbers with the 3+1 = fourth character.
The excessive white spaces are ignored by sscanf, but if your offset is a bit too high, like you had it, you start searching for a int parameter directly behind the int parameter.
That is quite deliberate because it improves stability at 10x to 100x time acceleration. Previously, the firing settings were more similar to what you describe and I had some code to disable attitude control at 10x or greater time acceleration. Overall though, I find V3.2 is more fuel efficient than V3, especially when tracking a rotating vector, eg velocity vector or rendezvous target.AttitudeMFD seems to be constantly firing thrusters at very low levels, whereas SSU fires thrusters at higher levels, but only when attitude goes out of limits.
I found a bug with the docking camera view. The camera should be rotated 180 degrees from its current orientation. I tried SetCameraDefaultDirection(_V(0,1, 0), 180*RAD), but that didn't make any difference.
Ok, but no need to rush you it will be nice to see a mid-deck, but you guys keep on working on the flightdeck. Looks great by the way.ryan: I don't think we'll do a middeck in the near future. We already have lots of things to do on the flightdeck.
amalahama: Can you post the compiler errors?
I vote making the mission class contain the flight plan.On the mission file format, should the Mission class contain the flight plan or do we want to do the more formal plan and make the Flight plan a separate class?
I currently defined only some information on keeping track with the changes of a Mission (Revision/Branch) and Loading/saving, as well as the proposed launch time as MJD. For rendezvous missions, this launch time should be set dynamic - the countdown holds are calculated based on the proposed launch time, but the actually ending of the final hold gets synced with the orbit plane pass of the target.
How soon to get a working build to try out ? Also, should it be put over virgin Orbiter ?