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:
commit
213464dd64
@ -2,6 +2,7 @@
|
||||
#include <cmath>
|
||||
#include "../DentRobot.h"
|
||||
Drive::Drive() : Command("Drive"){
|
||||
Requires(DentRobot::drivetrain);
|
||||
}
|
||||
void Drive::Initialize(){
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef DRIVE_H
|
||||
#define DRIVE_H
|
||||
|
||||
#include "../CommandBase.h"
|
||||
#include "../DentRobot.h"
|
||||
#include "Commands/Command.h"
|
||||
#include "WPILib.h"
|
||||
|
||||
|
@ -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(){
|
||||
|
@ -5,7 +5,7 @@
|
||||
class Drivetrain: public Subsystem
|
||||
{
|
||||
private:
|
||||
Talon *frontLeft, *frontRight, *backLeft, *backRight;
|
||||
CANTalon *frontLeft, *frontRight, *backLeft, *backRight;
|
||||
RobotDrive *drive;
|
||||
public:
|
||||
Drivetrain();
|
||||
|
Loading…
Reference in New Issue
Block a user