Go to Post Andy, you have daughters, would you buy them a Dave doll? - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2013, 16:12
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Using C++ vs LabVIEW?

So I'm at a crossroads. This year I'm the one programmer on my team, and our one programmer last year did not tell me ANYTHING about what to do for this. So I've never used LabVIEW before a couple days ago.

I know basic C++ and taught myself up to pointers (still don't understand those cursed things though). What I want to know is, would I be better off using LabVIEW since I don't know enough C++ for FRC use, or does the C++ used for this stay MOSTLY by the basics and I could just learn the rest? Is it easier to learn LabVIEW from NO prior knowledge at all, or C++ from SOME prior knowledge?
__________________
Team 3753 BulahBots
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2013, 16:14
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Using C++ vs LabVIEW?

If you understand pointers, you can probably program an FRC robot with little trouble. WPI has really made things simple
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2013, 16:20
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Using C++ vs LabVIEW?

Quote:
Originally Posted by connor.worley View Post
If you understand pointers, you can probably program an FRC robot with little trouble. WPI has really made things simple
no no no. I *DON'T* understand pointers. I kinda half somewhat to a minor extent understand what I'm supposed to understand... But I don't know them well enough to say Yes, I know them. But I got everything UP TO that point easy peasy
__________________
Team 3753 BulahBots
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2013, 16:25
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Using C++ vs LabVIEW?

Start moving forward with LabVIEW in that case. Don't be discouraged from looking at C++ though. As a programmer, you have a lot of extra time to work and test new things.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #5   Spotlight this post!  
Unread 09-01-2013, 20:12
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Using C++ vs LabVIEW?

I know that our team has used Labview for the past four years, and now I want to try to branch of onto C++ (for various reasons) our main focus is labview since that is what I have drilled in their heads for so long. Yet I am learning C++ to have a bit of a "failsafe" if something were to happen with labview for any reason (something being we need programming help at competition, and NOONE uses labview)
Reply With Quote
  #6   Spotlight this post!  
Unread 09-01-2013, 20:18
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,752
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: Using C++ vs LabVIEW?

The chances that nobody uses or knows LabVIEW at a competition are relatively slim. But learning more than one language is certainly a good idea.

My input would be to look over some of the LabVIEW examples and tutorials. Do the same of C++. Perhaps even write a bit of sample code that you think you'll do on your robot using joysticks or encoders or gyros in each.

Make an informed choice. There is no perfect language. There are tradeoffs with each, and learning how to learn languages and language features is one of the key aspects that will make you successful in computer science.
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2013, 20:24
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Using C++ vs LabVIEW?

Quote:
Originally Posted by Greg McKaskle View Post
The chances that nobody uses or knows LabVIEW at a competition are relatively slim. But learning more than one language is certainly a good idea.
Sorry, going off topic on this thread but...
Every year we have gone to the Chesapeake regional, we are the only team that used labview... not joking. If someone else did, then we must have missed them when asking for help.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-01-2013, 20:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Using C++ vs LabVIEW?

We were at Chesapeake last year and we used LabVIEW and I know of other teams I worked with there.
We'll see you at the Virginia Regional this year if you need help there.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-01-2013 at 20:46.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-01-2013, 20:44
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Using C++ vs LabVIEW?

Quote:
Originally Posted by Zach S. View Post
(something being we need programming help at competition, and NOONE uses labview)
Err... A pretty heavy majority of teams use labview actually, and NI support at the event has always been great.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #10   Spotlight this post!  
Unread 10-01-2013, 09:43
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Using C++ vs LabVIEW?

and if you're new to programming and want to use a text-based language, I'd recommend Java as a first choice. It is much easier to program and much more forgiving with respect to pointers and memory. The performance for robot programming is pretty much equivalent unless you are doing computationally expensive operations.

Good luck with whatever you choose!

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #11   Spotlight this post!  
Unread 10-01-2013, 10:12
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: Using C++ vs LabVIEW?

so.. getting back on topic, do you use pointers a lot when coding the robot in C++?
__________________
Team 3753 BulahBots
Reply With Quote
  #12   Spotlight this post!  
Unread 10-01-2013, 18:30
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Using C++ vs LabVIEW?

Yes, but not in any theoretical sense. As long as you know how to deference (*) and how to use methods on pointers (->) you'll be fine.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #13   Spotlight this post!  
Unread 11-01-2013, 08:01
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,752
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: Using C++ vs LabVIEW?

Do teams use lots of pointers in FRC code? Lists, trees, and other data structures held together with pointers are not common. Object instances held in a static global or passed around as parameters are common, but those can be references if you would like. I think the answer is, you will use pointers some, but you do not need to use them in complicated ways to be successful in FRC.

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 21-01-2013, 03:07
mprasolov's Avatar
mprasolov mprasolov is offline
Jack of all trades
AKA: Misha Prasolov
FRC #2823 (The Automatons)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Saint Paul, MN
Posts: 36
mprasolov is an unknown quantity at this point
Re: Using C++ vs LabVIEW?

For our code last year, we NEVER used pointers! We are using them a bit this year. I must say, coding in C++ with WPILib is the easiest thing I have ever done! Since few teams actually use C++, you can become an asset to other teams using C++. I find that C++ (or Java) is actually EASIER that LabVIEW! But play around with all three (or two) and pick the one you do best in!
__________________
Check out our website!

http://hprobotics.org
Reply With Quote
  #15   Spotlight this post!  
Unread 23-01-2013, 23:32
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Using C++ vs LabVIEW?

Go with C++, you know enough to learn what you need for FRC in a few days or a week, tops.

I never understood pointers before making our code last year.
In fact, I didn't even know what classes were.
Yet, I made good functional code. Pointers are fairly easy to learn by actually using them, and once you do, they make a ton of sense (A pointer is just a data value or variable storing the adress of a variable. When working with classes, just substitute a -> for a . and you're good to go).
Id say go with what you know. Its very simple and robust, much better than LabView (From my experience with NXT-G, I despise LabView).
As some have said here, you dont really need to use pointers in your robot unless you like them, or want to do multithreading.

Feel free to check out and study source code that we have in our repository at https://bitbucket.org/teammetalcow/ultimateascent/src .
Reply With Quote
Reply


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


All times are GMT -5. The time now is 14:18.

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