If you are an aircraft/plugin developer we should team up as parts of the sim are being used/controlled by both parties.
External power provided by jetways
From SAM 2.0.6 on SAM jetways support external power, if the scenery author activates it. All WorldJetways objects are enabled for external power by default.
Default logic: When the jetways gets connected to an aircraft, we set sim/cockpit/electrical/gpu_on to 1, on disconnect we switch it back to 0. We only do that once when the jetways connection gets triggered, not permanently.
Custom logic: If you're using a custom external power code you can synch that with the dataref sam/jetway/externalpower/on. The logic is the same like above mentioned. Additionally you should override sim/cockpit/electrical/gpu_on manipulation by setting sam/jetway/externalpower/override to 1.
Controlling jetway connections via API
SAM 2.0.8 introduces an API to connect and disconnect jetways to a specific door location. You can use it to connect jetways to static/AI aircrafts for example.
Disconnect jetway from door location: http://localhost:20205/jetway/disconnect?
Add the following mandatory attributes after "?" in the URL, each seperated by "&"
door world coordinate | |
y= | door world coordinate |
z= | door world coordinate |
psi= | aircraft heading |
door_psi= | door rotation relative to the aircraft heading |
door_location= | LF1 | LF2 | LU1 |
animate= | true | false -> if you need instant connections i.e. for initial startup sequence use false |
If you have any questions feel free to get in touch.