Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

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:

Include dependency graph

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 /* Size of receive buffer */

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().

#define maxspeed   120
 

Definition at line 52 of file koala_demo_client.c.

Referenced by handle_joyaxis(), and kmot_SetSpeedProfile().

#define RCVBUFSIZE   32 /* Size of receive buffer */
 

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().


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.

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.

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(), 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
 

Definition at line 33 of file koala_demo_client.c.

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

int timeflag = 0
 

Definition at line 31 of file koala_demo_client.c.

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


Generated on Thu Nov 17 15:39:02 2005 for KoreBot Library by doxygen 1.3.7