Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   What software program/language is best for roboRio? (http://www.chiefdelphi.com/forums/showthread.php?t=137870)

Ari423 30-07-2015 15:23

Re: What software program/language is best for roboRio?
 
Quote:

Originally Posted by Larry Lewis (Post 1491839)
Another possible approach is to give the students the opportunity to use more than one language if you have the mentor and/or experienced students to support that.

For example you could use C++ or Java for the robot and LabVIEW for the operator controls. That way students get exposure to more than one language so they can determine what they are most proficient in.

I don't know much about robot code in Java or C++, but I know for LabVIEW most (if not all) of the input processing is done on the RoboRIO. You can program a fancy dashboard (as I usually do) but I don't know if a LabVIEW dashboard can communicate with a Java or C++ robot. I can definitely say that if you do decide to try both, you should switch them at some point because programming a dashboard in LabVIEW is very different than programming a robot.

TheHolyHades1 30-07-2015 15:32

Re: What software program/language is best for roboRio?
 
One thing that I don't believe has been mentioned is the speed / ease of teaching C++ and Java vs LabVIEW. While my teams haven't had experience in LabVIEW, I can say that FRC Java/C++ is often quite different from "real world" Java/C++, in that generally, a limited subset of the language is used.

I would second the advice about using the language your programming mentor knows best, but I'd also add that if you're planning on teaching students in a standard fashion, similar to a high school / college intro programming course, then the span of preseason isn't usually enough to get it done (at meetings, at least). If you're just teaching FRC specific coding, then with some effort it is certainly possible.

Larry Lewis 30-07-2015 15:33

Re: What software program/language is best for roboRio?
 
Quote:

Originally Posted by Ari423 (Post 1491841)
I don't know much about robot code in Java or C++, but I know for LabVIEW most (if not all) of the input processing is done on the RoboRIO. You can program a fancy dashboard (as I usually do) but I don't know if a LabVIEW dashboard can communicate with a Java or C++ robot. I can definitely say that if you do decide to try both, you should switch them at some point because programming a dashboard in LabVIEW is very different than programming a robot.

In the past we have done a LabVIEW dashboard while using C++ for the robot code. So that is a possibility for teams if they want to go with that approach.

I agree that programming a dashboard is very different than programming a robot. What I am suggesting is that by programming the robot in one language and the dashboard in another, you can give the same or different students some familiarity to the programming environments of both.

That being said I would introduce the students to both languages you choose prior to build season so that you are not trying to "learn on the job" during build season.

virtuald 30-07-2015 22:30

Re: What software program/language is best for roboRio?
 
Obviously, write the robot in Python, dashboard in HTML5/Javascript. :D

SoftwareBug2.0 31-07-2015 01:31

Re: What software program/language is best for roboRio?
 
Quote:

Originally Posted by Arhowk (Post 1491828)
... Interpreted languages have numerous benefits, such as no deploy time and the ability to grab code from the roboRIO...

I don't mean to hijack the thread but this reminds me: When my team went to a compile/upload cycle outside of Eclipse we got a pretty dramatic speedup. We found that for C++ the waiting didn't need to be more than a couple seconds.

Arhowk 31-07-2015 12:31

Re: What software program/language is best for roboRio?
 
Quote:

Originally Posted by virtuald (Post 1491899)
Obviously, write the robot in Python, dashboard in HTML5/Javascript. :D

Beat you :D

Quote:

Originally Posted by SoftwareBug2.0 (Post 1491918)
I don't mean to hijack the thread but this reminds me: When my team went to a compile/upload cycle outside of Eclipse we got a pretty dramatic speedup. We found that for C++ the waiting didn't need to be more than a couple seconds.

I actually modified my eclipse build scripts for Java and was able to get the deploy time down to 20% of what it used to be by removing useless junk (like checking if the robot has a JRE) and performing build-only-as-necessary.

Although it's decently irrelevant to the topic.

fovea1959 03-08-2015 11:03

Re: What software program/language is best for roboRio?
 
Arhowk: interested in posting your changes to build.xml?


All times are GMT -5. The time now is 17:38.

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