Android Programming OnBot Java.

Slides:



Advertisements
Similar presentations
EducateNXT Establishing a Bluetooth Connection. EducateNXT Establishing a Bluetooth Connection Both bricks used will require a different name. For the.
Advertisements

Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Networking By: Matt Motl… Programmer Brent Everson… Programming Mentor.
Let’s Set Up Google. Open your Google Chrome Browser.
The purpose of this PowerPoint presentation, is to help the user make the connection between a SmartPhone (iPhone or Droid) and software games written.
Introduction To Smart Devices: iPhones iPads
 General notes/quirks › Letters only in the SSID › g & b only › Use a different router for internet and robotics › Use a simple password.
Guide Demo Program installation SOP ePAD SW PM. Before you start Check “Guide” version is latest ( or ) * follow next page Latest version.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
The New FTC Platform (Connecting your legacy hardware)
Robot C Set-up FTC Clinic Nov Patrick Michaud & RobotC Curriculum
FTC New Platform Programming Workshop in Android Studio
Making your Robot Move Motorbolts. Notes This presentation will be available on the High Tech Kids’ website: hightechkids.orghightechkids.org For more.
Java Programming The Ponytail Posse - FTC #8808 9/12/15.
Audio Check 1. Wait for the support person to call your name 2. Say “Hello”. To talk, either: Click the TALK button on the screen, OR Press CTRL+F2 (COMMAND+F2.
Part II Introduction to Robot Code. How to open a new FRC robot project 1.Open LabVIEW. 2.Click "FRC cRIO Robot Project" in the upper left section "New".
DHP Agenda: How to Access Web Interface of the DHP-1320 on Access Point Mode How to Access Web Interface of the DHP-1320 on Router Mode How to Change.
IPSOS / Vodafone / Novartis Kenya 17 December 2014.
1 Mezzanine Ware (Pty) Ltd © 2014 Installing\Uninstalling the Mezzanine Helium Android application.
Session 11 Intro to FRC API.
 Follow the steps in order to solve the sync issue with the best fitness trackers;best fitness trackers  1. Reboot your Fitness Tracker and the device.
Allyson Coan Adult Services Librarian June 13, 2016 iPad Basics Part 1.
CSS ONLINE CLASSES GUIDELINES CSS-2017 Sessions Contact: CSS Competition Zone Pakistan.
PROGRAMMING FTC ROBOTS WITH ANDROID STUDIO EAGLE ROBOTICS TEAM 7373 JORDAN MOSS AND BRIAN BAARS.
WHAT ARE THE STEPS TO CONNECT MY HP DESKJET 3520 TO WI-FI?
After Construction Name: Per #:.
How to Start an Audio Meeting
Student iPad Configurations
INTRO to PIXLR.com.
How to SWIVl: Using a Gen 2 SWIVL RObot
OpModes in FTC Eric Golde.
Getting Started: Arxterra Control Panel & Application
IDE and Phone Setup Overview Mike Zook 20-Sep-2016.
FTC Driver Station Setup and Operation Mike Zook 20-Sep-2016.
Always Connected introduces Tigo SMART 3.0 This guide is interactive!
Introduction to Autonomous Programming
How to connect your brick
Configuring Windows 10 for Your Studio
FTC Driver Station Setup and Operation Mike Zook 20-Sep-2016.
Getting Started Sec 9-2 Web Design.
Programming FTC Robots with Android Studio
GETTING STARTED ALL YOU NEED TO KNOW TO MAKE YOUR ROBOT MOVE
1. Press the Power button or switch to flip on the printer, if it is turn off. 2. From the Home display screen on the product control panel, click the.
Installing the HP LaserJet Pro 500 color MFP M570 printer software in Windows on a Wireless Network & Wired Network.
Basics for Robotics Programming
Programming Workshop Quixilver 8404.
Install and Run the Kronos Mobile App
Tablet and eBook Orientation
UW Trustee Conference Calls
Introduction to EV3Dev: Setup with Python
Sensors Training.
Tablet and eBook Orientation
ConnectPro User Guide for Students
Phone Setup Overview Mike Zook 20-Sep-2016.
How to install App from Google Play
Always Connected introduces Tigo SMART 3.1 This guide is interactive!
1/17/2019.
How to Create a you tube Channel Using your Gmail Account
Block Programming Hello my name is Stephanie. I have been apart of FIRST for 6 years and have 3 years of programming experience. I am currently a member.
Introduction to AppInventor
Dell Latitude Laptop Student setup.
Clemson For Android Devices and Wi-Fi Setup
Clemson For iOS Devices and Wi-Fi Setup
Tablet and eBook Orientation
How to Login to English Central
Programming your Robot
Downloading & Registering
Task 1 You are going to use the Makey Makey arrow inputs to create a joystick / games controller. Step 1: Connect Makey.
Open your Play Store, Look for: Kyocera Mobile Print
Precision Spine Inc. Webmail User Guide.
Presentation transcript:

Android Programming OnBot Java

Getting Started My recommendation is that “novice” teams use OnBot Java Programming is via a web browser No large download Program is on the Robot Controller so if programmer is absent, another computer can be used Via WiFi – Phone can stay on the robot and you don’t have to connect a cable to laptop Why Android Studio Much nicer development environment Can build the code without the robot Better Coding Help Linking to external libraries like OpenCV

Getting Started On Line Assistance https://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/ftc-onbot-java-tutorial.pdf https://github.com/ftctechnh/ftc_app/wiki/OnBot-Java-Tutorial

Setup The Phones Make sure the phones are configured such that the Drive Station is named XXXX-DS and Robot Controller is XXXX-RC Phones should be in Airplane Mode but WiFi on (Bluetooth Off) From the Google Play Store install the Driver Station on your Driver Station phone and Robot Controller on the Robot Controller Phone DO NOT INSTALL BOTH APPS ON THE SAME PHONE

Setup the Phones Pair the Robot Controller and Driver Station Start the Robot Controller app on the Robot Controller Start the Driver Station app on the Driver Station On the Driver Station – Click on the “three dots” in upper right and click on Setting Select Connect With Robot Controller Find the Robot Controller and Select it. Note, the filter will cause it to only show Robot Controllers with the same team number as the Driver Station On The Robot Controller, accept the connection The circle in the middle should show Network:XXXX-RC

Setup the Phones Set up a “null” configuration on the Robot Controller A “null” configuration allows for some early exploring without having to have motors and/or sensors connected On either phone, click on the three dots in right hand corner and select Configure Robot Click on New Click on Ok Click on Save and call it null (or any name) Activate it (The top red bar should say Active Configuration: null) Click the back button

Your First OpMode On either phone, click the three dots and then Program and Manage This screen will show what information is needed to connect to the Robot Controller.

Your First OpMode Connect a laptop to the Robot Controller via WiFi (no cables). Open a web browser and enter the HTTP address provided by the phone

Your First OpMode Create the first program by clicking on “+” Go your first OpMode GoTeam and select TeleOp Type in the code (Next Page)

Your First OpMode package org.firstinspires.ftc.teamcode; Import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.util.ElapsedTime; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; @TeleOp(name="GoTeam", group="Aluminati") public class GoTeam extends LinearOpMode { private ElapsedTime runtime = new ElapsedTime(); @Override public void runOpMode() { double leftStick; double rightStick; telemetry.addData("Status", "Initialized"); telemetry.update(); // Wait for the game to start (driver presses PLAY) waitForStart(); runtime.reset(); // run until the end of the match (driver presses STOP) while (opModeIsActive()) { leftStick = gamepad1.left_stick_y; rightStick = gamepad1.right_stick_y; telemetry.addData("Joystick", "left (%.2f), right (%.2f)", leftStick, rightStick); telemetry.addData("Status", "Run Time: " + runtime.toString()); }

Your First OpMode After typing in the code, click on the Wrench If you did not get “Build succeeded!”, then you will have to fix the typos in the code.

Your First OpMode Connect a Joystick to the Driver Station Only one joystick is needed so a hub is not required Enable the joystick by pushing Start and A. This should light a joystick above User 1 In the middle of the Driver Station is two upside down triangles. The left is for Autonomous OpModes and the right is for TeleOp OpModes Click the right upside down triangle and select the OpMode GoTeam Press the center Init Press Run (Play) Button The status should show time increasing and moving the joysticks should show the joystick values.

Your First OpMode Note – Forward on the joysticks are negative numbers. Generally, you will want to put a “-” sign in from of gamepad1 when reading the y joystick value for the driving functions.

Getting Started with OnBot Java Take advantage of the Sample Programs – Start with one and then modify for your use ALWAYS DISCONNECT your laptop when you compete. It can slow down your robot processing if you don’t disconnect.