Please

Hi everyone!

We are trying to run some default test code on our robot, and we are running into one singular error, as shown below:

Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!
Default teleopInit() method... Overload me!

Here is a copy of our code, for reference:


/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved.                        */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package org.usfirst.frc.team5212.robot;


/**
 * This is a demo program showing the use of the RobotDrive class, specifically
 * it contains the code necessary to operate a robot with tank drive.
 */

/*
public class Robot extends IterativeRobot {
	private DifferentialDrive m_myRobot;
	private Talon l1, l2, r1, r2; 
	private SpeedControllerGroup right, left;
	private Joystick m_leftStick;
	private Joystick m_rightStick;

	@Override
	public void robotInit() {
		// motors specifically 
		l1 = new Talon(0);
		l2 = new Talon(1);
		r1 = new Talon(2);
		r2 = new Talon(3);

		left = new SpeedControllerGroup(l1, l2);
		right = new SpeedControllerGroup(r1, r2);

		m_myRobot = new DifferentialDrive(left, right);
		m_leftStick = new Joystick(0);
		m_rightStick = new Joystick(1);
	}

	@Override
	public void teleopPeriodic() {
		m_myRobot.tankDrive(m_leftStick.getY(), m_rightStick.getY());

	}

	@Override
	public void teleopInit() {
		int x = 3;
		System.out.println(x);
	}
}
 */
//Imports the other files needed by the program
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.Trigger;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;

public class Robot extends IterativeRobot {
	
	DifferentialDrive myRobot;
	Joystick stickl, stickr;
	Timer timer;
	SpeedControllerGroup left;
	SpeedControllerGroup right;

	public void robotInit() {
		left = new SpeedControllerGroup(new Talon(1), new Talon(2));
		right = new SpeedControllerGroup(new Talon(3), new Talon(4));
		myRobot = new DifferentialDrive(left, right);
		
		stickl = new Joystick(0);
		stickr = new Joystick(1);
	}
	
        @Override
	public void teleopInit() {
		
	}

	@Override
	public void teleopPeriodic() { 
		myRobot.tankDrive(stickl.getY(), stickr.getY()); 
	}
}

We appreciate any advice/help y’all could give us. Thank you!

It’s not an actual error. Just a warning. So you should have no actual problems.

Like Airplane said, it’s a warning. However, you can clear it by overriding the method like it says and having the override be empty.

If you look at their code, they have overridden the teleopInit method.
Its not immediately obvious how they are still getting that message with the code provided. It’s also not clear how they are seeing that message repeatedly, as teleopInit should only be called once per Enable button press (maybe someone toggled enable/disable 99 times?).

Other than the warning message printed, does the code perform correctly?

I copy and pasted your code into a new Java project and can’t reproduce the issue you’re seeing. Are there other Java files in the project? What does build.properties contain?