|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
does anyone have a command list for C or C+ programming
|
|
#2
|
||||
|
||||
|
Re: command listfor c???
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...nt.aspx?id=482 |
|
#3
|
|||
|
|||
|
Re: command listfor c???
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. |
|
#4
|
|||
|
|||
|
Re: command listfor c???
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.
|
|
#5
|
||||
|
||||
|
Re: command listfor c???
Thanks
|
|
#6
|
||||
|
||||
|
Re: command listfor c???
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.
![]() |
|
#7
|
|||
|
|||
|
Re: command listfor c???
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.
|
|
#8
|
|||
|
|||
|
Re: command listfor c???
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/ |
|
#9
|
|||||
|
|||||
|
Re: command listfor c???
The list I think you're looking for is in the .h files.
|
|
#10
|
|||
|
|||
|
Re: command listfor c???
I use a C syntax chart for quick reference. Two that I like are:
C/C++ from gbookcards.com I got this for every programmer on the team. This one is free C reference PDF And I use the API.h file from WPILib as the other reference. |
|
#11
|
||||
|
||||
|
Re: command listfor c???
O'Reilly Pocket reference books are really nice. I have several of these, and some cheat sheets with my computer at all times. They're great for when I can't remember some little detail.
C Pocket Ref C++ Pocket Ref |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loader Protocol: Command 09 | Astronouth7303 | Programming | 1 | 28-01-2007 01:02 |
| Make all command | pmzq | Programming | 3 | 24-01-2006 16:16 |
| Servo command confusion?!?!?!?! | [527]phil | Programming | 9 | 15-07-2005 20:10 |
| Run command... frightening | archiver | 2001 | 1 | 24-06-2002 03:37 |