Wednesday, November 22, 2017

Programming Contest for Thanksgiving Break!

As always, I encourage everyone in the programming group to look at and code an entry for our existing contests.  Right now, however, I am giving a new one that isn’t posted on the programming challenge page of our website.

So without further delay, here is the contest problem:

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below one million.

As with the other contests, you can submit an entry using LabVIEW, Python, or both.  Evaluation will be on accuracy, speed, and code documentation (comments).

I don’t like to give hints upfront, but if you look at the existing contests, there is one that deals with prime numbers, that may be helpful.  Further, the commentary surrounding the prior contest solutions may be just as important as the actual code, in gaining insight.

Entries are due by 11:59 p.m. PST on Sunday, November 26, 2018.

Good luck!

— Len

Updates, Updates, and more Updates!

We had a very productive afternoon meeting last Friday!  We were able to get the following done:
  1. Shake out Moldy’s wiring.  We corrected three different wiring faults.
  2. Test the flashing of the robot radio with the newly released beta firmware.
  3. Test a new release of the roboRIO flashing utility that included specific changes that we requested (we are making a difference for every team!
  4. Tested migrating our existing 2017 code to the new system.  There is still pain here, but we found new pain points.
Unfortunately, #4 kept us from actually getting Moldy to a running state.  We had hoped for a release of new libraries to fix that problem by last Friday, but that software has not arrived yet.

Speaking of software, I now have version 2.0 of our Python / OpenCV VM and the FIRST Beta software hosted on our server, with no public links.  These links will get you the entire new stack of our software.

Python / OpenCV
  • Download VirtualBox at Virtualbox.org to get the latest version and the extension image.  
  • Download our new VM image here.
LabVIEW
  • Unzip and install the base LabVIEW Software first.  Contact me for the serial number.
  • Unzip and install the FIRST update.  We are now on the third update of this software.  It uses the same serial number.
Those parts are all you need to get started with learning LabVIEW.  To work with team code, we need more…
  • Unzip and install the CTRE software.  We cannot successfully port our code to this version, but the next version promises to fix our issue.
  • Unzip and install the NavX software.  This version is from last year.  It should work, or at least put the software somewhere near where it needs to be to work.
The new version of our VM makes some significant changes, so I suggest that you delete any of the version 1.x VM’s you may have installed.  This version is significantly smaller in overall size (4.5 GB vs. 10.1 GB).  It is based on Ubuntu 16.04 instead of Ubuntu 14.04, and the Python virtual environment uses Python 3.5 instead of 2.7.

As before, the LabVIEW software requires installation on a Windows machine (real or virtual).

Now that you have access to software that you can download and install while waiting for a turkey to cook, watch for my next post, which will be for a contest over break.

— Len



Saturday, October 28, 2017

Beta Testing!

Hi Team!

FIRST has made public the list of teams doing the Beta Program, and plotted them on a map.  We are one of only two teams west of Texas, in the LabVIEW Beta.  There are four other teams in California in the program, and all of them are doing C++.  Almost all of the beta teams are in the US.  The only team in Europe, Africa, or Asia, is in Israel, and they are using LabVIEW.  There is one team in Australia, and they are using C++. In the picture, LabVIEW is blue, C++ is red, and Java is yellow.

This link will take you to see the map, and you can click on the tabs to find a table listing of the teams.

We are now publicly listed as a Beta team, so go ahead and shout it out to the world! 

As it says in the FRC Blog (which can be found at this link):

Nidec Dynamo BLDC Motor with Controller
The new brushless motor/controller combo that a small number of Beta teams will be testing is the Nidec Dynamo BLDC Motor with Controller. This small 12V DC Brushless motor/controller will be legal for the 2018 FIRST POWER UP Season, and will be available in FIRST Choice with additional units being sold by AndyMark.
We feel that this low power, integrated motor/controller combo is a great way to introduce brushless technology to FRC and are excited to have Nidec working to bring it to teams this season. Nidec has been working with FIRST to provide a custom cable harness with the motor to make the connection between the controller and the roboRIO as simple for teams as possible. We can’t wait to see what teams will do with this new technology this season!
Note: Teams will need the 2018 FIRST Robotics Competition software to control this motor correctly, so you will have to wait until Kickoff (and pay close attention to the documentation!) to start playing around with it. Until then, check out the datasheet here for more details about the electrical and mechanical specs.
Note 2: Are you unsure about brushless motors? No problem! Since its inception, FIRST Robotics Competition has allowed only brushed motors. However, brushless motors are widely used in many industries! For more information about the difference between the two, check out this link.
Which is really cool and exciting!  This is the first time a brushless motor has been used in FRC and we are hoping to be one of the Beta teams to test that technology.  While we are waiting to find out if we are, click the links and brush up (hahahahahah) on the technology, because this is a very real option for our 2018 robot and we want to be able to have informed discussions when discussing motor choices in design meetings.
Today is the Quarter Auction fundraiser for our Junior Robotics program. I hope to see some of you there!
-- Len

Wednesday, October 25, 2017

No Off-Site This Week

Hi Team!

Sorry for the late notice, but we won’t be holding the Thursday offsite meeting this week.  Please spread the word to others, as not everyone is plugged in to their e-mail.

That doesn’t mean that there is nothing to do.  I hope that you have been able to poke at 2018 FRC LabVIEW to get more familiar with it.  As I mentioned before, you can learn how to use it better by re-doing some of the programs from the programming challenges.

One of the problems we had with the beta software was missing VI’s for the Talons and the NavX.  CTRE has released a new version of their installer package (v. 5.0.4.2) that should install the VI’s in the correct place.  There may still be issues due to renaming, but at least the VI’s should now be findable.  Kaui Labs has not released a version of their software through the beta program, so their VI’s will have to be installed from their publicly available package.

Other helpful links:

Sourctree for handling our git repository

All of our code repositories.  E-mail me if you are ready for commit privileges on the server.

And lastly, please remember that the team’s Quarter Auction fund raiser is this weekend.  Mrs. E. has some exciting news that she has to tell all of you about in person.

— Len

Wednesday, September 27, 2017

No Thursday Offsite This Week

We won't be holding a Thursday off-site meeting for programming this week.  Instead, we will be having a LabVIEW party at the robotics room on Saturday from 9:00-2:00.  Bring your laptop if you have one, as a limited number of team laptops will be available.

-- Len

2018 Control System Beta

Congratulations Team!


We have been selected to participate in the 2018 Beta Testing program for FIRST! This is a huge honor and responsibility, as there are only 30 teams globally who were selected for each language, and many of those spots are being held by long-time Championship-level teams that have been beta teams for several years.  We are specifically assigned to test the new version of LabVIEW and the respective FIRST code libraries.

So what does this entail for us?  We will be thoroughly testing the 2018 software and potentially new hardware ahead of most teams.  We have to document what we’ve learned.  We need to give feedback to FIRST and their suppliers.  We need to share what we’ve learned and become an authoritative contact for other teams.  Like I said above, this is a huge responsibility.

This will take the efforts of the entire team, as we will have to get both Toasty and Moldy back into competition shape.  Specific to the process that FIRST uses, I need to collect 9 other official participants (students and mentors), as soon as possible.  If you are interested, just post below or send me an e-mail indicating your interest.

-- Len

Wednesday, September 6, 2017

Welcome New Members!


Hi Team!

First of all, welcome to all of the new members who expressed interest in programming, coding, or “anything” at today’s meeting.  I’m sorry that I wasn’t there to meet you, but I’ll get to know you soon enough.

If you haven’t visited the team website yet, you should get into the habit of checking it out at here.  The Buzz page is automatically updated with stuff from the team’s various social media feeds.  Very soon, we will be updating the main site with more recent content and adding a programming blog.  This will be a persistent place for much of the information that I send out over e-mails, and a place to have discussions over different coding topics.  The site also has a calendar under the Team Resources area that should be the most up-to-date scheduling for meetings.  Our items will be deep red in color, but you should also check out other events (especially the pink ones).
  

For those of you new since last week, we use two different languages or environments for programming our robots.  We use LabVIEW, a graphical-based language for main robot control and the off-field dashboard.  We use Python with OpenCV to do our vision programming.  I now have the VirtualBox VM ready for Python programming with OpenCV, which mimics the system used on our vision processing computer.  This can be installed on your own computer, so that you can get up to speed as fast as possible.

To spread the love, we will have a VirtualBox install party at the Evansic house tomorrow (Thursday) night.  It is the next red block on the team calendar.  Bring your laptop (Mac, Windows, or Linux), and you too can get your own tools to play with and learn Python and OpenCV!

If you can’t make it (I know, short notice), the VM and other related information will be available when the website is updated.

— Len