I'm developing a LGCIU code for the A320 at the moment. I was wondering if there is a way to delay a setprop? It takes two seconds for the nose gear doors to open and close, so I would like to delay the setprop(); of the nose landing gear property for two seconds.
For example:
- Code: Select all
gear_up(); #command gear up
setprop("/gear/NLG-doors","in-transit"); #doors begin to open
Wait two seconds
setprop("/gear/NLG-doors","open"); #set gear doors prop to open
The properties and code above are all fake; my code is more complex and uses proper property tree structure and setlisteners