Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CMU cam and drive wheels (http://www.chiefdelphi.com/forums/showthread.php?t=42296)

BrittanyV 20-01-2006 16:19

CMU cam and drive wheels
 
Hey!-
I'm a really novice programmer and I have no idea how to deal with this problem. We downloaded Kevin's code and have been able to track the light, but we want to put the drive motors on pwm01 and pwm02. We changed them in the program where it defines them, but now the drive motors will not work. Is there something in the program that negates how user_routines.c maps the port 1 joystick to pwm01?

Any help that you can give would be much appreciated!

VideoMan053 20-01-2006 16:31

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.

BrittanyV 21-01-2006 16:01

Re: CMU cam and drive wheels
 
Thanks a bunch! I really apprciate that!


All times are GMT -5. The time now is 01:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi