Files
allwpilib/wpilibc/wpilibC++Devices/include/CANTalon.h
Thomas Clark c1f68eb2b0 Stick the CanTalonSrx code in, get it to compile
There's a CANTalon class, but it doesn' do anything yet

Change-Id: Ib397db6fc0376f9de95e5efc42a223700be3dbca
2014-11-14 15:21:12 -05:00

31 lines
906 B
C++

/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2014. 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 $(WIND_BASE)/WPILib. */
/*----------------------------------------------------------------------------*/
#pragma once
#include "SafePWM.h"
#include "SpeedController.h"
#include "PIDOutput.h"
class CanTalonSRX;
/**
* CTRE Talon SRX Speed Controller
*/
class CANTalon : public MotorSafety,
public SpeedController,
public ErrorBase
{
public:
explicit CANTalon(uint8_t deviceNumber);
virtual ~CANTalon();
virtual void Set(float value, uint8_t syncGroup = 0) override;
virtual float Get() override;
virtual void Disable() override;
private:
CanTalonSRX *m_impl;
};