View Full Version : command listfor c???
does anyone have a command list for C or C+ programming
A command list won't make you a programmer... you'll have to learn the syntax of the languages as well.
There are lots of free resources, including an "Introduction to C Programming for FIRST" available here:
http://www.usfirst.org/community/frc/content.aspx?id=482
I'm 16 years old and I barely know any visual basic code plus i've only read about the first chapter in C++ programming for dummies. I just recently finished a program that will enable us to detirmine the ratio for the speed of the robot compared to the difference between the stop speed (127) and the speed we want the robot to go. Also I am going to make another program to find the degrees the robot turns based on the difference between the two engines. What is a command list? I seriously don't know and would like to be able to program after were past the testing phase where the programming is easy to figure out like trigonometry. If anyone wants the code I made to test these variables or just use it as a template for their own testing code, E-mail me at JeffreyHB123@hotmail.com.
I don't know what im doing very well,
Jeff~
P.S. This is not the person that uses the account, this is just another person on his robotic team. RAY-PEC For The Win.
There is no "command list" for C or C++. It's pretty simple though. I would start out getting Kevin's code for a base, then modifying it for your needs. As far as resources for C, cprogramming.com is a good start.
ShotgunNinja
22-01-2008, 13:19
Do you have a Linux computer? If so, just try going into terminal and typing "help". The core language of the Linux operating system is C, as opposed to Windows' "A++" script and Mac's "Applescript", which are just disguises for Linux-based commands. :]
shtylman
22-01-2008, 13:40
Do you have a Linux computer? If so, just try going into terminal and typing "help". The core language of the Linux operating system is C, as opposed to Windows' "A++" script and Mac's "Applescript", which are just disguises for Linux-based commands. :]
This is completely untrue and will not help you in any way with FIRST programming. Most OS's are written in C/Assembler. Just find some online C resources to get you going. Typing help in a terminal will do nothing short of showing you a list of BASH help commands for the terminal and will get you nowhere with programming, C, or FIRST.
CRBreingan
22-01-2008, 14:32
i understand what jfrank was asking. I too was looking for a list of commands.
Is there really nobody that has made a list of the available functions in the FRC library? I think it'd be a nice reference to have. I 'd do it myself but i can't read the binary in the .lib files... :( .
Brad Miller did a hell of a job with the WPILIb. If you want to be able to reference a table of functions i would suggest going with WPILib. All the functions have definitions and tell you how to write the argument in the API.h file. It's wonderful to be able to know what exactly you're calling from the library. If you want to check out WPILib go to http://users.wpi.edu/~bamiller/WPILib/
Alan Anderson
22-01-2008, 16:23
Is there really nobody that has made a list of the available functions in the FRC library? I think it'd be a nice reference to have. I 'd do it myself but i can't read the binary in the .lib files... :( .
The list I think you're looking for is in the .h files.
I use a C syntax chart for quick reference. Two that I like are:
C/C++ from gbookcards.com (http://gbookcards.com/catalog.php?action=showitem&itemid=8) I got this for every programmer on the team.
This one is free C reference PDF (http://refcards.com/refcard/ansi-c-silvermanj)
And I use the API.h file from WPILib as the other reference.
EHaskins
22-01-2008, 19:39
O'Reilly Pocket reference books are really nice. I have several of these, and some cheat sheets (http://www.codinghorror.com/blog/archives/000481.html)with my computer at all times. They're great for when I can't remember some little detail.
C Pocket Ref (http://www.oreilly.com/catalog/cpr/)
C++ Pocket Ref (http://www.oreilly.com/catalog/cpluspluspr/)
Kingofl337
22-01-2008, 19:58
This sounds like a job for easyC! Intelitek wrote easyC to teach students how to program in C by displaying syntax correct code in the right hand window. You should be able to find the cd in the KOP and then check out the tutorials in the help file.
bronxbomber92
22-01-2008, 20:16
Here's two threads I setup at our forum that lists a few resources for learning C, and programming FIRST robotics.
http://naples1551.theiforum.com/first-robotics-programming-resources-t113.html
http://naples1551.theiforum.com/c-resources-t75.html
I hope these help.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.