SensorMatrix Struct Reference
[Sensor Matrix]

#include <sensor_matrix.h>

Data Fields

int numJoined
unsigned char joined [MAXIMUM_XBEE_ID]
unsigned char matrix [MAXIMUM_XBEE_ID][MAXIMUM_XBEE_ID]

Detailed Description

A sensor matrix.


Field Documentation

unsigned char SensorMatrix::joined[MAXIMUM_XBEE_ID]

The element representing a robot is true if that robot is in the token ring and false otherwise.

Referenced by sensor_matrix_create(), sensor_matrix_get_in_ring(), and sensor_matrix_set_in_ring().

unsigned char SensorMatrix::matrix[MAXIMUM_XBEE_ID][MAXIMUM_XBEE_ID]

The matrix. Each row represents the readings of one robot.

Referenced by sensor_matrix_create(), sensor_matrix_get_reading(), and sensor_matrix_set_reading().

The number of robots in the token ring.

Referenced by sensor_matrix_create(), sensor_matrix_get_joined(), and sensor_matrix_set_in_ring().


The documentation for this struct was generated from the following file:

Generated on Wed Sep 23 12:51:07 2009 for libwireless by  doxygen 1.6.1