vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Flock.C File Reference
#include <stdio.h>
#include <time.h>
#include "quat.h"
#include "vrpn_Flock.h"
#include "vrpn_Serial.h"
#include "vrpn_Tracker.h"
#include "vrpn_Types.h"
Include dependency graph for vrpn_Flock.C:

Go to the source code of this file.

Macros

#define STATUS_MSG
 
#define STATUS_MSG_SECS   600
 
#define GET_FREQ
 
#define WTF   (float)(1.0/32768.0) /* float to word integer */
 
#define poll()
 

Variables

class VRPN_API vrpn_Connection
 

Macro Definition Documentation

◆ GET_FREQ

#define GET_FREQ

◆ poll

#define poll ( )
Value:
{ \
char chPoint = 'B';\
fprintf(stderr,"."); \
if (vrpn_write_characters(serial_fd, (const unsigned char *) &chPoint, 1 )!=1) {\
perror("\nvrpn_Tracker_Flock: failed writing set mode cmds to tracker");\
status = vrpn_TRACKER_FAIL;\
return;\
} \
vrpn_gettimeofday(&timestamp, NULL);\
}
int vrpn_write_characters(int comm, const unsigned char *buffer, size_t bytes)
Write the buffer to the serial port.
Definition: vrpn_Serial.C:643
const int vrpn_TRACKER_FAIL
Definition: vrpn_Tracker.h:40

Definition at line 681 of file vrpn_Flock.C.

Referenced by vrpn_Tracker_Flock::send_report().

◆ STATUS_MSG

#define STATUS_MSG

Definition at line 27 of file vrpn_Flock.C.

◆ STATUS_MSG_SECS

#define STATUS_MSG_SECS   600

Definition at line 28 of file vrpn_Flock.C.

Referenced by vrpn_Tracker_Flock::send_report().

◆ WTF

#define WTF   (float)(1.0/32768.0) /* float to word integer */

Variable Documentation

◆ vrpn_Connection

Definition at line 24 of file vrpn_Flock.C.