Go to Post What if my teams drive train isn't an option? - MARS_James [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-01-2009, 22:09
Pneumaticsman's Avatar
Pneumaticsman Pneumaticsman is offline
Registered User
AKA: Mitch guzman
FRC #1566 (Ammoknights)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Idaho
Posts: 69
Pneumaticsman will become famous soon enoughPneumaticsman will become famous soon enough
Send a message via MSN to Pneumaticsman
Red face total noob question :)

Ok, so I know that this year we can program the robot in any of the three languages:

LabView
C
C++

and we will probably do it in LabView, but I was wondering if anyone knew where there is a place for a good C tutorial. I know a bit about C, thanks to C For Dummies, but I'm almost positive that doesn't have everything I need to know, so if anyone knows where I could find more tutorials on C that would be amazing, thanks guys
__________________


be prepared for the unexpected
  #2   Spotlight this post!  
Unread 03-01-2009, 22:18
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: total noob question :)

I believe there is a C for dummies book out, and a C++ for dummies, but no LapView for Dummies.

Some teams make C tutorials I've been told, you can find some online, there also lots of books that can instruction one in programming, but free, well, I'm not sure...
__________________
Is now an engineer thanks to FIRST.
  #3   Spotlight this post!  
Unread 03-01-2009, 22:26
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: total noob question :)

Are you not able to get a mentor? I mean there are quite a bit of tech companies in Idaho that you should totally go ask for mentors!

Hehe, I thought Dean Kammen's speech was really good today, despite its length. =]

Last edited by keehun : 03-01-2009 at 22:34.
  #4   Spotlight this post!  
Unread 03-01-2009, 22:39
Red Mage's Avatar
Red Mage Red Mage is offline
Owner of Holistic Omniscience
FRC #1546 (Chaos Inc)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 35
Red Mage is on a distinguished road
Send a message via AIM to Red Mage
Re: total noob question :)

http://www.cprogramming.com/ is pretty good and Stanford has free online recordings of their CS department lectures. I don't remember the link, though.
__________________
Don't Blink. Blink and you're dead. Don't turn your back. Don't look away. And don't Blink. Good Luck.
  #5   Spotlight this post!  
Unread 03-01-2009, 22:41
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: total noob question :)

http://wiki.lavag.org/LabVIEW_tutorial

There is indeed a LabVIEW for Dummies book (as well as many other resources referenced in the above link).

Russ
  #6   Spotlight this post!  
Unread 03-01-2009, 22:45
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,747
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: total noob question :)

There is a C tutorial on the First web site that we used last year during our Rookie year; http://www.usfirst.org/community/frc...nt.aspx?id=482
  #7   Spotlight this post!  
Unread 03-01-2009, 22:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: total noob question :)

Quote:
Originally Posted by XXShadowXX View Post
I believe there is a C for dummies book out, and a C++ for dummies, but no LapView for Dummies.
You won't find a LapVIEW for anything, since it is actually LabVIEW. The book that most closely approaches the dummies book would be LabVIEW for Everyone. There are plenty others too.

Greg McKaskle
  #8   Spotlight this post!  
Unread 03-01-2009, 22:48
Red Mage's Avatar
Red Mage Red Mage is offline
Owner of Holistic Omniscience
FRC #1546 (Chaos Inc)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 35
Red Mage is on a distinguished road
Send a message via AIM to Red Mage
Re: total noob question :)

I also don't think LabView is a language.
__________________
Don't Blink. Blink and you're dead. Don't turn your back. Don't look away. And don't Blink. Good Luck.
  #9   Spotlight this post!  
Unread 04-01-2009, 00:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: total noob question :)

Quote:
Originally Posted by Red Mage View Post
I also don't think LabView is a language.
Technically, you're correct. LabVIEW is a programming environment, not a language. The language one programs in when using LabVIEW is called "G".

But most people talk about "programming in LabVIEW", and they're technically correct as well. They're writing and editing programs, in the LabVIEW environment.
  #10   Spotlight this post!  
Unread 04-01-2009, 01:33
bayesianlogic bayesianlogic is offline
ekzept
AKA: Jan Theodore Galkowski
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Cambridge, MA
Posts: 7
bayesianlogic is an unknown quantity at this point
Re: total noob question :)

There are a number of good C resources. I'm listing a few below. I also recommend Harbison and Steele's C: A REFERENCE MANUAL and, if you'd like to be a C monk, Peter Van Der Linden, EXPERT C PROGRAMMING: DEEP C SECRETS.

Beej's Guide to C Programming

Jacob Navia's "A quick introduction to the C language"

Embedded C Traps and Pitfalls

There is also the entirely useful and intriguing Ch dialect of C. This is C implemented as a powerful interpreter, so it can be used for scripting as well as programming. It affords all the capability of C, plus the dynamism that comes with an interpretive environment, including the ability to debug more readily. While it is a commercial product, the Ch Standard edition is free for the download. It also offers both heavy numerical support and the for-purchase Embedded Ch, which lets runtime call a Ch interpreter for script execution with certain advantages.

Ch is also available for Unix/Linux and has packaged with it all your favorite Unixen commands available from the WinXP shell.

I know it would be breaking the FRC mold a bit -- and it's certainly not a task for a Rookie Team -- but basing a FIRST entry upon Ch and its world would be most interesting.
  #11   Spotlight this post!  
Unread 04-01-2009, 01:45
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: total noob question :)

I don't know Alan, I use LabVIEW at work, and I'm more used to traditional (C/C++/BASIC/etc) style programming, and I wouldn't even really consider G to be a "language" per se. I like to refer to LabVIEW/G as "Programming with flow-charts."
  #12   Spotlight this post!  
Unread 04-01-2009, 09:55
TimeOut's Avatar
Happy Birthday! TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: total noob question :)

The C setup they have actually just wraps C++ functions in C constructs. There was some significant discussion about this during the Beta period. We didn't see the C wrappers until late in the Beta program as well. We also ran out of time to test the C implementation.

If you are going to go down the C/C++ path I'd recommend sticking with C++; it's not really any more or less difficult and you remove a layer that could possibly cause problems.

The example code (both simple and 'default') provide enough template code to be able to work your way through implementing other features.

For C++ tutorials:
http://www.cplusplus.com/doc/tutorial/

D. Sean Kelly
Team #499
  #13   Spotlight this post!  
Unread 04-01-2009, 11:17
flyingcrayons's Avatar
flyingcrayons flyingcrayons is offline
Team 1089 Alum. RU Class of 2015.
FRC #1089 (Team Mercury)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2007
Location: jersey
Posts: 418
flyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud offlyingcrayons has much to be proud of
Re: total noob question :)

I tried to learn some over the summer too..

my dad showed me this site:

http://www.cs.cf.ac.uk/Dave/C/node4....00000000000000
__________________
  #14   Spotlight this post!  
Unread 04-01-2009, 13:39
GregT GregT is offline
Registered User
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: FL
Posts: 400
GregT will become famous soon enough
Send a message via AIM to GregT
Re: total noob question :)

Quote:
Originally Posted by 1075guy View Post
I don't know Alan, I use LabVIEW at work, and I'm more used to traditional (C/C++/BASIC/etc) style programming, and I wouldn't even really consider G to be a "language" per se. I like to refer to LabVIEW/G as "Programming with flow-charts."
LabVIEW's "G" language is a Dataflow programming language. Dataflow programming started to gain popularity in the late 70's / early 80's with the emergence of supercomputers supporting large levels of concurrency.

Dataflow programs are referred to as "data driven" because the flow of execution is determined by the availability of data in the program, not a sequential order. When you write a program in a structural language like C or C++, execution of commands (lines) must occur in sequence (although this order can be somewhat controlled by the use of threads).

Dataflow programming languages, such as LabVIEW, don't impose this restriction. Any part of the program can be executed at any time, depending on when the individual components receive inputs (in LabVIEW, this happens along the wires).

A dataflow program consists of a set of actors (in LabVIEW they are called components) connected by relations (wires). When an actor has received all the information it needs to perform its assigned computation (ex. an addition actor needs two inputs, A and B, to perform A+B) it does so and passes the result along wires to connected actors. In this way, data propagates through the program to the other actors.

This is all really cool because, by default, Dataflow programs are highly concurrent. Any actor can perform its assigned work whenever it has data available- even at the same time as other actors! While this isn't terribly useful for our controller, as normal desktop CPU's keep getting more and more processing cores, this type of programming has the potential to become very important. Free concurrency!

My point is, don't feel like you need to learn C or C++ to program competitively in the competition this year. Many experienced programmers don't like LabVIEW because it is radically different from what they are comfortable with. While I haven't familiarized myself with the new control system, LabVIEW as a programming language can be just as powerful as C++. Any difference is due to a more optimized compiler / architecture.

LabVIEW is not necessarily less powerful than C++, it's just different.

See also:
http://en.wikipedia.org/wiki/Dataflow_programming
http://www.cs.ucf.edu/courses/cda415...rcomputers.pdf
__________________
The above was my opinion. I'm wrong a lot. I'm sarcastic a lot. Try not to take me too seriously.

Last edited by GregT : 04-01-2009 at 13:43.
  #15   Spotlight this post!  
Unread 04-01-2009, 14:06
Red Mage's Avatar
Red Mage Red Mage is offline
Owner of Holistic Omniscience
FRC #1546 (Chaos Inc)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 35
Red Mage is on a distinguished road
Send a message via AIM to Red Mage
Re: total noob question :)

Why do people insist on naming languages after letters?
__________________
Don't Blink. Blink and you're dead. Don't turn your back. Don't look away. And don't Blink. Good Luck.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Help For The Noob thevexkid VEX 8 04-09-2006 18:27
total motors ? A.Lathrop Motors 1 09-02-2006 18:23
Karel++ Noob help henryBsick Programming 4 08-09-2005 16:03
Is it just me or this a total Love In? archiver 2001 11 23-06-2002 22:41


All times are GMT -5. The time now is 09:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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