|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: What are we supposed to do!?!?!?!??!?!
We already went through the presentation of the C and it didn't give us the real help. It told us where to go but not specifically what to do(yes, write your autonoms code. But what values, varibles, functions etc. are we supposed to use in it?).
What really helped was the the RC reference guide, thx! |
|
#2
|
|||||
|
|||||
|
Re: What are we supposed to do!?!?!?!??!?!
Quote:
|
|
#3
|
|||
|
|||
|
Re: What are we supposed to do!?!?!?!??!?!
Actually, can't you make something that will simulate the master controllers used at FIRST? You can connect some switches to that 'competition' port on the top and run either autonomous or disable the robot. Not really sure what pins but it can be done.
|
|
#4
|
||||
|
||||
|
Re: What are we supposed to do!?!?!?!??!?!
Run the default code first. After loading the code into the robot controller, open the terminal, if the statement "printf(..." is not commented out, it will print the values for the joysticks. You can add other variables (like switches) to the printf. Move the sticks and see what values change. Look at Default_Routine() like the other poster said.
Look at ifi_aliases.h for the possible variables you can read and set. Autonomous mode is in user_routines_fast.c. Look at User_Autonomous_Code(). It runs in a loop so you have to have a state machine. After you get the robot going and a few things figured out, then search around for an example or post back here. Note: The operator interface will not talk to the robot controller until you set the team number on the IO and tether it first. Hope this helps, Brian |
|
#5
|
|||||
|
|||||
|
Re: What are we supposed to do!?!?!?!??!?!
Thanks for the help guys.
I guess the only problem is right now is just trying to dycript those small macros, functions and other varibles and how they relate to the robot or OI. But our Programming group all agreed that we've reached the begining point and we can probablly see the next step ahead(with minor help from you guys and Delphi). Thanks again ![]() |
|
#6
|
|||||
|
|||||
|
Re: What are we supposed to do!?!?!?!??!?!
BTW, I find the previous codes some people sent very usefull. It'll also help me and the team to get some more work to do(I'm head of the programming team{and look how desperate I was}).
Please send any previous codes you can(with comments of course, so we may understand ). We will really appreciate it. |
|
#7
|
|||
|
|||
|
Re: What are we supposed to do!?!?!?!??!?!
read kevins code, he has really well documented code, i am learning the programing this year as I am planning on helping with the programming from next year on wards, so i have been working with just decoding kevins FRC code.
Last edited by robbekid : 11-01-2007 at 16:45. |
|
#8
|
||||
|
||||
|
Re: What are we supposed to do!?!?!?!??!?!
Quote:
|
|
#9
|
||||
|
||||
|
Re: What are we supposed to do!?!?!?!??!?!
The team number isnt set in the code, its setting in binary using the dipswitches..
Also, just try to get a copy of someones code (i would upload mine but i dont have it with me) and just look through it and try to learn it. Before last year I didnt have a clue what a #define statement was, i just read over the code from previous years over and over again and read all the programming papers on ifirobotics.com... now i knew the controller inside and out... Good luck |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What are Potentiometers? | Theory6RobotiX | Control System | 18 | 30-12-2005 09:57 |
| PBASIC 2.5 Software supposed to be released TODAY. | Travis Hoffman | Programming | 7 | 13-01-2003 20:43 |
| What are pneumatics? | Aignam | Pneumatics | 23 | 16-10-2002 21:17 |
| Who was supposed to be in Huntington?? | Heather 45 | Off-Season Events | 4 | 16-03-2002 22:43 |