View Single Post
  #5   Spotlight this post!  
Unread 30-11-2007, 21:49
ruddy ruddy is offline
Registered User
FRC #1261
 
Join Date: Nov 2007
Location: Georgia
Posts: 16
ruddy is a splendid one to beholdruddy is a splendid one to beholdruddy is a splendid one to beholdruddy is a splendid one to beholdruddy is a splendid one to beholdruddy is a splendid one to behold
Thumbs up Re: help getting servo values from camera

Quote:
Originally Posted by Tottanka View Post
Code:
// Tracking_State values
#define STATE_SEARCHING 0
#define STATE_TARGET_IN_VIEW 1
#define STATE_PAN_ON_TARGET 2
#define STATE_TILT_ON_TARGET 4
.
As I said I'm a c noob. Are these variables predefined in the code, or should I define it in User_routines.c? Could I do something like:

if(STATE_TARGET_IN_VIEW == 1) {
// code...
}

thanks again