-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforce_api.h
57 lines (49 loc) · 1.62 KB
/
force_api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef FORCE_API_H
#define FORCE_API_H
/**
* @desc force_recognize() - recognizes data got from Force
* @return Code of gesture
*/
PyObject *force_recognize(PyObject *self, PyObject *args);
/**
* @desc force_open() - Opens force on port
* @param port, string
* @return nothing
*/
PyObject *force_open(PyObject *self, PyObject *args);
/**
* @desc force_close() - Closes port
* @param no arguments
* @return nothing
*/
PyObject *force_close(PyObject *self, PyObject *args);
/**
* @desc force_get_gyro() - returns tuple(s) of gyro data
* @param no arguments
* @return - 3-dimension tuple if one amount of data available
* - tuple of 3-dimension tuples if more than one amount of data
* available
*/
PyObject *force_get_gyro(PyObject *self, PyObject *args);
/**
* @desc force_get_accel() - returns tuple(s) of accelerometer data
* @param no arguments
* @return - 3-dimension tuple if one amount of data available
* - tuple of 3-dimension tuples if more than one amount of data
* available
*/
PyObject *force_get_accel(PyObject *self, PyObject *args);
/**
* @desc force_gyro_count() - returns count of gyro data available
* @param no arguments
* @return count of data available
*/
PyObject *force_gyro_count(PyObject *self, PyObject *args);
/**
* @desc force_gyro_count() - returns count of accelerometer data
* available
* @param no arguments
* @return count of data available
*/
PyObject *force_accel_count(PyObject *self, PyObject *args);
#endif