Project

General

Profile

Revision 346

Undid Jason's style changes. I like tabs.

View differences:

sensor_matrix.h
51 51
 *
52 52
 * A sensor matrix.
53 53
 **/
54
typedef struct {
55
  /**
56
   * The size of the sensor matrix.
57
   **/
58
  int size;
59
  /**
60
   * The matrix. Each row represents the readings of one
61
   * robot.
62
   **/
63
  int** matrix;
64
  /**
65
   * The element representing a robot is true if that robot
66
   * is in the token ring and false otherwise.
67
   **/
68
  int* joined;
69
  /**
70
   * The number of robots in the token ring.
71
   **/
72
  int numJoined;
54
typedef struct
55
{
56
	/**
57
	 * The size of the sensor matrix.
58
	**/
59
	int size;
60
	/**
61
	 * The matrix. Each row represents the readings of one
62
	 * robot.
63
	 **/
64
	int** matrix;
65
	/**
66
	 * The element representing a robot is true if that robot
67
	 * is in the token ring and false otherwise.
68
	 **/
69
	int* joined;
70
	/**
71
	 * The number of robots in the token ring.
72
	 **/
73
	int numJoined;
73 74
} SensorMatrix;
74 75

  
75 76
/**@brief Create a sensor matrix **/

Also available in: Unified diff