Pennsylvania

Program It!

Programming (and other stuff)! Agenda • New Electronics Rules & Options This Year from REV • New Rules for Matches • What is BLOCKS? • Creating a Teleop Opmode • Creating an Autonomous Opmode • REV Color Sensor • Using Vuforia to “see” the VuMark Pattern

Robots: Power Switches Power Switch Must Be One of These… REV Robotics (REV‐31‐1387)

MATRIX (50‐0030)

TETRIX (W39129)

Power Switch on the Modern Robotics Power Distribution Module  Is NOT SUFFICIENT This Year!

Robots: Alternate Electronics REV Robotics Expansion Hub

Each Hub (Max. 2 Per Robot): • 4 Motors (with encoders) • 6 Servos • Analog (4), I2C (4), Digital (8) • Bosch 9 axis IMU

Cons: Pros: • New Motor Connectors • Cheaper • Smaller Footprint • New Power Connectors • Fewer Wires • Integrated IMU

Robots: DEMO Bot Comparison Modern Robotics

REV Robotics

Robots: REV vs. Modern Modules Size Scale

$175 REV Robotics

$420 Modern Robotics

New Rules for Playing Matches • • • • •

Autonomous Mode Starts Autonomous Mode Ends after 30 Seconds Immediately Pick Up Controllers & Initialize Teleop (5 Seconds) Game Announcer Counts Down 3‐2‐1 Driver Control Period (Teleop) Starts! NOTE: FTAs cannot restart robots; Refs cannot fix robots that are entangled or flipped over

What Is Blocks? https://www.firstinspires.org/resource‐library/ftc/technology‐information‐and‐resources

Blocks Programming Tool • A new graphical development tool  available for FTC teams • Powered by Google’s Blockly  programming language • Create, modify and store programs  directly on FTC Robot Controller • Replaces App Inventor – App Inventor Phased Out After This  Season 

Robot Controller

Code

Start With FTC App Version 3.4! • Download and Install Driver Station and Robot Controller • Important to Use Latest Version (3.4)  – Minimum Version for this Season is 3.3 – Latest Bug Fixes – Latest Support for Blocks and OnBot Java – Includes Images for Game

Enter Programming Mode • Tap “3 dots” in Upper Right of Robot  Controller • Choose “Program & Manage” • This is Displayed

Connect Computer to RC Phone • Click on Wi‐Fi Icon on Taskbar • Click on the RC Phone SSID – In this example: DIRECT‐Zb‐4433‐Y‐RC – Note that this may not appear. – If it is not there, click “Network & Internet  Settings” and add it manually

• Enter the Password Listed on RC Phone

Open a Browser (Chrome Recommended) • Enter URL Listed on the RC  Phone (e.g. 192.168….) • Click on “Blocks” to Begin  Programming • Or OnBotJava if you like java!

Manage Option

Blocks • Create New Op Mode – Start coding from scratch, OR – Using one of the Examples

• Upload Op Mode – Send a *.blk file to the RC  Phone

• Download Selected Op  Modes – Transfer from RC Phone to  Computer – Look in Downloads Folder

Make sure you back up your Blocks Programs!!!

Starting a New Teleop Op Mode • Sets Up The Basics – Initialization – Wait for Start – Event Driven Loop – Automatically Stops  After 2 Minutes

Initialization • “Set” creates a variable and  assigns it a value. • Click “Variable” on Left Side of  Screen. • Drag “set varname to” into  program.

Loop: Get Gamepad Data • Assign gamepad1 joysticks  to variables MotorPower & MotorPower2 • Scale them by multiplying  by 0.5 – This is a bit extreme BUT – Need some check to keep  them from being < 0 or > 1

Other Buttons Control Servos • Adjust values of ClawPos &  ArmPos based on triggers  and bumpers

Set Motor Power & Servo Positions • Set motor power • Set servo positions • Loop back to beginning and  wait for more events

Simple Linear Autonomous Op Mode

Better Simple Autonomous Op Mode

Should use something like this in each loop

Color Sensor Example

Click dropdown list to see what you called the sensor, In this case: color

Use Color to Control the Arm

Using Vuforia for Image Recognition • Click “Create New Opmode” • Enter an Op Mode Name • Pull down list of Samples: – ConceptVuMarkDetection

Vuforia Continued… • Fully functional app you can  customize!

Vuforia – Recognize Images

Vuforia – Get Coordinates Default is Vuforia.track

Good Luck!

Pennsylvania

Robots: Alternate Electronics. REV Robotics Expansion Hub. Each Hub (Max. 2 Per Robot):. • 4 Motors (with encoders). • 6 Servos. • Analog (4), I2C (4), Digital (8). • Bosch 9 axis IMU. Pros: • Cheaper ... Robots: DEMO Bot Comparison. Modern Robotics ... If it is not there, click “Network & Internet. Settings” and add it ...

3MB Sizes 7 Downloads 249 Views

Recommend Documents

Pennsylvania Services
surveys collected in 2014–2015 and 2015–2016 from U.S. K–12 school principals. These data are from a multi-year Google-Gallup study of U.S. K–12 students, parents, teachers, principals, and superintendents. This report: goo.gl/tPjGoP. All rep

pennsylvania statewide 2016 - RealClearPolitics
Survey conducted October 20 through October 22, 2016. 1,997 likely General Election voters participated in the survey. Survey weighted to match expected ...

pennsylvania statewide 2016 - RealClearPolitics
Survey conducted October 20 through October 22, 2016. 1,997 likely General Election voters participated in the survey. Survey weighted to match expected ...

Pennsylvania services
for Pennsylvania schools to implement CS education for all students. • Most confuse CS as ... more report they are usually girls, Black, or Asian. To help prepare ...

PENNSYLVANIA STATEWIDE 2016
Oct 20, 2016 - Gary Johnson. 5%. 3%. 8%. Someone else. 0%. 1%. 5%. Undecided. 7%. 6%. 12%. BY GENDER. Column %. Female. Male. Donald Trump.

Pennsylvania - The College Board
Each year, the College Board helps more than seven million students .... Table 17: Natural Sciences, Social Sciences and History ... Table 26: Intended College Major, Degree-Level Goal. Page 1. Page 3. Page 4 ...... Using Computer Graphics.

COMMONWEALTH COURT OF PENNSYLVANIA ... - PDFKUL.COM
Jul 21, 2014 - Commonwealth Court within 10 days of the date of the Notice of Docketing. ..... The Pennsylvania Supreme Court recently explained that the ...

friday - University of Pennsylvania
Mar 23, 2018 - JORDAN SCIUTTO LABORATORY. From the. JORDAN SCIUTTO LABORATORY. Kelly L. Jordan-Sciutto. Sarah Bond. Çagla Akay Espinoza.

Pennsylvania Banshee.pdf
We're sure gonna miss him. The Undertaker combs ... He takes it off. WHEELER (O.S.). Mr. Bradley, Joe Wheeler, Spoon. River Gazette. Can I have a minute.

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT OF ...
Oct 13, 2015 - DEPARTMENT OF COMMUNITY 8; ECONOMIC DEVELOPMENT. October 13 ... Thank you for your continued interest in and support of these.

IN THE COMMONWEALTH COURT OF PENNSYLVANIA ...
in this matter. 1. On March 31, 2014, Bagwell filed a request (Request) with PDE pursuant to the Right-to-Know Law, 65 P.S. § 67.101 et seq., seeking certain records consisting of emails. Received 05/06/2015 Commonwealth Court of Pennsylvania. Filed

Pennsylvania Snowmobile Law Brochure.pdf
There was a problem loading more pages. Pennsylvania Snowmobile Law Brochure.pdf. Pennsylvania Snowmobile Law Brochure.pdf. Open. Extract. Open with.

Eastern Pennsylvania | South Jersey | Delaware Line Card
Delaware Line Card. We cover every ... Our main focus as an agency is to provide service to our customers with the quality products we represent. No job is too ...

2016 racetrack casino benchmark report - Pennsylvania Gaming ...
new and renovated racing facilities. These new facilities such ... agricultural economy as horsemen do business within the Commonwealth by ... new racetrack casino properties and increased wagering ... impact on Pennsylvania racing and continues to b

COMMONWEALTH COURT OF PENNSYLVANIA ... Accounts
5064,. 210 Pa. Code §79.501) and indicating the relief requested. ... On April 7, 2014, the Department identified three (3) e-mails as records responsive to the Request, and denied access under the attorney-client privilege, the attorney-work ...

A4 Letterhead - Pennsylvania State Employees' Retirement System
Apr 27, 2016 - B) Annuitants and Beneficiaries. 25,156,124,601. C) Total. 52,980,640,067. $. II. Present Value of Member and Employer Contributions:.

The Liberty Bell, Philadelphia, Pennsylvania
What is the reasonable weight of the Liberty Bell? A. 100 pounds. B. 2 pounds. C. 2000 pounds. D. 5 pounds. 4. On which holiday was the Liberty Bell always rung? A. Christmas Day. B. Memorial Day. C. July 4th. D. New Year's Day. 5. What happened to t

Press Release York, Pennsylvania, USA ... - Graham Engineering
Jan 25, 2017 - (“shark skin” appearance) on the surface of tubing, caused by excessive shear in the die tooling gaps as output rates are increased. The typical ...