From 1e5c61fcbd6f93c3d323efd0780cb32cb1f26f32 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 30 May 2000 17:01:09 +0000 Subject: [PATCH] Alex Perry has added support for Ray Woodworth's motion chair which has 3-5 axes installed. --- src/Main/fg_io.cxx | 4 + src/Main/options.cxx | 2 + src/Network/Makefile.am | 1 + src/Network/ray.cxx | 216 ++++++++++++++++++++++++++++++++++++++++ src/Network/ray.hxx | 60 +++++++++++ 5 files changed, 283 insertions(+) create mode 100644 src/Network/ray.cxx create mode 100644 src/Network/ray.hxx diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 42fa059c3..a54f4c0ca 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -84,6 +85,9 @@ static FGProtocol *parse_port_config( const string& config ) } else if ( protocol == "pve" ) { FGPVE *pve = new FGPVE; io = pve; + } else if ( protocol == "ray" ) { + FGRAY *ray = new FGRAY; + io = ray; } else if ( protocol == "rul" ) { FGRUL *rul = new FGRUL; io = rul; diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 2eac4f9a4..9222bf2f5 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -805,6 +805,8 @@ int fgOPTIONS::parse_option( const string& arg ) { parse_channel( "nmea", arg.substr(7) ); } else if ( arg.find( "--pve=" ) != string::npos ) { parse_channel( "pve", arg.substr(6) ); + } else if ( arg.find( "--ray=" ) != string::npos ) { + parse_channel( "ray", arg.substr(6) ); } else if ( arg.find( "--rul=" ) != string::npos ) { parse_channel( "rul", arg.substr(6) ); } else if ( arg.find( "--joyclient=" ) != string::npos ) { diff --git a/src/Network/Makefile.am b/src/Network/Makefile.am index 63a1dc0b4..3f200aea4 100644 --- a/src/Network/Makefile.am +++ b/src/Network/Makefile.am @@ -10,6 +10,7 @@ libNetwork_a_SOURCES = \ garmin.cxx garmin.hxx \ nmea.cxx nmea.hxx \ pve.cxx pve.hxx \ + ray.cxx ray.hxx \ rul.cxx rul.hxx \ joyclient.cxx joyclient.hxx diff --git a/src/Network/ray.cxx b/src/Network/ray.cxx new file mode 100644 index 000000000..749a9629b --- /dev/null +++ b/src/Network/ray.cxx @@ -0,0 +1,216 @@ +// ray.cxx -- "RayWoodworth" motion chair support +// +// Written by Alexander Perry, started May 2000 +// +// Copyright (C) 2000, Alexander Perry, alex.perry@ieee.org +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// +// $Id$ + + +#include +#include + +#include +#include