代码拉取完成,页面将自动刷新
同步操作将从 ianaxe/vrpn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// vrpn_Tracker_Isotrak.h
// This file contains the code to operate a Polhemus Isotrack Tracker.
// This file is based on the vrpn_Tracker_Fastrack.C file, with modifications made
// to allow it to operate a Isotrack instead. The modifications are based
// on the old version of the Isotrack driver.
// This version was written in the Spring 2006 by Bruno Herbelin.
#ifndef VRPN_TRACKER_ISOTRAK_H
#define VRPN_TRACKER_ISOTRAK_H
#include <stdio.h> // for NULL
#include "vrpn_Configure.h" // for VRPN_API
#include "vrpn_Shared.h" // for timeval
#include "vrpn_Tracker.h" // for vrpn_Tracker_Serial
class VRPN_API vrpn_Button_Server;
class VRPN_API vrpn_Connection;
const int vrpn_ISOTRAK_MAX_STATIONS = 2; // How many stations can exist
class VRPN_API vrpn_Tracker_Isotrak: public vrpn_Tracker_Serial {
public:
/// The constructor is given the name of the tracker (the name of
/// the sender it should use), the connection on which it is to
/// send its messages, the name of the serial port it is to open
/// (default is /dev/ttyS1 (first serial port in Linux)), the baud
/// rate at which it is to communicate (default 19200), whether
/// filtering is enabled (default yes), and the number of stations
/// that are possible on this Fastrak (default 4). The station select
/// switches on the front of the Fastrak determine which stations are
/// active. The final parameter is a string that can contain additional
/// commands that are set to the tracker as part of its reset routine.
/// These might be used to set the hemisphere or other things that are
/// not normally included; see the Fastrak manual for a list of these.
/// There can be multiple lines of them but putting <CR> into the string.
vrpn_Tracker_Isotrak(const char *name, vrpn_Connection *c,
const char *port = "/dev/ttyS1", long baud = 19200,
int enable_filtering = 1, int numstations = vrpn_ISOTRAK_MAX_STATIONS,
const char *additional_reset_commands = NULL);
~vrpn_Tracker_Isotrak();
/// Add a stylus (with button) to one of the sensors.
int add_stylus_button(const char *button_device_name, int sensor);
protected:
virtual int get_report(void);
virtual void reset();
struct timeval reset_time;
int do_filter; //< Should we turn on filtering for pos/orient?
int num_stations; //< How many stations maximum on this Isotrak?
int num_resets; //< How many resets have we tried this time around?
char add_reset_cmd[2048]; //< Additional reset commands to be sent
int set_sensor_output_format(int sensor);
// An Isotrak can have stylus's with buttons on them
vrpn_Button_Server *stylus_buttons[vrpn_ISOTRAK_MAX_STATIONS];
private:
void process_binary();
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。