Hi guys,

I have made a few changes to the network code, basically adding in my own
class (derived from nmea/opengc) to be able to send my custom data to the
serial port for driving analog gauges on my instrument panel with.

I have attached the two files here that i have added, and cut and paste the
sections of other files where i have added bits. Basically just the parsing
on startup bits.

Would someone be able to add this to the code base for me? This is not
likely
to change very much, so i dont think i need write cvs access, as its only
for
my project and reorders bits that are already there.

I have also attached the 2 modified makefiles in the Network directory.

If there is a better way of doing this, that would be good, but it will most
likely be a oneoff add so that i can keep using future releases.

I am also working on getting the data for my universitys aircraft design to
 be able to add that in as well sometime.

Thanks

Tim Jelliffe

****************************

src/Main/fg_io.cxx


#include <Network/f1serial.hxx>

*** at line 155 or so
} else if ( protocol == "ray" ) {
    FGRAY *ray = new FGRAY;
    io = ray;
} else if ( protocol == "rul" ) {
    FGRUL *rul = new FGRUL;
    io = rul;
} else if ( protocol == "f1serial" ){
FGF1SERIAL *f1serial = new FGF1SERIAL;
io = f1serial;
} else {
    return NULL;
}
**** add in the f1serial lines, the rest is to show the place

****************************

src/Main/options.cxx


*** at about line 930 or so

    } else if ( arg.find( "--rul=" ) == 0 ) {
add_channel( "rul", arg.substr(6) );
    } else if ( arg.find( "--joyclient=" ) == 0 ) {
add_channel( "joyclient", arg.substr(12) );
    } else if ( arg.find( "--f1serial=" ) == 0 ) {
add_channel( "f1serial", arg.substr(11) );

**************

-------------------------------------------------------


Attachment: f1serial.cxx
Description: Binary data

Attachment: f1serial.hxx
Description: Binary data

Attachment: Makefile.am
Description: Binary data

Attachment: Makefile.in
Description: Binary data

Reply via email to