aversive_10-03-12/modules/devices/robot/robot_system/angle_distance.c File Reference

#include "angle_distance.h"

Go to the source code of this file.

Functions

void rs_get_polar_from_wheels (struct rs_polar *p_dst, struct rs_wheels *w_src)
void rs_get_wheels_from_polar (struct rs_wheels *w_dst, struct rs_polar *p_src)


Function Documentation

void rs_get_polar_from_wheels ( struct rs_polar p_dst,
struct rs_wheels w_src 
)

convert the values of wheels encoders (left, right) into (distance, angle)

Definition at line 28 of file angle_distance.c.

References rs_polar::angle, rs_polar::distance, rs_wheels::left, and rs_wheels::right.

Referenced by rs_update().

void rs_get_wheels_from_polar ( struct rs_wheels w_dst,
struct rs_polar p_src 
)

convert (distance, angle) into (left, right)

Definition at line 37 of file angle_distance.c.

References rs_polar::angle, rs_polar::distance, rs_wheels::left, and rs_wheels::right.

Referenced by rs_set_angle(), rs_set_distance(), and rs_update().


Generated on Fri Mar 12 06:32:06 2010 for AVR by  doxygen 1.5.6