US First Kickoff 2014 Software Programming
description
Transcript of US First Kickoff 2014 Software Programming
![Page 1: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/1.jpg)
US First Kickoff 2014Software Programming
(And Control System)
Daniel KohnUniversity of Memphis
![Page 2: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/2.jpg)
What will be presented……
Veteran Teams• Changes from Last
year
Rookie Teams• General intro
programming options
For Everyone• Classmate Updates / Install
This is NOT intended to TEACH you how to program, just give you an overview of the control system and programming changes from last year and to show the various programming options teams have.
![Page 3: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/3.jpg)
Java Seminar• If your team is using Java and all your
programmers are in this room…..someone should leave NOW and go to the Java Seminar in the Poplar Room (UC 308)!
![Page 4: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/4.jpg)
Please Note:• Last year, information on the changes made to the
control system and programming was easily obtained (NI Held Training)
• This year, info is based only on Beta Test Teams reports and is VERY Sketchy!!
• This presentation, along with links and notes will be posted to http://memphisfirstteams.org
![Page 5: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/5.jpg)
Classmate PC• Rookie Teams
There will be NO Software loaded on the Classmate when you get it. You should receive a USB Drive to install the software.
Instructions at: http://wpilib.screenstepslive.com/s/3120/m/8559/l/92209-imaging-your-classmate-rookie-usb-stick
Make sure you follow the instructions about UPDATES
![Page 6: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/6.jpg)
Classmate PC (Cont)• Veteran Teams
Classmates (driver station NetBook) will be re-imaged using the same method as last year.– BACKUP FIRST!
For instructions see http://wpilib.screenstepslive.com/s/3120/m/8559/l/92211-imaging-your-classmate-veteran-rookie-image-download
you need a 8Gbyte USB Thumb Drive or larger as well as a PC that you can install software on (since you need TWO different programs to prepare the USB image for use with the NetBook)
![Page 7: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/7.jpg)
Updates• This year the NI updates have been reconfigured into a
single standalone installer. This means that the FRC Driver Station, cRIO Imaging Tool and other utilities such as the Camera Configuration Tool will all be bundled into a single installer which will not require any components from the DVD. The LabVIEW update is also included in this installer and will install if a LabVIEW installation is detected.
![Page 8: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/8.jpg)
VETERAN TEAMS
![Page 9: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/9.jpg)
New in 2014
![Page 10: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/10.jpg)
LabVIEW• Upgrading from LabVIEW 2012 to 2013• I found no other significant changes reported
from the Beta Test teams.
![Page 11: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/11.jpg)
Java and C++• Smart Dashboard 2.0 (Improved over last year)• I found no other significant changes reported from
the Beta Test teams.
![Page 12: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/12.jpg)
Hardware• With the new RoboRio control system due
out for the 2015 season, most of the hardware efforts are focused on that. See:
https://decibel.ni.com/content/docs/DOC-30419
• There were NO reports of any changes to the hardware this year.
![Page 13: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/13.jpg)
ROOKIE TEAMS
![Page 14: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/14.jpg)
Programming Options• LabVIEW• C/C++• Java
![Page 15: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/15.jpg)
LabVIEW - Advantages• Made By National Instruments (NI)
Makers of the cRIO Control system (and the control system for 2015)
• Graphical Programming Language• Lots of support on line in forums and from NI
NI is a huge supporter of FRC and FIRST• Lots of built in documentation (help on every VI, examples
for every sensor/system)• Includes a robot simulation tool for off robot testing (was
pretty useless in 2013)
![Page 16: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/16.jpg)
LabVIEW - Disadvantages• Many windows need to be opened to do
anything (hard to do on the Classmate)• Hard to find things the first time you need
them.• Programmers (those who know standard
programming languages) have a hard time with the graphical nature of LabVIEW
![Page 17: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/17.jpg)
Sample LabVIEW Code
![Page 18: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/18.jpg)
C/C++ Advantages• Common programming language
Mentors and students might be more comfortable with C/C++ if they programmed in C before
• Many books on C/C++ (but NOT the specifics for FRC teams)
• Mentors and students who know C/C++ will have a shorter learning curve
![Page 19: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/19.jpg)
C/C++ Disadvantages• Licensing issues!• Installation issues (discussed previously)• In 2013, there was a rumor has it C/C++
support might end in 2015 (but since then statements have been made to the contrary)
![Page 20: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/20.jpg)
Sample C/C++ Code
![Page 21: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/21.jpg)
Java Advantages• Uses NetBeans (commonly used by
programmers)• Mentors and students who know Java
already will have a very short learning curve.• All public domain – no licensing issues in off
season and no registration required.• Only software that does auto FRC Updates
![Page 22: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/22.jpg)
Java Disadvantages• Newest Language (only the 5th year offered)
![Page 23: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/23.jpg)
Sample Java Code
![Page 24: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/24.jpg)
Robot Builder• With the introduction of Robot Builder, Java
and C/C++ are easier to use for teams who have programming mentors who know those languages (in the past many mentors could not get over the issues of defining robot hardware, this is now done in Robot Builder)
![Page 25: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/25.jpg)
Where to Start• Basic code
Each language has basic robot code or templates available
Don’t be afraid to search the internet, some teams post code from previous years!
• HINT: the basic code usually uses the standard wiring (don’t deviate from the standard wiring or code will not work)
![Page 26: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/26.jpg)
Keep Current• A common rookie mistake is not to keep the
software up to date.• Check the 2014 software update website
often.
![Page 27: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/27.jpg)
Other Comments• If you are NOT using LabVIEW, you will need some
of the files included with the LabVIEW Install
• You will probably want to do your programming on a computer with a bigger screen (laptop)
• If you plan to use the Robot Simulator in LabVIEW, you will need a Laptop with higher specifications
![Page 28: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/28.jpg)
Thanks to…..• FRC Blog
http://www.usfirst.org/roboticsprograms/frc/blog• FRC Website
http://www.usfirst.org/roboticsprograms/frc• National Instruments
https://decibel.ni.com/content/community/academic/student_competitions/frc
• WPI http://wpilib.screenstepslive.com/s/3120
![Page 29: US First Kickoff 2014 Software Programming](https://reader035.fdocuments.in/reader035/viewer/2022062815/56816930550346895de07c91/html5/thumbnails/29.jpg)
Presentation• This presentation (and all links) will be
posted at:
http://memphisfirstteams.org/