Go to Post Lesson learned, /always/ have a pick list! - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2006, 16:19
BrittanyV BrittanyV is offline
Registered User
FRC #1025 (Impi Robotics)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Royal Oak, MI
Posts: 28
BrittanyV is on a distinguished road
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!
  #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
  #3   Spotlight this post!  
Unread 21-01-2006, 16:01
BrittanyV BrittanyV is offline
Registered User
FRC #1025 (Impi Robotics)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Royal Oak, MI
Posts: 28
BrittanyV is on a distinguished road
Re: CMU cam and drive wheels

Thanks a bunch! I really apprciate that!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Square Wheels? mechanicalbrain Technical Discussion 11 08-01-2006 17:34


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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