mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
There's a CANTalon class, but it doesn' do anything yet Change-Id: Ib397db6fc0376f9de95e5efc42a223700be3dbca
31 lines
906 B
C++
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;
|
|
};
|