Board index FlightGear Support Interfacing

receiving GPS data of different missiles

Connecting two computers, using generic protocol, connecting with Matlab?

receiving GPS data of different missiles

Postby emrcnort » Thu Apr 23, 2020 1:05 pm

Hello to everyone,

I created a general protocol for receiving GPS data of the missile launched from the F14-B type fighter.
However, this protocol serves to receive only one of the missile data launched in turn.
As soon as the second missile is launched, the GPS data of the two missiles are mixed.

Is there a way to get flight data of each launched missile separately?


here is the protocol file I wrote to get the missile data:
Code: Select all
<?xml version="1.0"?>
 <PropertyList>
 <generic>
 
    <output>
      <line_separator>newline</line_separator>
      <var_separator>newline</var_separator>
      <binary_mode>false</binary_mode>
 
   
     <chunk>
           <name>latitute to go</name>
         <type>double</type>
           <format>%f</format>
         <node>logging/missile/latitude-deg</node>
         </chunk>
      
        <chunk>
           <name>longitude to go</name>
         <type>double</type>
           <format>%f</format>
         <node>logging/missile/longitude-deg</node>
         </chunk>
      
      
         <chunk>         
           <name>altitude to go</name>
         <type>double</type>
           <format>%f</format>      
           <node>logging/missile/altitude-ft</node>         
         </chunk>
      
   </output>
 
 </generic>
 </PropertyList>


--generic=socket,out,100,localhost,6789,udp,my_protocol
emrcnort
 
Posts: 21
Joined: Thu Oct 17, 2019 11:19 pm
Version: 2019.1.1
OS: Windows 10

Re: receiving GPS data of different missiles

Postby Necolatis » Thu Apr 23, 2020 7:17 pm

Go in the fox2.nas where the properties are logged, and change it so that it logs to property[me.ID] instead of just property

me.ID is dependant on which pylon you fire the missile from, so they will have unique properties that way
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: receiving GPS data of different missiles

Postby emrcnort » Thu Apr 23, 2020 9:58 pm

I guess I couldn't fully explain what I wanted to do. sorry for missing information.

I want to get the flight data of each missile launched from the aircraft (2 missiles are enough for now) via a different port.
In this way, I can send GPS data of each missile to a different application instantly via a different port.

I can seamlessly send the data of the first missile through port 6789. However, when the second missile is launched from the same aircraft, I should be able to send GPS data for the second missile without problems over a different port.
emrcnort
 
Posts: 21
Joined: Thu Oct 17, 2019 11:19 pm
Version: 2019.1.1
OS: Windows 10

Re: receiving GPS data of different missiles

Postby Necolatis » Thu Apr 23, 2020 10:06 pm

Not sure how to open a second port, somebody else might know.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: receiving GPS data of different missiles

Postby emrcnort » Fri Apr 24, 2020 5:31 pm

so do you know another way to get the data separately? I would appreciate if you are a little more descriptive.
I will consider your advice on this matter.
emrcnort
 
Posts: 21
Joined: Thu Oct 17, 2019 11:19 pm
Version: 2019.1.1
OS: Windows 10

Re: receiving GPS data of different missiles

Postby wlbragg » Fri Apr 24, 2020 6:03 pm

Not sure how to open a second port,

You can't simply duplicate steps to open the first port but change port numbers and protocol files?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5596
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest