View Single Post
  #2   Spotlight this post!  
Unread 20-01-2006, 16:31
VideoMan053's Avatar
VideoMan053 VideoMan053 is offline
Computer Freak
AKA: Dan J.
FRC #0063 (Red Barons)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Erie, Pennsylvania
Posts: 18
VideoMan053 is an unknown quantity at this point
Send a message via AIM to VideoMan053
Re: CMU cam and drive wheels

yes, in the camera code, the whole routine that maps joysticks to pwm ports is commented out ( // and /* */)

Code:
//  ***  IFI Code Starts Here***
//
//  static unsigned char i;
//
//  Getdata(&rxdata);   /* Get fresh data from the master microprocessor. */
//
//  Default_Routine();  /* Optional.  See below. */
//
//  /* Add your own code here. (a printf will not be displayed when connected to the breaker panel unless a Y cable is used) */
//
you can see that the function calling the Default_Routine (joystick mapping) has been commented out...I believe this is for safety, i.e. human drive can't drive the robot while the robots driving itself...

You could rememdy the situation by letting the camera drive and align itself, turn the camera off, and then begin calling this function, but I'm not sure exactly how that could be done yet.
__________________
GET OVER IT! ~ not the most useful words in competitions, but some of the most useful in life!
My Jobs: Programming