Training 11/11/16 Robot Code (WPILib).

Slides:



Advertisements
Similar presentations
Alpha Control System TheRobettes.com.
Advertisements

fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Programming Requirements Last updated Jan 30, 2015, 8:00PM.
Wiring the new control system MVRT 2010 – 2011 Season.
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
LEGO Mindstorms NXT Carnegie Mellon Dacta Lego Timothy Friez Miha Štajdohar SOURCES:
Old control system ( ) MVRT. Main Circuit Breaker Connected to the red wire (power) of the battery When turned off, all power is cut off and robot.
Fischertechnik ® Interface Connections. The Serial Interface Connects the Computer with the fischertechnik ® model
Alarm Clock Robert Stuart. 1.Keep track of time. 2.When the time matches a stored value an alarm should go off. 3.Functionality that allows for the user.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
2015 Control System New IDEs and CAN. Programming Languages Labview, C++, Java Labview remains basically the same C++ and Java now use Eclipse IDE You’ll.
2012 Beta Seminar 694 Software Engineering. Overview WPILib ▫Command-based programming ▫NetworkTables ▫SmartDashboard ▫Preferences ▫Laptop-based vision.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
ROBOTC for VEX On-Site Professional Development
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Introduction to Robo Pro
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1.
ROBOTC Training Session 1 Timothy Friez 1/10/08 Revision 1.
Forging new generations of engineers
An Objective and Component View (Not included Drive: Balance and Turret: Axis Camera)
Programming Design ROBOTC Software Principles of Engineering
Default_Routine(); - PWM Mapping /******************************************************************** * FUNCTION NAME: Default_Routine * PURPOSE: Performs.
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Introduction to Vexnet
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.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Warlocks 8/5/05 TMU Pneumatics on Robots u Simplified model Compressed Air Tank Geek Safety Glasses 60 lbs Pneumatic Cylinder Whoa! That’s a lot of force.
Session 12 Sensors and Timers. 3 Main Types of Robot Projects Command-Based Robot A more complicated project for more complicated robots Iterative Robot.
The PC Game Adapter. The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably.
Session 11 Intro to FRC API.
User Interface – Switch Panel 6 Gang Switch Panel Configuration guide RS485 Terminal Fixing hole Bayonet Front ViewBack View.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Wheels: Go Forward Speakers: Say “Hello” OSCAR: Go Forward Say “Hello” Remote Control PC.
Cass Lake Bena Robotics Team 3134 & Team  Drivetrains  Electrical System  Operator Interface.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
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.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Introduction to Vexnet
BEST Robotic, Inc. MATLAB/Simulink Team Training
Do-more Technical Training
CNC CONTROL SYSTEM AND PART PROGRAMMING
ROBOTC for VEX Online Professional Development
ROBOTC for VEX On-Site Professional Development
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
Config File and Robot Telemetry Implementation
Control Loops Nick Schatz FRC 3184.
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
Electrical Trainings MVRT
Trainings 10/28 Woooooo!!.
Fe Maidens Programming
Lesson 5: Review of Assessment and Introduction to Command Based Code
Controlling your quadcopter
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
Lesson 6: Command-based (continued)
Module – 4: Single Acting Cylinder
Field Management System
Robotics Programming Using Shaft Encoders
1.15: Dual Joystick Control (Tank)
Controlling your quadcopter
Introduction to Programing the Cortex for BEST
Presentation transcript:

Training 11/11/16 Robot Code (WPILib)

WPILib Install link

FRC Command Based Robot Subsystems Define different systems of the robot Commands Define operation of the robot using capabilities from subsystems Operator Interface Defines buttons and axes of joysticks and maps presses to commands Robot Schedules the actions of the robot (commands) Transitions between modes (Disabled, Auton, Teleop)

Subsystem The different parts of the robot Subsystems extend the Subsystem class Examples of Subsystems DriveTrain Elevator Arm Flywheels

Robot Contains methods to control the states of the robot and what happens robotInit autonInit/Periodic teleopInit/Periodic disabledInit/Periodic Iterative robot Loops through method multiple times, updating each time Contains objects of the subsystems

Commands A set of instructions that will move parts of the robot or trigger reactions Child classes of Command Commands run when buttons are pressed, or when scheduled by other actions CommandGroup - Group of commands that run simultaneously or sequentially No Wait for data Initialize Execute IsFinished Exit Yes Yes Yes Yes

OI Operator Interface Maps buttons to commands for the robot Button pressed? do this Button toggled? do this Trigger pulled? do this

Motor Controllers (CANTalon) Control the output to the motors CANTalons have special features Built in control loops Special interface for sensors (FeedbackSensors) Multiple control modes Speed, Position, etc. Used in any Subsystem that uses motors

WPILib Pneumatics

Double Solenoid Solenoids actuate pistons forward and backwards DoubleSolenoid class has two modes (extend and retract) Requires A and B channels (air in, air out)

Compressor System Compresses air for the robot Needs the id of the PCM Can be turned on and run throughout match, or only once

WPILib Sensors

Digital Input/Output Digital = 0 or 1/yes or no Connects to DIO on roboRIO Digital Input/Output requires port number Use get() method to get the value of the sensor Sensors include: Limit Switches,

Analog Input/Output Analog = between 0 and 1 Ex. 0.1, 0.5, 0.635, 1, 0, 0.124568241, etc. Plug into Analog Input on roboRIO Requires port number

Encoder Reads ticks from the encoder Has methods to set the number of ticks per rotation to make calculations easier Two ports (A and B) in constructor

TalonSRX Feedback sensors Different types of sensors (Quad, Analog, Magnetic) Easy to implement, just select the sensor type and use the appropriate methods provided by the CANTalon class

First Robot Project!