Classes | Defines | Typedefs | Functions

mcl_laser.h File Reference

#include <mcl.h>
#include <mcl_robot.h>
#include <stdint.h>
#include "mcl_dim.h"
Include dependency graph for mcl_laser.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  mcl_laser_state
struct  mcl_laser_measurement
struct  mcl_laser

Defines

#define mcl_to_laser(mcl)   (struct mcl_laser*)((mcl)->priv)
#define MCL_LASER_MAX_MEASURE   10

Typedefs

typedef double mcl_thetas [BEACON_CNT]

Functions

struct mcl_modelmcl_laser_init (struct mcl_laser *l, unsigned count)
double mcl_beacon_angle (const struct mcl_laser_state *part, unsigned char color)
void mcl_pos2ang (const struct mcl_laser_state *part, mcl_thetas theta, unsigned char cnt, unsigned char color)
 Convert the position to angles between robot's head and reflectors (angles sense is counter-clockwise).

Define Documentation

#define MCL_LASER_MAX_MEASURE   10
#define mcl_to_laser (   mcl  )     (struct mcl_laser*)((mcl)->priv)

Typedef Documentation

typedef double mcl_thetas[BEACON_CNT]

Function Documentation

double mcl_beacon_angle ( const struct mcl_laser_state part,
unsigned char  color 
)

Here is the caller graph for this function:

struct mcl_model* mcl_laser_init ( struct mcl_laser l,
unsigned  count 
) [read]

Here is the call graph for this function:

Here is the caller graph for this function:

void mcl_pos2ang ( const struct mcl_laser_state part,
mcl_thetas  theta,
unsigned char  cnt,
unsigned char  color 
)

Convert the position to angles between robot's head and reflectors (angles sense is counter-clockwise).

Parameters:
part MCL particle
theta Returned angles to reflectors
color beacon color
cnt beacon count

Here is the call graph for this function:

Here is the caller graph for this function: