givikuna / givimakearobotmove Goto Github PK
View Code? Open in Web Editor NEWI'm trying to make a robot move using WPILib
I'm trying to make a robot move using WPILib
Task :compileJava FAILED
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:3: error: cannot find symbol
import static frc.robot.Constants.DriveTrainConstants.;
^
symbol: class DriveTrainConstants
location: class Constants
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:5: error: package com.ctre.phoenix.motorcontrol does not exist
import com.ctre.phoenix.motorcontrol.ControlMode;
^
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:6: error: package com.ctre.phoenix.motorcontrol does not exist
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
^
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:7: error: package com.ctre.phoenix.motorcontrol does not exist
import com.ctre.phoenix.motorcontrol.NeutralMode;
^
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:8: error: package com.ctre.phoenix.motorcontrol.can does not exist
import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX;
^
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:17: error: cannot find symbol
public final WPI_TalonFX leftParent;
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:18: error: cannot find symbol
public final WPI_TalonFX rightParent;
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:19: error: cannot find symbol
private final WPI_TalonFX leftChild;
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:20: error: cannot find symbol
private final WPI_TalonFX rightChild;
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:48: error: cannot find symbol
private void configureMotor(WPI_TalonFX motor, boolean left) {
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:7: error: cannot find symbol
import static frc.robot.Constants.FlagConstants.;
^
symbol: class FlagConstants
location: class Constants
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:28: error: cannot find symbol
private final Drive drive = new Drive();
^
symbol: class Drive
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:30: error: cannot find symbol
public DriveTrain driveTrain = new DriveTrain();
^
symbol: class DriveTrain
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:32: error: cannot find symbol
private Joystick leftDriveJoystick = new Joystick(0); // should be in port 0
^
symbol: class Joystick
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:33: error: cannot find symbol
private Joystick rightDriveJoystick = new Joystick(1); // should be in port 1
^
symbol: class Joystick
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:37: error: cannot find symbol
public JoystickButton aButton = new JoystickButton(xboxController, 1);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:38: error: cannot find symbol
public JoystickButton bButton = new JoystickButton(xboxController, 2);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:39: error: cannot find symbol
public JoystickButton xButton = new JoystickButton(xboxController, 3);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:40: error: cannot find symbol
public JoystickButton yButton = new JoystickButton(xboxController, 4);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:41: error: cannot find symbol
public JoystickButton lbButton = new JoystickButton(xboxController, 5);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:42: error: cannot find symbol
public JoystickButton rbButton = new JoystickButton(xboxController, 6);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:43: error: cannot find symbol
public JoystickButton startButton = new JoystickButton(xboxController, 8);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:44: error: cannot find symbol
public JoystickButton backButton = new JoystickButton(xboxController, 7);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:46: error: cannot find symbol
public Trigger rightTrigger = new Trigger(() -> (xboxController.getRightTriggerAxis() > 0.75));
^
symbol: class Trigger
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:47: error: cannot find symbol
public Trigger leftTrigger = new Trigger(() -> (xboxController.getLeftTriggerAxis() > 0.75));
^
symbol: class Trigger
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:24: error: cannot find symbol
leftParent = new WPI_TalonFX(LEFT_PARENT_ID);
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:24: error: cannot find symbol
leftParent = new WPI_TalonFX(LEFT_PARENT_ID);
^
symbol: variable LEFT_PARENT_ID
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:25: error: cannot find symbol
rightParent = new WPI_TalonFX(RIGHT_PARENT_ID);
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:25: error: cannot find symbol
rightParent = new WPI_TalonFX(RIGHT_PARENT_ID);
^
symbol: variable RIGHT_PARENT_ID
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:26: error: cannot find symbol
leftChild = new WPI_TalonFX(LEFT_CHILD_ID);
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:26: error: cannot find symbol
leftChild = new WPI_TalonFX(LEFT_CHILD_ID);
^
symbol: variable LEFT_CHILD_ID
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:27: error: cannot find symbol
rightChild = new WPI_TalonFX(RIGHT_CHILD_ID);
^
symbol: class WPI_TalonFX
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:27: error: cannot find symbol
rightChild = new WPI_TalonFX(RIGHT_CHILD_ID);
^
symbol: variable RIGHT_CHILD_ID
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:34: error: cannot find symbol
rightChild.set(ControlMode.Follower, rightParent.getDeviceID());
^
symbol: variable ControlMode
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:35: error: cannot find symbol
leftChild.set(ControlMode.Follower, leftParent.getDeviceID());
^
symbol: variable ControlMode
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:38: error: cannot find symbol
driveBase.setDeadband(DEADBAND);
^
symbol: variable DEADBAND
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:56: error: cannot find symbol
NeutralMode.Coast); // set it so that when the motor is getting no input, it stops
^
symbol: variable NeutralMode
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:58: error: cannot find symbol
FeedbackDevice.IntegratedSensor); // configure the encoder (it's inside)
^
symbol: variable FeedbackDevice
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/subsystems/DriveTrain.java:60: error: cannot find symbol
motor.configOpenloopRamp(RAMP_RATE); // how long it takes to go from 0 to the set speed
^
symbol: variable RAMP_RATE
location: class DriveTrain
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/commands/Drive.java:43: error: method tankDrive in class DriveTrain cannot be applied to given types;
m_driveTrain.tankDrive(m_lSpeed, m_rSpeed);
^
required: HashMap<String,Double>
found: double,double
reason: actual and formal argument lists differ in length
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/commands/Drive.java:49: error: method tankDrive in class DriveTrain cannot be applied to given types;
m_driveTrain.tankDrive(0, 0);
^
required: HashMap<String,Double>
found: int,int
reason: actual and formal argument lists differ in length
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:28: error: cannot find symbol
private final Drive drive = new Drive();
^
symbol: class Drive
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:30: error: cannot find symbol
public DriveTrain driveTrain = new DriveTrain();
^
symbol: class DriveTrain
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:32: error: cannot find symbol
private Joystick leftDriveJoystick = new Joystick(0); // should be in port 0
^
symbol: class Joystick
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:33: error: cannot find symbol
private Joystick rightDriveJoystick = new Joystick(1); // should be in port 1
^
symbol: class Joystick
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:37: error: cannot find symbol
public JoystickButton aButton = new JoystickButton(xboxController, 1);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:38: error: cannot find symbol
public JoystickButton bButton = new JoystickButton(xboxController, 2);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:39: error: cannot find symbol
public JoystickButton xButton = new JoystickButton(xboxController, 3);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:40: error: cannot find symbol
public JoystickButton yButton = new JoystickButton(xboxController, 4);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:41: error: cannot find symbol
public JoystickButton lbButton = new JoystickButton(xboxController, 5);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:42: error: cannot find symbol
public JoystickButton rbButton = new JoystickButton(xboxController, 6);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:43: error: cannot find symbol
public JoystickButton startButton = new JoystickButton(xboxController, 8);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:44: error: cannot find symbol
public JoystickButton backButton = new JoystickButton(xboxController, 7);
^
symbol: class JoystickButton
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:46: error: cannot find symbol
public Trigger rightTrigger = new Trigger(() -> (xboxController.getRightTriggerAxis() > 0.75));
^
symbol: class Trigger
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:47: error: cannot find symbol
public Trigger leftTrigger = new Trigger(() -> (xboxController.getLeftTriggerAxis() > 0.75));
^
symbol: class Trigger
location: class RobotContainer
/tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/RobotContainer.java:139: error: cannot find symbol
return m_autoCommand;
^
symbol: variable m_autoCommand
location: class RobotContainer
Note: /tmp/GiviMakeARobotMove/randomthingy/src/main/java/frc/robot/Robot.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
56 errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.