/****************************************************************************
Position.h
ME 218B Project Hats Off
Team Firefox
March 7, 2010
Description
This module is
responsible for navigating the robot between points on the
board.
****************************************************************************/
#ifndef POSITION_H
#define POSITION_H
typedef
enum{ POS_GREEN, POS_RED} POS_StartColor_t;
typedef
enum{ POS_EXECUTING, POS_STOPPED, POS_ERROR} POS_State_t;
void
InitPositioning(POS_StartColor_t);
char
Pos_GoToStart(void);
char
Pos_GoToTarget(int target);
char
Pos_GoToHome(void);
POS_State_t
Pos_getStatus(SPI_Status_t);
char
Pos_ResetCurrentPos(int curTarget);
//for debugging
void
debug_setCurPosition(int newCurPos);
void
debug_printCurExecPlan(void);
#endif