
package frc.team4215.stronghold;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Victor;
import jaci.openrio.toast.lib.log.Logger;
import jaci.openrio.toast.lib.module.IterativeModule;
import jaci.openrio.toast.lib.registry.Registrar;

public class RobotModule extends IterativeModule {

	
	Victor left;
    Victor right;
    Victor left2;
    Victor right2;
    
    private DriveTrain chassis;
    
    Joystick  leftStick;
    Joystick rightStick;
    Joystick thirdstick;

    
    private UI driveStation;
    
    UltraSonic ult;
    
    public static Logger logger;
    
    private static final String ModuleName = "stronghold";
    
    private static final String ModuleVersion = "0.0.1";
    
    @Override
    public String getModuleName() {
        
        return ModuleName;
    }
    
    @Override
    public String getModuleVersion() {
        
        return ModuleVersion;
    }
    
    @Override
    public void robotInit() {
        
        logger = new Logger("stronghold", Logger.ATTR_DEFAULT);
        
        left = Registrar.victor(0);
        left2 = Registrar.victor(1);
        right = Registrar.victor(2);
        right2 = Registrar.victor(3);
        
        chassis = new DriveTrain(left,left2, right,right2);
      
        leftStick = new Joystick(1);
        rightStick = new Joystick(0);
        thirdstick = new Joystick(2);
        
        driveStation = new UI(rightStick, thirdstick);
        ult = new UltraSonic(1);
    }
    
    @Override
    public void teleopInit(){
    	
    }
    
    @Override
    public void teleopPeriodic(){
    	double[] inputs = driveStation.getInputs();
    	chassis.drive(inputs[0], inputs[1]);
    	logger.info("Hello");

    }
    
    @Override
    public void autonomousPeriodic(){
    	
    }
    
    public void autonomousInit(){
    	startTimer();
    	
    }
}


package frc.team4215.stronghold;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Victor;
import jaci.openrio.toast.lib.log.Logger;
import jaci.openrio.toast.lib.module.IterativeModule;
import jaci.openrio.toast.lib.registry.Registrar;

public class RobotModule extends IterativeModule {

    private Victor left, right, left2, right2;
    
    private DriveTrain chassis;

    Joystick leftStick;
    Joystick rightStick;
    Joystick thirdstick;

    private UI driveStation;
    
    UltraSonic ult;
    
    public static Logger logger;
    
    private static final String ModuleName = "stronghold";
    
    private static final String ModuleVersion = "0.0.1";
    
    @Override
    public String getModuleName() {
        
        return RobotModule.ModuleName;
    }
    
    @Override
    public String getModuleVersion() {
        
        return RobotModule.ModuleVersion;
    }
    
    @Override
    public void robotInit() {
        
        RobotModule.logger =
                new Logger("stronghold", Logger.ATTR_DEFAULT);

        this.left = Registrar.victor(0);
        this.left2 = Registrar.victor(1);
        this.right = Registrar.victor(2);
        this.right2 = Registrar.victor(3);
        
        this.chassis = new DriveTrain(this.left, this.left2,
                this.right, this.right2);

        this.leftStick = new Joystick(1);
        this.rightStick = new Joystick(0);
        this.thirdstick = new Joystick(2);
        
        this.driveStation = new UI(this.rightStick, this.thirdstick);
        this.ult = new UltraSonic(1);
    }
    
    @Override
    public void teleopInit() {

    }
    
    @Override
    public void teleopPeriodic() {
        double[] inputs = this.driveStation.getInputs();
        this.chassis.drive(inputs[0], inputs[1]);
        RobotModule.logger.info("Hello");

    }
    
    @Override
    public void autonomousPeriodic() {

    }
    
    @Override
    public void autonomousInit() {
        Autonomous.startTimer();

    }
}

fix errors and simplify fields