Dependencies:   mbed Motor

bees.h

Committer:
gsulc
Date:
2011-12-16
Revision:
0:178a07cd3e39

File content as of revision 0:178a07cd3e39:

#ifndef _BEES_H
#define _BEES_H

#include "mbed.h"
#include "move.h"

#define DEBUG 1
#define TERMINATE_CHAR 253
#define DIRECTIONS 4

typedef enum {Leader, Follower} Bee_Type;
typedef enum {Blaze, SendDirections, GetDirections, Copy} Operation_Mode;
//typedef enum {GetMove, DoMove} DoType;

extern Serial pc;
extern Serial xbee;
extern MovementState move_state;
//int current_move;

//static int direct = 0;

extern int directions[2*DIRECTIONS+1];

int find_pollen();
int return_home();
int send_directions();
int get_directions();
int gather();
int goto_pollen();
void blaze();
int copy();


#endif