]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/rul.cxx
UIUC flight model contribution. This is based on LaRCsim, but can read
[flightgear.git] / src / Network / rul.cxx
index 97f1e9eec1669634572b36eabbe1917686ca8219..718b181974993c0e1f8dec5ad7f389f2fbf75031 100644 (file)
 // $Id$
 
 
-#include <Debug/logstream.hxx>
+#include <simgear/debug/logstream.hxx>
+#include <simgear/math/fg_geodesy.hxx>
+
 #include <FDM/flight.hxx>
-#include <Math/fg_geodesy.hxx>
 #include <Time/fg_time.hxx>
 
 #include "iochannel.hxx"
@@ -39,7 +40,21 @@ FGRUL::~FGRUL() {
 }
 
 
-// generate Garmin message
+// "RUL" output format (for some sort of motion platform)
+//
+// The Baud rate is 2400 , one start bit, eight data bits, 1 stop bit,
+// no parity.
+//
+// For position it requires a 3-byte data packet defined as follows:
+//
+// First bite: ascII character "P" ( 0x50 or 80 decimal )
+// Second byte X pos. (1-255) 1 being 0* and 255 being 359*
+// Third byte Y pos.( 1-255) 1 being 0* and 255 359*
+//
+// So sending 80 127 127 to the two axis motors will position on 180*
+// The RS- 232 port is a nine pin connector and the only pins used are
+// 3&5.
+
 bool FGRUL::gen_message() {
     // cout << "generating rul message" << endl;
     FGInterface *f = cur_fdm_state;