Board index FlightGear Support Interfacing

Generic Protocol

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

Generic Protocol

Postby bill516 » Thu Apr 02, 2020 12:28 pm

This is really getting me down.

I have tried two protocol files, one works the other doesnt. Just to make it more confusing one is a copy and paste of the other with just a name change and saved as *.xml.

copy file named arg.xml . I called it arg because thats what I said when it didnt work
Code: Select all
<?xml version="1.0"?>

<PropertyList>

 </comment>

 <generic>
  <output>
   <line_separator>\n</line_separator>
   <var_separator>,</var_separator>
 
   <chunk>
    <name>roll-deg</name>
    <type>integer</type>
    <format>%d,</format>
    <node>/instrumentation/attitude-indicator/indicated-roll-deg</node>
   </chunk>
   

    <chunk>
    <name>pitch-deg</name>
    <type>integer</type>
    <format>%d,</format>
    <node>/instrumentation/attitude-indicator/indicated-pitch-deg</node>
   </chunk>
   
  </output>

 </generic>

</PropertyList>



original file d/ld from internet called artificial_horizon.xml

Code: Select all
<?xml version="1.0"?>

<PropertyList>

 </comment>

 <generic>
  <output>
   <line_separator>\n</line_separator>
   <var_separator>,</var_separator>
 
   <chunk>
    <name>roll-deg</name>
    <type>integer</type>
    <format>%d,</format>
    <node>/instrumentation/attitude-indicator/indicated-roll-deg</node>
   </chunk>
   

    <chunk>
    <name>pitch-deg</name>
    <type>integer</type>
    <format>%d,</format>
    <node>/instrumentation/attitude-indicator/indicated-pitch-deg</node>
   </chunk>
   
  </output>

 </generic>

</PropertyList>


Has anybody got a clue what gives. I have tried both windows and linux ubuntu 18 with the same results even creating the files in windows and copying to linux and vica-versa

Bill
Last edited by Johan G on Thu Apr 02, 2020 5:12 pm, edited 2 times in total.
Reason: Added [code] tags. They can be added manually or with the blue and white [^_ ] button above the text editing box.
bill516
 
Posts: 8
Joined: Tue Jun 25, 2019 4:20 pm

Re: Generic Protocol

Postby bill516 » Thu Apr 02, 2020 1:54 pm

SOLVED

I managed to get a renamed file to read by copying it to the desktop, renaming it then moving into the protocol folder.

Happy chappie

Bill
bill516
 
Posts: 8
Joined: Tue Jun 25, 2019 4:20 pm


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest