PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
gotoStatus.c
1 #include "abdrive.h"
2 
3 volatile int abd_gotoFlag[2];
4 
5 int drive_gotoStatus(int side)
6 {
7  if(side == SIDE_LEFT)
8  {
9  return abd_gotoFlag[ABD_L];
10  }
11  else if(side == SIDE_RIGHT)
12  {
13  return abd_gotoFlag[ABD_R];
14  }
15  else
16  {
17  return abd_gotoFlag[ABD_L] + abd_gotoFlag[ABD_R];
18  }
19 }
20 
SIDE_LEFT
#define SIDE_LEFT
Parameter option for drive_gotoStatus(int side).
Definition: abdrive.h:221
drive_gotoStatus
int drive_gotoStatus(int side)
Can be used after drive_gotoMode(OFF) to check if a maneuver has been completed.
Definition: gotoStatus.c:5
SIDE_RIGHT
#define SIDE_RIGHT
Parameter option for drive_gotoStatus(int side).
Definition: abdrive.h:230
abdrive.h
This library takes care of encoder monitoring and servo signaling, and provides a simple set of funct...