代码拉取完成,页面将自动刷新
同步操作将从 ianaxe/vrpn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef INCLUDED_DYNA
#define INCLUDED_DYNA
#include "vrpn_Configure.h" // for VRPN_API
#include "vrpn_Serial.h"
#include "vrpn_Tracker.h" // for vrpn_Tracker_Serial
class VRPN_API vrpn_Connection;
// only 13 receivers allowed in normal addressing mode
#define VRPN_DYNA_MAX_SENSORS 13
// This is a class which provides a server for an ascension
// DynaSight. The server will send out messages
// The timestamp is the time when the first character was read
// from the serial driver with "read". No adjustment is currently
// made to this time stamp.
// If this is running on a non-linux system, then the serial port driver
// is probably adding more latency -- see the vrpn README for more info.
class VRPN_API vrpn_Tracker_Dyna: public vrpn_Tracker_Serial {
private:
unsigned reportLength;
unsigned totalReportLength;
public:
vrpn_Tracker_Dyna(char *name, vrpn_Connection *c, int cSensors=1,
const char *port = "/dev/ttyd3", long baud = 38400);
virtual ~vrpn_Tracker_Dyna();
private:
void my_flush() {
// clear the input data buffer
unsigned char foo[128];
while (vrpn_read_available_characters(serial_fd, foo, 1) > 0) ;
}
int valid_report();
int decode_record();
int get_status();
protected:
virtual int get_report(void);
virtual void reset();
void printError(unsigned char uchErrCode, unsigned char uchExpandedErrCode);
int checkError();
int cResets;
int cSensors;
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。