Go to Post Lexan $20.... Stock Aluminum $30.... Having a OI that is heavier than the robot PRICELESS.... - GBIT [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 25-01-2010, 10:59
Tds123's Avatar
Tds123 Tds123 is offline
There is no I in team =]
AKA: Timothy Shub
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Tottenville High School
Posts: 27
Tds123 is an unknown quantity at this point
Send a message via AIM to Tds123
Urgent Programming C++ help please!

ok so i am a new programmer to the 1396 team because our old programmer has recently graduated. He has taught me some things but i still do not understand how to use the C++ language to program. Especially since we have the new laptop/ driver station this year this puts a lot of pressure on me as to figure all this out and i am becoming very nervous about how i am going to get this robot to function this year ... whats on the electronics board of this robot is

4 jaguars because we are using 2 motors per gearbox this year

4 spikes... because we have 2 motors for a wench, 1 motor for a manipulator, and another motor for a dumper for the soccer balls..

I also do not how to assign the motors to a button on the control stick like how to turn the motors on and off using the spikes.. so if someone can help with that also that would be much appreciated... Please help someone
__________________
ThE sCaLeS oF bAlAnCe (Team 1396)
  #2   Spotlight this post!  
Unread 25-01-2010, 11:25
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Urgent Programming C++ help please!

You should definitely read the following programming manuals:

There's also a very helpful C++ reference containing all the functions and classes you should need for programming the cRio. It's called C++_Reference.chm C:\windriver\docs\extensions\frc

Make sure you've done all the updates on your development computer and Classmate PC (the beginning of this thread has information on the updates, http://www.chiefdelphi.com/forums/sh...ad.php?t=81064

There's a ton of sample code if you go to File->New->Example, VxWorks Downloadable Kernel Module, and then pick one out [in Windriver].

Hope I was of help, if you have any more specific questions feel free to reply back here or PM myself, or one of the many programmers on CD.

Bonus Sites:
  #3   Spotlight this post!  
Unread 25-01-2010, 11:45
EagleS!! EagleS!! is offline
Registered User
FRC #3390 (Anatolian Eaglebots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Turkey
Posts: 20
EagleS!! will become famous soon enoughEagleS!! will become famous soon enough
Re: Urgent Programming C++ help please!

If you use LabVIEW, you can see it's easier than C++. For C++, you have to learn C language. LabVIEW is definitely an easy program to learn.
  #4   Spotlight this post!  
Unread 25-01-2010, 14:08
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Urgent Programming C++ help please!

Quote:
Originally Posted by EagleS!! View Post
For C++, you have to learn C language.
C++ is for the most part a superset of C, but it lets you do lots of things that you can't in C. I wouldn't necessarily agree with this.

However, I would agree that C++ is probably much harder to master than LabVIEW. I love C++, but then again I've been programming in it and C for three years. A great tutorial I used when teaching myself C++ was www.learncpp.com. You should definitely check it out if you want to take the C++ route.
__________________
  #5   Spotlight this post!  
Unread 25-01-2010, 14:12
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Urgent Programming C++ help please!

Quote:
Originally Posted by EagleS!! View Post
If you use LabVIEW, you can see it's easier than C++. For C++, you have to learn C language. LabVIEW is definitely an easy program to learn.
I agree with Slavik. C++ should be learned if you want to learn C++, not C or FORTRAN or any other language you want to put in the mix...
  #6   Spotlight this post!  
Unread 25-01-2010, 15:21
woodn1980 woodn1980 is offline
Registered User
FRC #2405
 
Join Date: Nov 2008
Location: Grand Rapids
Posts: 4
woodn1980 can only hope to improve
Re: Urgent Programming C++ help please!

If I were you, I would switch to Labview immediately. It was said before that it is very easy and fast to learn (I agree). The initial program available will get you off the ground and running with at least two motors in the default code. Check out the tip jar lessons available through frcmastery.com to become proficient in labview (~ 1.5 hours of video). With this and after re-imaging the crio, you should be ready to move with two motors. Adding the extra ones should be fairly easy if you understand how the first two work.
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
urgent help!!! PLEASE! zivo123 Motors 0 29-01-2008 14:51
PLEASE HELP!! Need help programming arm?? amirjpl Programming 12 15-03-2007 15:11
HELP-URGENT PROGRAMMING HELP NEEDED Rohith Surampudi Lego Mindstorm Discussion 1 24-03-2006 23:05
Urgent need for Nason pressure switch!! PLEASE HELP! haverfordfords Pneumatics 12 18-02-2005 02:04
URgent Programming Help needed rcubes85 Programming 4 15-02-2005 23:21


All times are GMT -5. The time now is 01:59.

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