The C interface to interact with the cyberglove. More...
Go to the source code of this file.
Defines | |
#define | GLOVE_SIZE 22 |
#define | PORT "3490" |
Enumerations | |
enum | msg_id_t { MSG_TEST_CONNECTION = 100, MSG_UPDATE_SETPOINTS, MSG_GET_POSITIONS, MSG_RESTART_ROBOT, MSG_DATA_READY = 200, MSG_DATA_UNAVAILABLE } |
Functions | |
float * | glove_get_values (void) |
sample the glove values - need to call setup_glove first | |
int | read_button_value (void) |
int | setup_glove (const char *path_to_glove) |
The C interface to interact with the cyberglove.
Copyright 2011 Shadow Robot Company Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Definition in file serial_glove.h.
#define GLOVE_SIZE 22 |
Definition at line 40 of file serial_glove.h.
#define PORT "3490" |
Definition at line 39 of file serial_glove.h.
enum msg_id_t |
call the enum names directly as if they are defines the message protocol headers, for passing or requesting data, or for issuing commands
MSG_TEST_CONNECTION | |
MSG_UPDATE_SETPOINTS | |
MSG_GET_POSITIONS | |
MSG_RESTART_ROBOT | |
MSG_DATA_READY | |
MSG_DATA_UNAVAILABLE |
Definition at line 47 of file serial_glove.h.
float* glove_get_values | ( | void | ) |
sample the glove values - need to call setup_glove first
Definition at line 226 of file serial_glove.c.
int read_button_value | ( | void | ) |
Definition at line 187 of file serial_glove.c.
int setup_glove | ( | const char * | path_to_glove | ) |
Definition at line 205 of file serial_glove.c.