koala_lrf_demo.c File Reference

Obstacle avoidance program for the Koala robot, using the Led Range Finder. More...

Include dependency graph for koala_lrf_demo.c:

Go to the source code of this file.

Defines

#define device   "/dev/tts/2"
#define MAX_DIST   2000
#define RCVBUFSIZE   32

Functions

void * koa_lrf_task (void *arg)
void handle_kill (int arg)
int koa_net_stop (int argc, char *argv[])
int koa_net_setspeed (int argc, char *argv[])
int main (int argc, char *argv[])

Variables

int lrf
knet_dev_tkoala
int cmd_received = 0


Detailed Description

Obstacle avoidance program for the Koala robot, using the Led Range Finder.

Led Range Finder Demo

Author:
P.Bureau (K-Team SA)
Note:
Copyright (C) 2005 K-TEAM SA
Bug:
none discovered.
Todo:
Led Range Finder Demo

Author:
P.Bureau (K-Team SA)
Note:
Copyright (C) 2005 K-TEAM SA
Bug:
none discovered.
Todo:

Definition in file koala_lrf_demo.c.


Define Documentation

#define device   "/dev/tts/2"

Definition at line 17 of file koala_lrf_demo.c.

#define MAX_DIST   2000

Definition at line 19 of file koala_lrf_demo.c.

Referenced by koa_lrf_task().

#define RCVBUFSIZE   32

Definition at line 20 of file koala_lrf_demo.c.


Function Documentation

void handle_kill ( int  arg  ) 

Definition at line 128 of file koala_lrf_demo.c.

References kb_lrf_Close(), koa_setSpeed(), and lrf.

Here is the call graph for this function:

void* koa_lrf_task ( void *  arg  ) 

Definition at line 29 of file koala_lrf_demo.c.

References cmd_received, device, kb_lrf_DistanceData, kb_lrf_GetDistances(), kb_lrf_Init(), koa_setSpeed(), left, lrf, MAX_DIST, and right.

Referenced by main().

Here is the call graph for this function:

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

Definition at line 146 of file koala_lrf_demo.c.

References koa_setSpeed(), left, and right.

Here is the call graph for this function:

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

Definition at line 139 of file koala_lrf_demo.c.

References koa_setSpeed().

Here is the call graph for this function:

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


Variable Documentation

int cmd_received = 0

Definition at line 26 of file koala_lrf_demo.c.

Definition at line 24 of file koala_lrf_demo.c.

int lrf

Definition at line 23 of file koala_lrf_demo.c.

Referenced by handle_kill(), and koa_lrf_task().


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