Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   command listfor c??? (http://www.chiefdelphi.com/forums/showthread.php?t=61288)

jfrank 10-01-2008 14:12

command listfor c???
 
does anyone have a command list for C or C+ programming

JohnC 10-01-2008 15:21

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

tagger 11-01-2008 17:01

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.

Mib 11-01-2008 17:08

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.

jfrank 22-01-2008 13:16

Re: command listfor c???
 
Thanks

ShotgunNinja 22-01-2008 13:19

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. :]

shtylman 22-01-2008 13:40

Re: command listfor c???
 
Quote:

Originally Posted by ShotgunNinja (Post 683582)
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

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/

Alan Anderson 22-01-2008 16:23

Re: command listfor c???
 
Quote:

Originally Posted by CRBreingan (Post 683655)
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.

Foster 22-01-2008 17:36

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.

EHaskins 22-01-2008 19:39

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

Kingofl337 22-01-2008 19:58

Re: command listfor c???
 
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

Re: command listfor c???
 
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/firs...rces-t113.html
http://naples1551.theiforum.com/c-resources-t75.html

I hope these help.


All times are GMT -5. The time now is 23:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi