We have all green lights on Drive Station, and all of our wiring looks good (that we know of). Everything deploys well, but we get no response from the robot when moving the joystick. I did notice that our motor controllers keep blinking, and we get a continuous message saying " * Default teleopInit() method… Override me!
Default disabledInit() method… Override me!"
Any ideas?
I’ll upload wiring if I can get the picture up
Robot.java (1.3 KB)
What pattern are the controller lights flashing?
Motor controllers (Sparks) are constantly blinking blue, no matter what state the robot is in.
RSL is solid whenever enabled.
PDP is flashing yellow lights constantly as well.
I think the errors are because you don’t have those methods in your robot class.
Were they needed? Sorry, we’re starting from scratch on coding knowledge this year. We just stole the example code for now to try and get our dummy bot to move.
some reference code from our tank bot
package frc.robot;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Victor;
//import edu.wpi.first.wpilibj.DifferentialDrive;
public class Robot extends TimedRobot {
Victor motor0;
Victor motor1;
Joystick controller;
//DifferentialDrive m_drive;
@Override
public void robotInit() {
motor0 = new Victor(0);
motor1 = new Victor(1);
controller = new Joystick(0);
//m_drive = new DifferentialDrive(motor0, motor1);
}
@Override
public void teleopInit() {
}
@Override
public void teleopPeriodic() {
motor0.set(controller.getRawAxis(1));
motor1.set(-controller.getRawAxis(3));
// this code above is actually tank drive
//m_drive.arcadeDrive(controller.getRawAxis(0), controller.getRawAxis(1));
}
}
I would also go to the FRC Driver Station and make sure you’re getting joystick inputs to the right axes.
Just to confirm, you’re using TalonSR Spark(not SparkMax) controllers and have them plugged into PWM ports 1 and 2 (note that the ports on the Rio start at 0 (zero))?
The absence of robotInit, teleopInit, etc methods is inconsequential. The code will use a default method from the parent class in this case (which is where those “Override me” messages are coming from)
Looks like Sparks.
Joysticks are right, and we’ve added disabledInit and teleopInit, still no movement. Our Sparks won’t quit flashing no matter if the robot is enabled or not. We did get something new in our rioLog (listed below). We’re using Sparks in ports 1 and 2.
********** Robot program starting ********** Default robotInit() method... Override me! Default disabledPeriodic() method... Override me! Default robotPeriodic() method... Override me! Watchdog not fed within 0.020000s SmartDashboard.updateValues(): 0.009437s disabledInit(): 0.004931s Loop time of 0.02s overrun Warning at edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:276): Loop time of 0.02s overrun disablePeriodic(): 0.001925s robotPeriodic(): 0.001664s LiveWindow.updateValues(): 0.063579s Shuffleboard.update(): 0.000190s
Yes, you’re correct. Fingers got ahead of my brain for a moment
Did you by any chance hit space bar? Can you send a pic of your driver station?
Constant blue flashing means Brake Mode with no signal (http://www.revrobotics.com/content/docs/REV-11-1200-QS.pdf), which means either the wiring is bad, you’re wired into the wrong port, or your code is using the wrong port numbers.
So we need to see your wiring to help.
Just switched our PWM cables around, right ports, plugged in backwards. facepalm
That would definitely do it. Glad you got it working
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.