FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.

Slides:



Advertisements
Similar presentations
Apple Pi Robotics Logic System and Programming Basics 1 1.
Advertisements

Alpha Control System TheRobettes.com.
US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse.
Robot Code MVRT 2010 – 2011 Season. Robot code controls the robot Robot Main.vi –Calls all the smaller SubVis Rules of programming the robot –Be careful.
Session Objectives: Review basic math for single swerve module
Add and Use a Sensor & Autonomous For FIRST Robotics
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
Programming and Electronics Training
Autonomous Helicopter: James Lyden Harris Okazaki EE 496 A project to create a system that would allow a remote- controlled helicopter to fly without user.
FRC FPGA Architecture Kickoff Agenda FRC Robot Controller Architecture FPGA Features and Use Cases Break WPILib for LabVIEW Break WPILib for C /
Part 1: Introduction FRC Introduction  FRC 2907 since 2008  Each area of the robot has a team assigned  The Electronics team is headed this year.
Introduction to LabVIEW 8.5
GPSBot08 System Overview.
Today’s Agenda New Hardware Setup of RoboRIO
2015 FRC Control System = MOL = DUK Power Distribution Board Volts -12 Volts (4) 40 amp Circuits (4) (6) 20/30 amp Circuits (6)
2012 Beta Seminar 694 Software Engineering. Overview WPILib ▫Command-based programming ▫NetworkTables ▫SmartDashboard ▫Preferences ▫Laptop-based vision.
1. A guide to wiring your robot. Jerry Skene Past mentor – Chantilly Robotics
How to Use This Training Deck
Drivers Station 2010 Joe Ross Team /12/2009.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
US First Kickoff 2012 Software Programming (And Control System) Daniel Kohn University of Memphis.
Common Rookie Blunders Kelvin Lin Team 4001 Programmer Yoan Holder Team 4001 Electrician.
2010 Control Systems All we are saying… …is give C a chance! Presented By: Frank Larkin Lansdale Catholic Robotics, Team 272 Radnor PA, Dec
Mentors Workshop Control System Sub-System Mark McLeod Team 358 Festo/Hauppauge H.S. F For I Inspiration and R Recognition of S Science and T Technology.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
ALVIN the Albuquerque LabVIEW Interest Network An Overview of Servo Motor System and LabVIEW Presented by Larry Goga February 19th, 2009.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Robot Sensors Kevin Watson and Rich Petras. Overview ➲ Sensors ● Micro Switch ● Gyro ● Encoders ➲ Command Sequencing ➲ PID Control.
The New FTC Platform (Connecting your legacy hardware)
2009 FRC Control System Software Overview Dave Doerr, Mentor, Team 67 November 15, 2008.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1.
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Beginner Programming Workshop Simona Doboli Assistant Professor Computer Science Department Hosftra University November.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
2010 LabVIEW Beginner Workshop October 9, 2010 Hauppauge High School SPBLI – LI FIRST Mark McLeod Hauppauge Team 358 Northrop Grumman Corp.
1. 2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
David GiandomenicoFeedback Control for your FIRST Robot’s DrivetrainDec 2010 WRRF Workshops #1 David Giandomenico Team mentor for Lynbrook Robotics – Team.
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
Cass Lake Bena Robotics.  Drivetrains  Electrical System  Operator Interface.
Introduction to LabVIEW 8.5
Part III Robot Drive. Robot Main.vi The main body of your code: accesses all of the other programs in your project A big loop! Do not add any more loops.
VEX ARM® Cortex®- based Microcontroller. The VEX ARM® Cortex®-based Microcontroller coordinates the flow of all information and power on the robot. All.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Advanced LabVIEW Topics Dustin Cruise. Who is this guy? Graduate Student in Mechanical Engineering at Purdue University Specialty Areas: Combustion Control.
Session 11 Intro to FRC API.
Mark Randall & Kevin Claycomb Faculty Advisor: David Mitchell Industrial Sponsor: IEEE.
Innovation First Hardware & Default Program The 5¢ Tour... Dr. Joe January 5, 2002.
Cass Lake Bena Robotics Team 3134 & Team  Drivetrains  Electrical System  Operator Interface.
Introduction to Labview Dawgma Team 1712 Bob Bellini, Paul Gehman.
PID Control Joe Ross Team 330.
VAFIRST LabVIEW Workshop 11/19/11 Presenters: Marin Kobin & Patrick Foley.
Get your software working before putting it on the robot!
Wednesday NI Vision Sessions
Programming Applied Sensors in FIRST Robots Chris Elston – Team Download sample code:
FIRST ROBOTICS COMPETETION Introduction to Electrical & Control System Power and Signal Distribution/Interconnection Sensors, Motors, Speed Controllers,
INTRODUCTION TO JAVA PROGRAMMING FOR THE FIRST ROBOTICS COMPETITION JONATHAN DANIEL HEAD PROGRAMMER FERNBANK LINKS.
FRC Robot Electronics.
Introduction to Labview
Microcontroller Applications
Control Loops Nick Schatz FRC 3184.
Introduction to Team 294 Programming Concepts
2010 LabVIEW Intermediate Workshop
Training 11/11/16 Robot Code (WPILib).
Field Management System
Introduction to Software Planning and Design
Advanced LabVIEW
Presentation transcript:

FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments

Agenda Robot Framework ◦Basic ◦Advanced Debugging Palette Overview Gyro Analog Trigger Digital Input Encoder Robot Drive PID Control Common Questions Questions?

Robot Framework - Basic Frameworks handle switching between modes for you Select Basic when creating your cRIO Robot Project Robot Main.vi allows users to drop Tele-Op code into designated areas directly Provided Autonomous VI is spawned off by framework code Basic framework implements 2-wheel, Jaguar, arcade drive by default

Robot Framework - Advanced Select Advanced when creating your cRIO Robot Project Users should not have a need to modify Robot Main.vi Users modify the VIs in the “Team Code” folder in the framework project Basic framework implements 2-wheel, Jaguar, arcade drive by default

Debugging Execution Highlighting Probes Breakpoints Stepping Vision Probes Dashboard Error Display.vi ◦Dialog ◦File ◦Dashboard Serial Console

Overview LabVIEW palette sets FRC specific palettes ◦FIRST Vision ◦WPI Robotics Library PID Toolkit palette Context Help

WPI Robotics Library Overview Interfaces with cRIO, sensors & actuators Basic functionality matches C/C++ version Contains multiple palettes ◦Robot Drive ◦Sensors ◦Actuators ◦IO ◦Driver Station ◦Camera ◦Communications ◦Utilities

Higher level options for 2 and 4 wheel drive Arcade Tank Holonomic Use by opening references to motor controllers (specifying Jaguar or Victor) and then passing to drive mechanism Joystick Palette Advanced Palette for direct control of motors using PWM channel Robot Drive

Contains Subpalettes: Accelerometer Counter Encoder Gyro Ultrasonic Sensors

Contains Subpalettes: Motor Control Servo Relay Solenoid Compressor Actuators

Contains Subpalettes: Digital Input Digital Output PWM Analog Channel Analog Trigger IO

Contains : o Functions: Open, Close Start, Stop Get Image Get Image from Controller o Subpalette: Camera Properties Camera

Contains : o Functions: Start Communication Stop Communication Set Robot Status Get Analog Data Get Digital Data o Subpalette: Joystick API subpalette Driver Station

Contains Subpalettes: Serial I2C SPI Communications

Contains : o Functions: FRC FPGA Version FRC LEDs FRC ReadSwitch o Subpalettes: Watchdog Interrupts Utilities

Robot Drive Example

Gyro Example

Analog Trigger Example

Digital Input Example

Encoder Example

PID Control Control Loop Feedback Algorithm Uses 3 parameters: ◦Proportional Value ◦Integral Value ◦Derivative Value

Proportional Value Determines reaction based on what the current error is Integral Value Determines reaction based on what the sum of the recent errors is Derivative Value Determines reaction based on the rate of how the error has been changing

PID Control Varying the multiplier constants for PID (Kp, Ki, Kd) for a specific system is called tuning PID toolkit in LabVIEW provides functions for implementing a PID control loop

Common Questions What is the difference between running and deploying? How can I build an application to deploy? Why do I keep losing the startup application on my cRIO? Will software updates continue to be provided? Why won’t any of my actuators work? Why doesn’t my counter/encoder work? Why do I measure zero battery voltage? Why doesn’t my servo work?

Questions?