vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
vrpn_Adafruit.h
Go to the documentation of this file.
1#pragma once
2
3#include <vrpn_Configure.h>
4#include <vrpn_Analog.h>
5#include <string>
6
7#ifdef VRPN_USE_I2CDEV
8
9class vrpn_Adafruit_10DOF: public vrpn_Analog_Server
10{
11public:
12 vrpn_Adafruit_10DOF(std::string const &name,
14 std::string const &device = "/dev/i2c-1",
15 double read_interval_seconds = 10e-3);
16 ~vrpn_Adafruit_10DOF();
17
18 virtual void mainloop();
19
20protected:
21 int d_i2c_dev; //< File opened to read and write to device
22 double d_read_interval_seconds;
23};
24
25#endif
26
virtual void mainloop()
For this server, the user must normally call report() or report_changes() directly....
class VRPN_API vrpn_Connection
Definition vrpn_3Space.h:7