Project

General

Profile

Revision 1535

Added by John Sexton over 14 years ago

Added compiled binaries to bom_refactor branch. Also edited Push-Pull to test functionality of new BOM IR vector functions.

View differences:

bom.h
56 56
#define RBOM    2
57 57

  
58 58

  
59
/** @brief Struct for storing vector data. Used by bom_get_vector() functions **/
60
typedef struct vector {
61
	int x;
62
	int y;
63
} Vector;
64

  
65

  
59 66
/** @brief Initialize the bom according to bom type **/
60 67
void bom_init(char type);
61 68

  
......
68 75
/** @brief Compares all the values in bom_val[] and returns the index to the highest value element. **/
69 76
int bom_get_max(void);
70 77

  
78
/** @brief Computes the net resultant BOM IR vector. **/
79
int bom_get_vector(Vector*, int*);
80

  
81
/** @brief Computes the normalized net resultant BOM IR vector. **/
82
int bom_get_norm_vector(Vector*, int*);
83

  
71 84
/** @brief Print snapshot of BOM intensity histogram over USB connection **/
72
void bom_print_usb(int*);
85
int bom_print_usb(int*);
73 86

  
74 87
/** @brief Computes the weighted average of all the bom readings to estimate the position and distance of another robot. **/
75 88
int bom_get_max10(int *dist);

Also available in: Unified diff