koala_demo_client.c File Reference

Demo program to remote control the koala robot from a wireless ethernet link. The client reads events from a joystick and send network command to the remote Koala. More...

Include dependency graph for koala_demo_client.c:

Go to the source code of this file.

Defines

#define ACT_KOA   0
#define ACT_CAM1   1
#define ACT_CAM2   2
#define ACT_BOTH   3
#define leftspeed   50
#define rightspeed   50
#define maxspeed   120
#define RCVBUFSIZE   32

Functions

void handle_kill (int arg)
void handle_joyaxis (int number, int value, char *echoBuffer)
void handle_joybutton (int number, int value, char *echoBuffer)
int main (int argc, char *argv[])

Variables

int sendflag = 0
int timeflag = 0
int actionflag = 0
int sock


Detailed Description

Demo program to remote control the koala robot from a wireless ethernet link. The client reads events from a joystick and send network command to the remote Koala.

koala demo program (client side)

Author:
Pierre Bureau (K-Team SA)
Note:
Copyright (C) 2004 K-TEAM SA

Definition in file koala_demo_client.c.


Define Documentation

#define ACT_BOTH   3

Definition at line 38 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and handle_joybutton().

#define ACT_CAM1   1

Definition at line 36 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and handle_joybutton().

#define ACT_CAM2   2

Definition at line 37 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and handle_joybutton().

#define ACT_KOA   0

Definition at line 35 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and handle_joybutton().

#define leftspeed   50

Definition at line 50 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and thread().

#define maxspeed   120

Definition at line 52 of file koala_demo_client.c.

Referenced by handle_joyaxis().

#define RCVBUFSIZE   32

Definition at line 216 of file koala_demo_client.c.

#define rightspeed   50

Definition at line 51 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and thread().


Function Documentation

void handle_joyaxis ( int  number,
int  value,
char *  echoBuffer 
)

Definition at line 54 of file koala_demo_client.c.

References ACT_BOTH, ACT_CAM1, ACT_CAM2, ACT_KOA, actionflag, ksock_send_command(), left, leftspeed, maxspeed, right, rightspeed, sendflag, sock, and timeflag.

Referenced by main().

Here is the call graph for this function:

void handle_joybutton ( int  number,
int  value,
char *  echoBuffer 
)

Definition at line 149 of file koala_demo_client.c.

References ACT_BOTH, ACT_CAM1, ACT_CAM2, ACT_KOA, actionflag, ksock_send_command(), sendflag, sock, and timeflag.

Referenced by main().

Here is the call graph for this function:

void handle_kill ( int  arg  ) 

Definition at line 40 of file koala_demo_client.c.

References sock.

Referenced by main().

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

Definition at line 218 of file koala_demo_client.c.

References DieWithError(), fd, handle_joyaxis(), handle_joybutton(), handle_kill(), ksock_connect(), ksock_init(), RCVBUFSIZE, sendflag, sock, and timeflag.

Here is the call graph for this function:


Variable Documentation

int actionflag = 0

Definition at line 32 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and handle_joybutton().

int sendflag = 0

Definition at line 30 of file koala_demo_client.c.

Referenced by handle_joyaxis(), handle_joybutton(), and main().

int sock

int timeflag = 0

Definition at line 31 of file koala_demo_client.c.

Referenced by handle_joyaxis(), handle_joybutton(), and main().


Generated on Wed Dec 15 11:49:29 2010 for KoreBot Library by  doxygen 1.5.5