2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00

robot works or somethin

This commit is contained in:
Adam Long 2015-01-18 14:05:22 +00:00
commit 213464dd64
4 changed files with 8 additions and 5 deletions

View File

@ -2,6 +2,7 @@
#include <cmath>
#include "../DentRobot.h"
Drive::Drive() : Command("Drive"){
Requires(DentRobot::drivetrain);
}
void Drive::Initialize(){
}

View File

@ -1,6 +1,8 @@
#ifndef DRIVE_H
#define DRIVE_H
#include "../CommandBase.h"
#include "../DentRobot.h"
#include "Commands/Command.h"
#include "WPILib.h"

View File

@ -3,10 +3,10 @@
#include "../Commands/Drive.h"
Drivetrain::Drivetrain() : Subsystem("Drivetrain"){
frontLeft=new Talon(0);
frontRight=new Talon(1);
backLeft=new Talon(2);
backRight=new Talon(3);
frontLeft=new CANTalon(40);
frontRight=new CANTalon(41);
backLeft=new CANTalon(42);
backRight=new CANTalon(43);
drive=new RobotDrive(frontLeft, frontRight, backLeft, backRight);
}
void Drivetrain::InitDefaultCommand(){

View File

@ -5,7 +5,7 @@
class Drivetrain: public Subsystem
{
private:
Talon *frontLeft, *frontRight, *backLeft, *backRight;
CANTalon *frontLeft, *frontRight, *backLeft, *backRight;
RobotDrive *drive;
public:
Drivetrain();