#include <FDM/flight.hxx>
#include "protocol.hxx"
-#include "raw_fdm.hxx"
+#include "net_fdm.hxx"
class FGNativeFDM : public FGProtocol, public FGInterface {
- FGRawFDM buf;
+ FGNetFDM buf;
int length;
public:
};
+// Helper functions which may be useful outside this class
+
+// Populate the FGNetFDM structure from the property tree.
+void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order = true );
+
+// Update the property tree from the FGNetFDM structure.
+void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order = true );
+
+// Do some ultra simplistic extrapolation for times when a network
+// packet get's dropped or delayed.
+//
+// If a valid net structure is passed in, just record the last
+// position/orientation. If NULL is passed in, use the most recent
+// deltas to predict the new position.
+void FGNativeFDMSmooth( FGNetFDM *net );
+
+
#endif // _FG_NATIVE_FDM_HXX