18#pragma GCC diagnostic push
19#pragma GCC diagnostic ignored "-Wconversion"
22#pragma warning(disable : 4522 4458 4522)
25#include "wpi/sendable/Sendable.h"
26#include "wpi/sendable/SendableHelper.h"
27#include "frc/motorcontrol/MotorController.h"
28#include "frc/MotorSafety.h"
29#include "wpi/raw_ostream.h"
31#include <hal/SimDevice.h>
35#pragma GCC diagnostic pop
53 public virtual frc::MotorController,
54 public frc::MotorSafety,
56 public wpi::SendableHelper<WPI_BaseMotorController>
77 virtual void Set(
double speed);
84 virtual double Get()
const;
Base motor controller features for all CTRE CAN motor controllers.
Definition: BaseMotorController.h:578
VEX Victor SPX Motor Controller when used on CAN Bus.
Definition: WPI_BaseMotorController.h:57
virtual void Disable()
Common interface for disabling a motor.
virtual void Set(ControlMode mode, double demand0, DemandType demand1Type, double demand1)
virtual bool GetInverted() const
Common interface for returning the inversion state of a speed controller.
WPI_BaseMotorController & operator=(WPI_BaseMotorController const &)=delete
WPI_BaseMotorController()=delete
virtual void Set(ControlMode mode, double value)
Sets the appropriate output on the talon, depending on the mode.
virtual double Get() const
Common interface for getting the current set speed of a speed controller.
WPI_BaseMotorController(WPI_BaseMotorController const &)=delete
virtual void SetInverted(InvertType invertType)
Common interface for inverting direction of a speed controller.
virtual void SetVoltage(units::volt_t output)
Sets the voltage output of the SpeedController.
WPI_BaseMotorController(int deviceNumber, const char *model)
Constructor for a WPI_BaseMotorController.
virtual void SetInverted(bool isInverted)
Common interface for inverting direction of a speed controller.
virtual void StopMotor() override
Common interface to stop the motor until Set is called again.
virtual void Set(double speed)
Common interface for setting the speed of a simple speed controller.
std::string GetDescription() const override
virtual void InitSendable(wpi::SendableBuilder &builder)
Initialize sendable.
virtual ~WPI_BaseMotorController()
ControlMode
Choose the control mode for a motor controller.
Definition: ControlMode.h:11
DemandType
How to interpret a demand value.
Definition: DemandType.h:10
InvertType
Choose the invert type of the motor controller.
Definition: InvertType.h:14
namespace ctre
Definition: paramEnum.h:5