c172p icon indicating copy to clipboard operation
c172p copied to clipboard

Add support for dual control

Open gilbertohasnofb opened this issue 9 years ago • 6 comments

Add support for dual control (sharing an aircraft over a network). See: http://wiki.flightgear.org/Dual_control

gilbertohasnofb avatar Mar 15 '15 04:03 gilbertohasnofb

@andgi Would you like to help?

onox avatar Jun 01 '15 16:06 onox

My time constraints and priorities are likely to prevent me.

I did add a dual control setup to the c172p once ( http://www.gidenstam.org/FlightGear/DualControl/ ) but it is far from complete and not in phase with my current practices (which still are crude and require a lot of work to get anywhere). It looked like you started of the the ZLT-NT dual control file and that is as good a file I can give you. There are (possibly bit-rotted) dual control enabled KX165 radios in Aircraft/Generic/DualControl/Instruments/KX165/ that might be useful. They also show a crude modulization for dual control configurations (which the radios from ZLT-NT also use).

andgi avatar Jun 01 '15 19:06 andgi

I have added this to the feature freeze milestone, but I'm not sure if it will be ready in time.

onox avatar Jun 02 '15 23:06 onox

Hi, is there any way I could help with this? I'm a noob, but I'd like to help.

inconstante avatar Feb 04 '18 17:02 inconstante

There's a dual-control branch that you could work from. However, I'm not sure the old way of dual control is the way to go. Maybe you could investigate whether Emesary (from Richard a.k.a. @Zaretto) can be used. Otherwise it's going to be HLA. HLA is still incomplete because of some missing component that the OpenRTI dev (implementation of HLA) is not releasing. Use the FG mailing list to contact / ask questions / put pressure on them.

onox avatar Feb 05 '18 06:02 onox

Using Emesary notifications locally and briding these over MP using the Emesary MP bridge is probably the easiest way to bring dual control to a craft.

Basically what you do is to change all of the pick animations that may directly modify properties to instead generate an Emesary notification that is sent locally using the built in GlobalTransmitter. This can then be handled by a suitably registered recipient.

To make this work over MP all that is needed is have an outgoing bridge and an incoming bridge in each model. These bridges connect together the two craft over MP in such a way that the notifications will simply appear in the other craft ready for handling by a suitably registered recipient.

It seems complex; and I probably should put together some more complete documentation on how to do this; but until I do I'm happy to answer questions and assist.

Zaretto avatar Feb 05 '18 07:02 Zaretto