Mr.Roboto3335
14-01-2015, 21:10
I've been trying to deploy code to the roborio for a few days now. It's not connecting to the driver station either. It finds it in eclipse but it shows this [echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-3335.local:22
[scp] done.
[scp] Connecting to roboRIO-3335.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-3335.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] start-stop-daemon: warning: killing process 3227: No such process
BUILD SUCCESSFUL
Total time: 8 seconds and here's the code
package org.usfirst.frc.team3335.robot;
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. 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. */
/*----------------------------------------------------------------------------*/
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.vision.*;
public class Robot extends IterativeRobot {
private Joystick controller;
private RobotDrive drive;
private SpeedController one, two, three, four, lift;
private AxisCamera camera;
private DigitalInput limit;
public void robotInit() {
joystickInit();
sensorInit();
robotDriveInit();
speedControllerInit();
}
public void sensorInit() {
limit = new DigitalInput(1);
}
public void joystickInit() {
controller = new Joystick(1);
}
public void robotDriveInit() {
drive = new RobotDrive(one, two, three, four);
}
public void speedControllerInit() {
one = new Talon(1);
two = new Talon(2);
three = new Talon(3);
four = new Talon(4);
lift = new Talon(5);
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
double y = getDeadZone(controller.getY(), 0.1);
double x = getDeadZone(controller.getThrottle(), 0.1);
drive.arcadeDrive(y, x);
if (controller.getAxis(Joystick.AxisType.kZ) > 0.8) {
two.set(-1);
} else if (controller.getAxis(Joystick.AxisType.kZ) < -0.8 && limit.get()) {
two.set(1);
} else {
two.set(0);
}
}
public void testPeriodic() {
}
public double getDeadZone(double axis, double zone) {
return Math.abs(axis) > zone ? axis : 0;
}
}
does this mean it was successful? I'm so confused. This is my first time using eclipse. And if anyone knows as to the roborio's:confused not wanting to show up on the driver station, it'd be a great help.
[scp] Connecting to roboRIO-3335.local:22
[scp] done.
[scp] Connecting to roboRIO-3335.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-3335.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] start-stop-daemon: warning: killing process 3227: No such process
BUILD SUCCESSFUL
Total time: 8 seconds and here's the code
package org.usfirst.frc.team3335.robot;
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. 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. */
/*----------------------------------------------------------------------------*/
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.vision.*;
public class Robot extends IterativeRobot {
private Joystick controller;
private RobotDrive drive;
private SpeedController one, two, three, four, lift;
private AxisCamera camera;
private DigitalInput limit;
public void robotInit() {
joystickInit();
sensorInit();
robotDriveInit();
speedControllerInit();
}
public void sensorInit() {
limit = new DigitalInput(1);
}
public void joystickInit() {
controller = new Joystick(1);
}
public void robotDriveInit() {
drive = new RobotDrive(one, two, three, four);
}
public void speedControllerInit() {
one = new Talon(1);
two = new Talon(2);
three = new Talon(3);
four = new Talon(4);
lift = new Talon(5);
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
double y = getDeadZone(controller.getY(), 0.1);
double x = getDeadZone(controller.getThrottle(), 0.1);
drive.arcadeDrive(y, x);
if (controller.getAxis(Joystick.AxisType.kZ) > 0.8) {
two.set(-1);
} else if (controller.getAxis(Joystick.AxisType.kZ) < -0.8 && limit.get()) {
two.set(1);
} else {
two.set(0);
}
}
public void testPeriodic() {
}
public double getDeadZone(double axis, double zone) {
return Math.abs(axis) > zone ? axis : 0;
}
}
does this mean it was successful? I'm so confused. This is my first time using eclipse. And if anyone knows as to the roborio's:confused not wanting to show up on the driver station, it'd be a great help.