View Single Post
  #4   Spotlight this post!  
Unread 13-07-2005, 21:22
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: poor little newbish programmer needing help

Quote:
Originally Posted by Oumonkey
Hi, I am new to programming and I don't know much about it but I am slowly getting it and first I would like to know if there is a guide that goes more in detail about programming in the buttons on the joystick, I probly have something but I have hundreds of pages of stuff and have no clue on what I need to know.
Hey Josh, welcome to the wonderful world of programming. The learning curve is a little steep at first, but once you get started , it comes faster. The document you already have is a great help and does have info on setting inputs to outputs and or actions. It is not really detailed, but pushes you in the right direction.

Quote:
Originally Posted by Oumonkey
But my major problem now is putting in the new code in the....robot controller, yay thats is!, I hold down the prog button ontill the program state led is orange and click download. it finishes and a window pops up....now I have no clue what it is, it had a ton of x=0 and y=0 stuff scrolling down, we left it going for about 5 minites and still going, Which might be our problem I never found anything on it so I wasn't sure what it was supposed to do or if it was of any importance.
The window that popped up is a terminal window. It is displaying the data that is being sent to it by a "printf" command. You can probably find the line calling it in the user_routines.c file in the "Process_Data_From_Master_uP" function. It will be somewhere around line# 190, depending on what modifications you may have made to the file.

Quote:
Originally Posted by Oumonkey
...all we are tryin' to do is put a 2 joystick drive into 1. Which was on an older code and I put in that code part for 1 joystick which I checked that thing a million times and saved it.
I think what your saying is you are trying to set up the drive system for single joystick drive, correct? If so, the default code already handles it. Look near line 240 of the default code. There is a comment block that describes how to hook up the drive motors and the code that mixes the X and Y axis of port 1. It's all there already for you.
Hope that helps.