varan112 Posted August 4, 2017 Share Posted August 4, 2017 Since a few months, I'm trying to create a little app which will control an A330MRTT (military tanker version of the a330). I've only one little (or big) problem... Actually, I want to get down the refueling bar (it's controlled by the CANOPY OPEN command) but when I push on the key, the setDataOnSimObject function works and just after, the bar get up without my intervention... The problem isn't caused by an indentation mistake because I use an "if true" model and in my consol, it's well printed that there is no problem like that... I also tried to control the canopy of the user aircraft (with only the possibility to open it, not close) but the canopy has been closed directly... I also saw that when I want to use a variable which needs an index, the setDataOnSimObject function doesn't works... the RequestDataOnSimObject replies that 0 has send as data but I only changed CANOPY OPEN variable to EXIT OPEN:1... Can someone help me? Link to comment Share on other sites More sharing options...
evm Posted August 4, 2017 Share Posted August 4, 2017 Hi, try to use Events instead of SetDataOnSimobject, in this case "TOGGLE_AIRCRAFT_EXIT". And make sure that there isn't something else controlling the same thing. For example, if there is a gauge in the aircraft controlling the refuelling boom, it would interfere with your app. If you are trying to take influence over the aircraft as an AI, these effects are normal. You may have to constantly repeat the Setter or the Event to keep the doors open, because the simulator AI logic wants to keep it "closed". Same goes for lights and gear, unless you uncouple the AI from the simulator control - or use events/variables that are not part of the standard AI repertoire (which is doors, gear, lights, control surfaces, electrical and hydraulic systems). Link to comment Share on other sites More sharing options...
varan112 Posted August 5, 2017 Author Share Posted August 5, 2017 Oh yes, it works! I didn't see that there was this function and I didn't understand how to use the event's id... This ways is the one that I want, I thank you a lot! Yes, I was thinking too that the simulator was closing doors automatically (it's normal) but even when I inserted a "release control" function, it didn't work as well... Ok, I thank you again ;) Link to comment Share on other sites More sharing options...
varan112 Posted August 5, 2017 Author Share Posted August 5, 2017 Oh yes, it works with the event's way! To be honest, I didn't understand how works the event's... Yes, I was thinking about the automatic control of the aircraft by the simulator too so I added a "release control" function but it didn't work as well... I thank you a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.