Stick the CanTalonSrx code in, get it to compile

There's a CANTalon class, but it doesn' do anything yet

Change-Id: Ib397db6fc0376f9de95e5efc42a223700be3dbca
This commit is contained in:
Thomas Clark
2014-11-09 13:25:18 -05:00
committed by James Kuszmaul
parent fb53eea6b2
commit c1f68eb2b0
14 changed files with 1197 additions and 478 deletions

View File

@@ -0,0 +1,30 @@
/*----------------------------------------------------------------------------*/
/* 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. */
/*----------------------------------------------------------------------------*/
#include "CANTalon.h"
#include "ctre/CanTalonSRX.h"
/**
* Constructor for the CANTalon device.
* @param deviceNumber The CAN ID of the Talon SRX
*/
CANTalon::CANTalon(uint8_t deviceNumber) {
m_impl = new CanTalonSRX(deviceNumber);
}
CANTalon::~CANTalon() {
delete m_impl;
}
void CANTalon::Set(float value, uint8_t syncGroup) {
}
float CANTalon::Get() {
return 0.0f;
}
void CANTalon::Disable() {
}