mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
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:
committed by
James Kuszmaul
parent
fb53eea6b2
commit
c1f68eb2b0
30
wpilibc/wpilibC++Devices/src/CANTalon.cpp
Normal file
30
wpilibc/wpilibC++Devices/src/CANTalon.cpp
Normal 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() {
|
||||
}
|
||||
Reference in New Issue
Block a user