SDK Question Instruments are inactive

dumbo2007

Crazy about real time sims
Joined
Nov 29, 2009
Messages
675
Reaction score
0
Points
0
Location
India
Hi,

I am using the Orbiter beta version. I am using a vessel whose status has been set to landed at brighton beach. I connect it to a bullet physics vessel and then control its position via an attachment point.

I dont get why the bearing is not changing(also the Alt) in the ribbon on the top of the HUD when inside the car. I would have thought that the instruments would remain active even though the vessel is attached to another and marked as landed.

Making it active doesnt change the behavior:

Code:
//get vessel structure and set controlled VESSEL's state to landed
    VESSELSTATUS2 vs;
    memset(&vs, 0, sizeof(VESSELSTATUS2));
    vs.version = 2;

    vAttached->GetStatusEx(&vs);
    vs.status = 0;
    vAttached->DefSetStateEx(&vs);

I need to see the bearing to check if I am loading the vessel at the correct facing direction as mentioned in the scenario file, but it stays stuck at 90 and seems to be dead.

I dont want to set the status of the vessel as orbiting in the scn file as that puts it far out in space somewhere.

I also attached a main thruster and fired it and i can see the main thrust changing but the bearing ribbon at the top stays fixed at 90. Is it because my vessel is attached as a child to another parent ?

------------

will GetYaw() give me the correct bearing ?

------------

nope that too stays fixed at 90, darn attaching a vessel seems to completely de activate it !

-----------

ok I used another vessel nearby to get the bearing.

I have another question though, how do I prevent a vessel from getting written to the scenario file. Suppose I created the vessel dynamically and I do not want it written at all(so its not created automatically in the next run when the user starts the current scene).
 
Last edited:
Back
Top