Defines | Functions | Variables

joyd.cc File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/joystick.h>
#include <time.h>
#include <math.h>
#include <signal.h>
#include <roboorte_robottype.h>
#include <actuators.h>
#include "joyd.h"
Include dependency graph for joyd.cc:

Defines

#define JOY_DEV   "/dev/input/js0"
#define VMAX   16000
#define JOY_NAME   "Logitech Logitech Extreme 3D"

Functions

int open_joystick (char *name, int *num_of_axis, int *num_of_buttons)
void send_dummy_cb (const ORTESendInfo *info, void *vinstance, void *sendCallBackParam)
int main (int argc, char *argv[])

Variables

struct robottype_orte_data orte
int joy_fd

Define Documentation

#define JOY_DEV   "/dev/input/js0"
#define JOY_NAME   "Logitech Logitech Extreme 3D"
#define VMAX   16000

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

int open_joystick ( char *  name,
int *  num_of_axis,
int *  num_of_buttons 
)

Here is the caller graph for this function:

void send_dummy_cb ( const ORTESendInfo *  info,
void *  vinstance,
void *  sendCallBackParam 
)

Here is the caller graph for this function:


Variable Documentation

int joy_fd
struct robottype_orte_data orte