![]() |
Free programming help
OK now that i have completed about 50% of the coding for my team and will likely be done with our boring autonomous codes by the end fo the week.
I will now try to aid other teams especially those with rookie programmers to get their code up and going, for help you can PM me or AIM me or Email me: Aim: way2fst79ta email: fst79ta AT gmail DOT com please feel free to ask for any help I need something to do! Good Luck, Cuog |
Re: Free programming help
Quote:
A real programmer is never done. There is always something that can be improved. How about improving those "boring" autonomous modes? :ahh: |
Re: Free programming help
Start playing with the camera if you are done.. even if your team can't use it this year, it's not something thats going to go away any time soon. It doesn't need much to get working..
|
Re: Free programming help
Quote:
|
Re: Free programming help
Also i would like to note these sites are all about helping FIRST programmers:
I think all of these sites sorta need a boost... discuss stuff if you can, download code and mess with it, or upload new code on the ones you can. ;) :D http://www.frcsoft.com/ http://kevin.org/frc/ http://frcoder.sourceforge.net/ P.S. I know i missed some sites.... sorry. |
Re: Free programming help
Cool, Then theres a small chance I may be emailing you. But before I destroy my own robot with some bad code...
Do you have any tips for Dead reckoning autonomous mode? I don't think I know enough to use a potentiometer (or however its spelled). Also, I have heard that some people making a dongle isn't as easy as it looks and can mess up your rc controller thingy, Should we just buy one or try to make the dongle? Right now I am going to set up a button press on the controller to start auto but I don't think that would be as good as it sounds. |
Re: Free programming help
i am on a rookie team and am the best choice for programmer only i have no experience and neither does anyone else on my team. i don't even know where to start
|
Re: Free programming help
I am just curious what do you plan on doing in auto? Most teams are no where near having a robot that can be completely programmed nor will they be until the end of week 6. If some how you actually finished then I would recommend you try to do something else in auto. If you saw the game last year auto was very boring, almost nothing happened. If you really do have that much time left then work on integrating new sensors to do different things, I cannot imagine you are doing much more than drive some place by counting loops. In the next few weeks try to give your code more structure and make your auton a little better. In this game auton can make or break a team.
If you want a good example of code look at the code Mike posted in the white papers from last year. His code uses pots and the camera, is structured very logically, is commented well and was extremely functional. Until your code looks like this you are far from done. |
Re: Free programming help
Quote:
My code is located here: Team 237 Triple Play Code I'm also willing to help people, as long as they are willing to use decent spelling/grammar and learn. I don't want to talk to people that go "Hai, culd u make mi autonomus wurK? thxxxxx." You can IM me at MikeWasHere05 |
Re: Free programming help
Quote:
|
Re: Free programming help
Ok to those who claim i am not done with my code i admit that is an exaduration, i still have a lot of testing and debugging that i need our mechanical to finish the design so until then i am done, also i have done a number of playing with kevin watson's code for the camera and i have even modified his tracking algorith so that i can tell it to search certain zones where the light should be.
Now for those asking help: OUMONKEY: for dead reckoning i would generally recomend against it, but if you want you can do it for a basic autonomous(2 of my three autonomous start out with it then they calculate where they are and travel to where it needs to go based on the camera input) basically in dead reckoning you depend on the way your robot has behaved to tell where it should be on the feild, you can calculate this by taking what PWM value was sent for how long and use the robots speed to find where it is, accelerometers and gryos can be used to tell how the robots possition is changed, a vertically mounted gyro can tell you how much the robot has turned to make sure you know where you are pointed. when you have actual code email it to me and i will help you get it working if you want DALCH17: I would recomend that you start by looking at some C tutorials found hiding on USFIRST.org also download the default code from ifirobotics.com or download the camera code from kevin.org/frc and use that if you still have questions once you have started then just let me know |
Re: Free programming help
Yes, I am on a rookie team, and given the fact that our school will not let us download the c compiler and the MPlab program to our computers, and my mentor wants me to find out if we put such gear drive to such pmw and have it work basically, THIS WEEK, how am I supposed to do it, and also, I have looked at the tutorial from the US first website,and I am still confused about c programming and would like some help understanding it.
Please can anyone help, I would be deeply indebted to you if you would. Thank you. PS sorry for any typos,or mispellings. |
Re: Free programming help
To be able to help you to get pointed in the right direction it will help me alot to know how much you already know about programming in general, if this is the first time you have done any large scale programming then i can understand the daunting task, this is the second largest programing project that i have ever had, although i have only been programming for 2 years,
now since you have read the .ppt files on USFIRST i would recomend that when you are at home you take the C-BOT CD and install the programs on your home computer, i would also recomend trying to convince your school division to allow you to install it on one of the computers, DO NOT INSTALL IT WITHOUT PERMISSION. If your team doesnt want to do any custom programing yet then if you use the default code here is how each PWM is powered(i am doing this from memory so someone please correct me if i state something wrong): pwm01 joystick 1 Y axis(forward back) pwm02 joystick 2 Y axis pwm03 joystick 3 Y axis pwm04 joystick 4 Y axis pwm05 joystick 1 X axis pwm06 joystick 2 X axis pwm07 joystick 3 X axis pwm08 joystick 4 X axis pwm09 sorry dont remember from here on out pwm10 pwm11 ... using these PWM values you can hook up your victor 884 to the RC at these pinouts as per the manuals instructions(found at ifirobotics.com) and you can set up pretty much everything for a funtioning robot. there are also the spike relays that can be hooked up and they are set to relay1_fwd relay1_rev relay2_fwd...(i dint remember what joysticks these go to but a quick search through user_routines.c in the 2006 default code will tell you) Here you go, good luck if this doesnt help just email me or post a clarification so i can try again |
Re: Free programming help
Quote:
|
Re: Free programming help
^^^^entirely true my programming rig is a pentium 2 win 98 machine but it works, that reference though was because i am unsure of where she is in the whole programming voyage
|
Re: Free programming help
Here are the default code pwm and relay linkings with the joysticks and digital inputs
Code:
//PWMsEnjoy and feel free to correct me if I am incorrect with any of these! |
Re: Free programming help
yes thats correct i just didnt have my code or my code book with me
|
Re: Free programming help
Quote:
Hi Rebekah, and welcome to Chief Delphi. Something you may want to consider, if you feel you dont have the time/resources/support to tackle learning C programming in time to get a functioning robot (with an autonomous mode even, perhaps?), is the new software that intellitek provided all FIRST teams with this year; EasyC. EasyC is a GUI (Graphical User Interface) C programming tool that allows users to literally "Drag and Drop" blocks of C code. While you still need a basic understanding of program flow (if/then, else, loops, etc...), this program can DRASTICALLY reduce the learning curve and get you a functional program in very little time... More info about EasyC can be found here: http://www.chiefdelphi.com/forums/sh...ad.php?t=41590 and http://www.chiefdelphi.com/forums/sh...ad.php?t=41333 I would highly suggest contacting your district and requesting installation of whatever development tools you choose on at least one machine in the school. Another option is if a team member has a laptop or spare desktop, you can set up a programming computer off of the network, so the district has no control over it. If all else fails, you absolutely NEED them to allow the installation of IFIloader on a computer WITH A SERIAL PORT (Or USB with a USB to Serial adapter Cabler...I've had good luck with the radio shack brand) AND ACCESS TO THE ROBOT, otherwise those nifty .hex files you compile at home(or at school, with luck) will be unable to be loaded to the Robot Controller (and that just wont do!). If there is anything else I can do to help, you can drop me an email at DespoticDreamer@gmail.com or an IM (AIM, none of this MSN Messenger silliness...) at DespoticDreamer Good luck! -Dillon Compton |
Re: Free programming help
Cuog & ALL FIRST Teams,
I propose all (many?) teams collaborate on a 'Simple Set Path' Autonomous Strategy (SSPA) via a CD forum. (SSPA?) PRO: when cooperating teams ally they will score above average together in the auton. period. (AP) (increase chance of near or perfect 100 pt AP score) by avoiding random collisions i.e. use preset paths for each start position, so all have higher avg qual scores than those who don't. FIRST leaders, members & spectators will be happy with high scores ! CON: Drive accuracy & shooting apparatus effectiveness will determine indiv best AP score. No ally may be able to score from 18' effectively. SSPA proposal: (prepgm modes) define 3 starting robot positions: Lead, Mid, Back (LMB) 3 bots drive straight line angle from LMB to centerline, 8', 13', 18' from goal base, respectively & shoot 10 balls Provides 2' in front of ramp for lead bot and ~2' between remaining ~36" bots Engage CMUcam correction near end of fast init drive for AZ & EL then shoot. (some will have to turn bot frame, others have a tracking turret) Overwhelming advantage is the if each can drive within the 2' margin corridor they will not bump into alliance partners permitting max score potential. Partners may choose to put better distance shooters in the M/B positions. 18' should take only 3 sec, leaving 7 sec to align & stabilize and shoot 10 Alternative scheme (prepgm mode): (increased risk of collision) L&M shoot quickly and move away from center allowing B to drive forward after a TBD 2-3sec? delay then shoot from closer Regards, Dale (294engr] |
Re: Free programming help
TO tell the truth the only things I know about the programming, is that there are if statements and else statements, and I'll see if my mentors will let me install the MPlab on my home computer, and possibly I could bring it to school to use there, because I have no real connections on it, and I have no internet, I think though that with the help you have given me I can at least help them to make sure that the motors and joysticks work.
Yes, I will let you know if I end up needing further help, which I know I will, because none of my mentors know anything about c-programming. Thank you in advance. |
Re: Free programming help
Since you are the only member of your team programming there should be o problem for you to install a copy of MPLAB etc. on your home computer(i have it on 2 of my own computers) also if you need a more in depth tutorial on how to program for FRC you can either search these forums white pages or you can wait a bit and i will try and write a nice tutorial if there is any interest.
|
Re: Free programming help
Hey, if you can write a tutorial for someone who knows nothing pretty much like an Idiots Guide to C, That would be great, but also my mentor is bringing in a programmer from another team to help me out.
|
Re: Free programming help
Ok i will get to it keep your eyes open for an initial release some time this weekend.
|
Re: Free programming help
OK i finished the programming guide http://www.chiefdelphi.com/forums/pa...le&paperid=592
feel free to download it and read it i hope it will help people. |
Re: Free programming help
Thank you, as soon as my teacher downloads it I will read it, because you see, I am at school, and the school computers will only let teachers download things.
|
| All times are GMT -5. The time now is 00:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi