Nova First Tech Challenge Codes

// Importing Libraries

package com.qualcomm.ftcrobotcontroller.opmodes;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.util.*;

// Created by Lorenzo on 12/05/2015

public class AutonomousBlueOP extends OpMode {

// Declaring Variables
DcMotor leftMotor;
DcMotor rightMotor;
DcMotor leftMotor2;
DcMotor rightMotor2;
DcMotor gripperExtension;
DcMotor spinMotor;
Servo gripper;
ElapsedTime time;

// Declaring Servo Positions
final double GRIPPER_CLOSED_POSITION = 0.5;
final double GRIPPER_OPEN_POSITION = 1.0;

// Declaring Power Variables
final double maxPower = -0.5;
final double lowPower = maxPower / 5;

[…]

As Head Coder of a FTC team, I was in charge of creating programs to get Nova, our robot, to accomplish the required tasks both in autonomous and gamepad-driven modes. We had to modify the official Android app to add our own opmodes, coded in Java, specifically made for our robot. See below for some examples.

Features

  • Autonomous
  • Gamepad Driven
  • Java
Share

Related Work

Java Codes

Java Codes

Different java programs I coded during my stay in Miami

Chess Game

Chess Game

A 2-player chess game coded using Wolfram Language

iMaths

iMaths

iMaths, a calculator app for high school students