Go to Post Good engineering often comes down to knowing the difference between "better" and "good enough." - dlavery [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

 
View Poll Results: What are you programming in?
Java 65 37.79%
C++ 48 27.91%
LabView 56 32.56%
Other (IDK what you could possibly be doing...) 3 1.74%
Voters: 172. You may not vote on this poll

Closed Thread
Thread Tools Rate Thread Display Modes
  #46   Spotlight this post!  
Unread 13-01-2012, 20:15
Chexposito's Avatar
Chexposito Chexposito is offline
Registered User
AKA: Expo
FRC #1730
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Missouri
Posts: 272
Chexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of light
Re: What are you programming in?

Quote:
Originally Posted by bdbayes View Post
JAVA gives you the ability to rewrite the core code and therefore change it as necessary.
C/C++ does this as well and is classified as a lower code language than java (closer to actual machine code)
  #47   Spotlight this post!  
Unread 13-01-2012, 20:17
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: What are you programming in?

We also use java because that is what so many of the students at our school are trained in AP Computer Science.

Quote:
Originally Posted by Chexposito View Post
C/C++ does this as well and is classified as a lower code language than java (closer to actual machine code)
  #48   Spotlight this post!  
Unread 13-01-2012, 20:19
Chexposito's Avatar
Chexposito Chexposito is offline
Registered User
AKA: Expo
FRC #1730
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Missouri
Posts: 272
Chexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of light
Re: What are you programming in?

Quote:
Originally Posted by apalrd View Post
While I agree that C/C++ are great languages, I disagree with you on this point.

Just because the LV way of doing something might be different dosen't mean it's impossible or even very hard to do.

Having worked with both C and LabVIEW, there are many things which are much harder in LabVIEW if you try to program it like C (in a procedural or object-oriented way).

There are some things which are still harder in LabVIEW. However, there are some things in LabVIEW which are harder in C++. It's all a tradeoff. Both languages are fully capable of handling what we are throwing at them.
i agree with this, this is why (to my understanding) why my team moved back to c++ after a year of labview (in lunacy). mainly from what i've seen the visual processing from the camera is way easier. but since our current mentor did visual tracking back in rack and roll, we already have code to work off of.
  #49   Spotlight this post!  
Unread 13-01-2012, 20:20
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: What are you programming in?

It seems that most of the code examples are provided in Labview before any of the other languages.

Quote:
Originally Posted by Chexposito View Post
i agree with this, this is why (to my understanding) why my team moved back to c++ after a year of labview (in lunacy). mainly from what i've seen the visual processing from the camera is way easier. but since our current mentor did visual tracking back in rack and roll, we already have code to work off of.
  #50   Spotlight this post!  
Unread 13-01-2012, 20:23
Chexposito's Avatar
Chexposito Chexposito is offline
Registered User
AKA: Expo
FRC #1730
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Missouri
Posts: 272
Chexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of light
Re: What are you programming in?

Quote:
Originally Posted by bdbayes View Post
It seems that most of the code examples are provided in Labview before any of the other languages.
this is probably due to NI's involvement in labview (which they made), and their support/sponsorship of FIRST
  #51   Spotlight this post!  
Unread 18-01-2012, 23:34
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: What are you programming in?

Quote:
Originally Posted by apalrd View Post
While I agree that C/C++ are great languages, I disagree with you on this point.

Just because the LV way of doing something might be different dosen't mean it's impossible or even very hard to do.

Having worked with both C and LabVIEW, there are many things which are much harder in LabVIEW if you try to program it like C (in a procedural or object-oriented way).

There are some things which are still harder in LabVIEW. However, there are some things in LabVIEW which are harder in C++. It's all a tradeoff. Both languages are fully capable of handling what we are throwing at them.
I have never even looked at LV. I know Java and C++ and the main reason I am programming the robot in C++ is b/c I know the WPI Libraries in C++ the best. And I will admit some things may be harder in C++, but we don't wanna make our job to easy now do we? haha.
  #52   Spotlight this post!  
Unread 19-01-2012, 08:40
NeatTeam NeatTeam is offline
Registered User
FRC #1943
 
Join Date: Jan 2012
Location: Israel
Posts: 56
NeatTeam is an unknown quantity at this point
Re: What are you programming in?

wow! I was completely convinced almost all teams use LabVIEW. (we do)
  #53   Spotlight this post!  
Unread 20-01-2012, 12:45
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: What are you programming in?

Looks like everyone uses Java
  #54   Spotlight this post!  
Unread 20-01-2012, 16:04
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: What are you programming in?

Java, though I guess we could try C++ one year, most of us are familiar with it.
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
  #55   Spotlight this post!  
Unread 22-01-2012, 13:22
mikegrundvig mikegrundvig is offline
Registered User
FRC #2410 (Metal Mustangs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 100
mikegrundvig is an unknown quantity at this point
Re: What are you programming in?

We use C++ because one of the students a few years ago liked it and so we became a C++ team and have been ever since. The problem is that while the students believe they know C++, they are at best only passingly familiar with even the most basic aspects of it - mostly just cut and paste from the cookbook and examples. Even the smallest error in compiling can become a huge chore to debug.

This year's competition requires a far more sophisticated programming solution than anything our team has ever done. I believe that their assumption that they know the language well enough for this years competition is rapidly becoming our biggest hurdle. I have serious concerns about the ability of the team to code the full project. I wouldn't be surprised if we end up with a robot capable of far more mechanically than they are able to code.

C++ is amazingly powerful but the problem is that for accessing the WPI library it just adds a lot of hurdles and minimal benefits in this project. In my opinion, I feel C++ is significantly more of a pain than simple Java classes for what we are doing. For instance, the use of header files, compiler directives, macros, etc. are all common in C++ and can be avoided or don't exist in a language like Java. This increase in complexity isn't giving us more power on this project as we don't need it, it's just sapping time since none of the students really know the language.

I don't want to get into a C++ vs. Java argument at all. It's just that Java is simpler as it was designed specifically to reduce many of the complexities of C++ and baring a compelling need for the power of C++, I think we should have gone with it. Even LabView would likely have been a solid choice for what we are doing on the cRIO.

-Mike
  #56   Spotlight this post!  
Unread 22-01-2012, 13:32
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Tbh both Java and c++ are bloated languages that's really not ideal in a high-school robot competition.
  #57   Spotlight this post!  
Unread 22-01-2012, 13:49
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: What are you programming in?

Quote:
Originally Posted by shuhao View Post
Tbh both Java and c++ are bloated languages that's really not ideal in a high-school robot competition.
Why?

C/C++ is/are one of the most common programming languages in existence today, and I would call C one of the most fundamental languages of computer programming.

What language would you suggest?
-It has to be able to be compiled or it's interpreter/VM must be able to be compiled for VxWorks
-The resulting code including the interpreter/VM must be very memory-small
-It has to be an easily accessible language (IDE's and tools for it must be free or donated, etc.)
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #58   Spotlight this post!  
Unread 22-01-2012, 22:42
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Quote:
Originally Posted by apalrd View Post
Why?

C/C++ is/are one of the most common programming languages in existence today, and I would call C one of the most fundamental languages of computer programming.

What language would you suggest?
-It has to be able to be compiled or it's interpreter/VM must be able to be compiled for VxWorks
-The resulting code including the interpreter/VM must be very memory-small
-It has to be an easily accessible language (IDE's and tools for it must be free or donated, etc.)
Python

It has been done .

Very accessible (no need to compile, even. So you don't even need an ide ).

IMO the entire software chain of the competition should be oss. But I guess those sponsors wont like that.
  #59   Spotlight this post!  
Unread 22-01-2012, 22:48
mikegrundvig mikegrundvig is offline
Registered User
FRC #2410 (Metal Mustangs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 100
mikegrundvig is an unknown quantity at this point
Re: What are you programming in?

Quote:
IMO the entire software chain of the competition should be oss. But I guess those sponsors wont like that.
This would be my preference as well. I'd like to see it on the hardware side too. I recognize that this isn't going to change so I don't make a stink about it but I was surprised to see how dependent the competition is on licensed products that expire right after the competition is over.

-Mike
  #60   Spotlight this post!  
Unread 22-01-2012, 22:55
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: What are you programming in?

Quote:
Originally Posted by mikegrundvig View Post
This would be my preference as well. I'd like to see it on the hardware side too. I recognize that this isn't going to change so I don't make a stink about it but I was surprised to see how dependent the competition is on licensed products that expire right after the competition is over.

-Mike
Yup, completely agree... You can always start your competing open source arduino robot competitions with just a post to their forums (and then a link on reddit).

Won't be high school level.. but..
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


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

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