28
cryptonite robotics labview beta findings December 19, 2015

Cr yptonite robotics labview beta findings December 19, 2015

Embed Size (px)

Citation preview

Page 1: Cr yptonite robotics labview beta findings December 19, 2015

cryptonite robotics labview beta findings

December 19, 2015

Page 2: Cr yptonite robotics labview beta findings December 19, 2015

2

• New in Beta 2016• Problems and Solutions• Resources

overview

2

Page 3: Cr yptonite robotics labview beta findings December 19, 2015

new in beta 2016

Page 4: Cr yptonite robotics labview beta findings December 19, 2015

new in beta 2016

• Installation Time• mDNS Naming System• Spreadsheet Read/Write• FRC Bridge Configuration Utility• Command and Control Code Structure

Page 5: Cr yptonite robotics labview beta findings December 19, 2015

installation time

• The average installation of LabVIEW and the FRC Update Suite together took about 50 minutes • LabVIEW ~45 min• FRC Update ~5 min• That is about half the time of last year.

Page 6: Cr yptonite robotics labview beta findings December 19, 2015

mdns naming system

• The mDNS name for the roboRIO last year was roboRIO-XXYY.local• In beta, it is now roboRIO-XXYY-FRC.local

When the old code was originally loaded in

We had to change it to this to connect

Page 7: Cr yptonite robotics labview beta findings December 19, 2015

spreadsheet read & write

• The Spreadsheet VIs in the File I/O Palette have been updated. • LabVIEW will import the old ones still, they will just have

a red X on them.• The new VIs have better error handling and a few more

optional inputs.

Page 8: Cr yptonite robotics labview beta findings December 19, 2015

frc bridge configuration utility

• You can now load firmware to the radio from the configuration utility

Page 9: Cr yptonite robotics labview beta findings December 19, 2015

command and control code structure

• This is a new system that uses commands and command handlers to transtion robot states.• In previous years, you could only use global states and

commands to control State Machines.• To use this new structure, you have to be very familiar

with LabVIEW. It is not a required way to program in LabVIEW, its just another option.• This new structure looks like it encourages each

subsystem to be its own Periodic Tasks.vi

Page 10: Cr yptonite robotics labview beta findings December 19, 2015

command and control code structure

• Each Subsystem has its own folder. One folder named Framework contains the default files (Begin, Periodic Tasks, etc.)

• This image is from our 2015 robot code. It uses a similar structure (notice the Framework folder)

Page 11: Cr yptonite robotics labview beta findings December 19, 2015

problems and solutions

Page 12: Cr yptonite robotics labview beta findings December 19, 2015

12

• Network Connectivity• Deploying Code• Getting data from our UDP Dashboard• WPILib problems• Connecting to the roboRIO Web Interface

problems encountered

12

Page 13: Cr yptonite robotics labview beta findings December 19, 2015

network connectivity

• There were many problems in the early beta revisions with the driver station not connecting to the robot• Some of this had to do with us not realizing that we

needed to set our project mDNS to roboRIO-624-FRC.local

Page 14: Cr yptonite robotics labview beta findings December 19, 2015

getting data from udp dashboard• Because of the amount of data we pass to and from the

robot we use a UDP dashboard in order to make sure that our data gets to the robot.

In beta the dashboard had problems sending and receiving data

Page 15: Cr yptonite robotics labview beta findings December 19, 2015

the new radio

• We found that the old D-Link radio was the root of most of our connection problems.

• By replacing the old radio with the new radio, the connection issues were resolved, and we were able to get data from the dashboard.

Side Note: To install the new radio, you cannot use the normal Radio power input on the VRM. You have to connect it to 12V~2A for it to get enough voltage and current

Page 16: Cr yptonite robotics labview beta findings December 19, 2015

new radio, new things

1. There are only 2 ethernet ports in the new radio.2. It matters which port you plug your ethernet cables

into now3. In order to use the new radio, you will rely heavily on

the configuration utility4. There is no switch for Radio Mode anymore. You must

configure this with the utility

Page 17: Cr yptonite robotics labview beta findings December 19, 2015

deploying code

• Initially, there were a lot of problems deploying code.• It was slow, it stalled and sometimes would not deploy

at all• This occured with both Hard and Soft deploy• Additionally, there were some errors

Page 18: Cr yptonite robotics labview beta findings December 19, 2015

errors deploying code

Page 19: Cr yptonite robotics labview beta findings December 19, 2015

roborio reset

• By pressing the RESET button, we were able to solve some of the problems associated with the code not deploying.

Page 20: Cr yptonite robotics labview beta findings December 19, 2015

waveforms and big clusters

• The Memory full error came from using waveform charts in the robot code.• You can use waveform charts on the dashboard, but not

on the robot. • You can use Network Tables for this.

Page 21: Cr yptonite robotics labview beta findings December 19, 2015

wpilib problems

• The Potentiometer Get Refnum VI was messed up in one of the beta revisions. We had to make our own Potentiometer Refnum Get.

This is what the Potentiometer Code looked like

Page 22: Cr yptonite robotics labview beta findings December 19, 2015

wpilib fix

• We reported the error to NI and they told us how to fix the WPILib problem with the potentiometer.

This is what the Potentiometer Code is supposed to look like

Page 23: Cr yptonite robotics labview beta findings December 19, 2015

connecting to the roborio web interface

• When using Chrome, this error message appears:

• Upon further research, chrome and many other browsers no longer support Microsoft Silverlight

Page 24: Cr yptonite robotics labview beta findings December 19, 2015

the ironic solution

Page 25: Cr yptonite robotics labview beta findings December 19, 2015

internet explorer

• Internet Explorer is one of the only browsers that still supports Microsoft Silverlight• Not even Microsoft Edge supports Silverlight• Since we used Windows 10 during the Beta Test, we had

to use the search tool to find Internet Explorer.

Page 26: Cr yptonite robotics labview beta findings December 19, 2015

resources

• We developed experimental feed forward code during beta testing.• You can find this code, our 2015 code and this

presentation at: http://team624.org/?controller=page&action=programmingResources

Page 27: Cr yptonite robotics labview beta findings December 19, 2015

any questions?That's it!

Page 28: Cr yptonite robotics labview beta findings December 19, 2015

contact us

• Email us at [email protected] if you have any additional questions