NikolaiVChr / f16

General Dynamics F-16 for Flightgear flight simulator
GNU General Public License v2.0
115 stars 36 forks source link

Buddy lasing #534

Open NikolaiVChr opened 1 year ago

NikolaiVChr commented 1 year ago

There is a delay with emesary, so you cannot just transmit positions, if its a moving target you have to transmit target IDs, if its a random locked place you have to transmit the GPS. And you have to transmit the laser code.

On the receiving end each munition have to have a laser code (which we could cheat and add to MFD). Or we could assign it a random code at startup, and you have have just mess with assigning lasers the right codes.

Then you have to find the target for the transmitted ID, and continously update the bomb (which is running in a seperate thread). This should probably be done from the radar code, as it has the info we need to find the target.

Then the bomb will have to take the GPS or Target it gets and replace its target with that. And decide which laser to follow if there is multiple with same code.

NikolaiVChr commented 1 year ago

223 is related