Introduction

A way to run your program off the robot

Please refer to this documentation for more help. https://eashan-vytla.gitbook.io/debuggerappmaster/

MyBot Simulator Installation

1) If you haven't yet, download Robot Studio from: http://www.robotstudiosimulator.com/download.html

2) Extract the zip file

3) Click on setup.exe inside the extracted folder

4) If you get a security alert do the following:

  • First off, don't worry. This software is not a virus. I just haven't gotten my licensing for Microsoft Windows yet.

  • Press "More Info"

  • Press "Run Anyway"

4) Follow the instructions on the screen

5) You have now officially installed the application

Getting Started

Setup:

First, create a project through MyBot or clone the GitHub repo. The software has created an IntelliJ IDEA project that you need to open in IntelliJ. If you need help, then please join the community or contact the help lines on the website and we will be happy to assist you.

Writing Code:

Starting an OpMode is a fairly straight forward process:

//The name is optional
@RegisterOpMode(name = "MyFirstOpMode")
//Extend to OpMode to access the virtual robot properly
public class MyOpMode extends OpMode {
    public void init()
    {
        //Code for initialize sequence
    }

    public void loop()
    {
        //Code for loop sequence
    }
}

OpMode Functionality

Some more functions that you can call in the OpMode that aren't mandatory are:

@Override
public void start(){
    //Your Code
}

Allows you to execute code when you click start. However, this code is not called in a loop, and it only runs one time.

@Override
public void stop(){
    //Your Code
}

Allows you to execute code when you click stop. However, this code is not called in a loop, and it only runs one time.

@Override
public void init_loop(){
    //Your Code
}

Allows you to execute code in a loop when you click init.

Last updated