36#include <frc/motorcontrol/MotorController.h>
38#include <wpi/deprecated.h>
70 friend class ::ConfigBase;
222 WPI_DEPRECATED(
"Use GetMotorType() instead")
375#ifndef __FRC_ROBORIO__
427 int pidSlot = 0,
double arbFeedforward = 0,
int arbFFUnits = 0);
Definition: CANAnalog.h:44
Definition: CANEncoder.h:45
Definition: CANPIDController.h:56
Definition: CANSensor.h:42
Definition: CANSparkBase.h:72
Definition: CANSparkFlex.h:38
Definition: CANSparkLowLevel.h:51
uint32_t GetFirmwareVersion()
Definition: CANSparkLowLevel.cpp:87
static const uint8_t kAPIBuildVersion
Definition: CANSparkLowLevel.h:75
std::vector< uint8_t > GetSerialNumber()
Definition: CANSparkLowLevel.cpp:117
MotorType
Definition: CANSparkLowLevel.h:78
TelemetryID
Definition: CANSparkLowLevel.h:136
void * m_sparkMaxHandle
Definition: CANSparkLowLevel.h:435
FeedbackSensorType
Definition: CANSparkLowLevel.h:393
static const uint8_t kAPIMajorVersion
Definition: CANSparkLowLevel.h:73
SparkModel
Definition: CANSparkLowLevel.h:164
PeriodicStatus1 GetPeriodicStatus1()
Definition: CANSparkLowLevel.cpp:187
static void EnableExternalUSBControl(bool enable)
Definition: CANSparkLowLevel.cpp:243
MotorType m_motorType
Definition: CANSparkLowLevel.h:431
int GetDeviceId() const
Definition: CANSparkLowLevel.cpp:119
ParameterStatus
Definition: CANSparkLowLevel.h:90
@ kNotImplementedDeprecated
std::string GetFirmwareString()
Definition: CANSparkLowLevel.cpp:102
PeriodicStatus0 GetPeriodicStatus0()
Definition: CANSparkLowLevel.cpp:162
REVLibError SetpointCommand(double value, CANSparkLowLevel::ControlType ctrl=ControlType::kDutyCycle, int pidSlot=0, double arbFeedforward=0, int arbFFUnits=0)
Definition: CANSparkLowLevel.cpp:221
PeriodicStatus2 GetPeriodicStatus2()
Definition: CANSparkLowLevel.cpp:202
virtual ~CANSparkLowLevel()
Definition: CANSparkLowLevel.cpp:83
static void SetEnable(bool enable)
Definition: CANSparkLowLevel.cpp:248
float GetSafeFloat(float f)
Definition: CANSparkLowLevel.cpp:232
REVLibError RestoreFactoryDefaults(bool persist=false)
Definition: CANSparkLowLevel.cpp:237
SparkModel m_expectedSparkModel
Definition: CANSparkLowLevel.h:432
void SetPeriodicFrameTimeout(int timeoutMs)
Definition: CANSparkLowLevel.cpp:147
static const uint32_t kAPIVersion
Definition: CANSparkLowLevel.h:76
PeriodicFrame
Definition: CANSparkLowLevel.h:99
MotorType GetInitialMotorType()
Definition: CANSparkLowLevel.cpp:121
REVLibError SetPeriodicFramePeriod(PeriodicFrame frame, int periodMs)
Definition: CANSparkLowLevel.cpp:129
REVLibError SetFollow(FollowConfig config)
Definition: CANSparkLowLevel.cpp:214
void SetCANMaxRetries(int numRetries)
Definition: CANSparkLowLevel.cpp:152
MotorType GetMotorType()
Definition: CANSparkLowLevel.cpp:125
void SetControlFramePeriodMs(int periodMs)
Definition: CANSparkLowLevel.cpp:157
ControlType
Definition: CANSparkLowLevel.h:80
static const uint8_t kAPIMinorVersion
Definition: CANSparkLowLevel.h:74
Definition: CANSparkMax.h:38
Definition: CANSparkMaxLowLevel.h:40
Definition: MotorFeedbackSensor.h:51
Definition: SparkFlexExternalEncoder.h:42
Definition: SparkMaxAbsoluteEncoder.h:49
Definition: SparkMaxAlternateEncoder.h:46
Definition: SparkMaxAnalogSensor.h:59
Definition: SparkMaxLimitSwitch.h:55
Definition: SparkMaxPIDController.h:59
Definition: SparkMaxRelativeEncoder.h:51
Definition: CANSparkLowLevel.cpp:39
REVLibError
Definition: REVLibError.h:33
Definition: CANSparkLowLevel.h:403
uint32_t rsvd2
Definition: CANSparkLowLevel.h:406
uint32_t invert
Definition: CANSparkLowLevel.h:405
uint32_t predefined
Definition: CANSparkLowLevel.h:407
uint32_t rsvd1
Definition: CANSparkLowLevel.h:404
Definition: CANSparkLowLevel.h:410
uint32_t leaderArbId
Definition: CANSparkLowLevel.h:411
union rev::CANSparkLowLevel::FollowConfig::FollowConfigUnion config
Definition: CANSparkLowLevel.h:110
uint8_t roboRIO
Definition: CANSparkLowLevel.h:117
bool isFollower
Definition: CANSparkLowLevel.h:115
uint8_t isInverted
Definition: CANSparkLowLevel.h:118
MotorType motorType
Definition: CANSparkLowLevel.h:114
double appliedOutput
Definition: CANSparkLowLevel.h:111
uint64_t timestamp
Definition: CANSparkLowLevel.h:119
uint8_t lock
Definition: CANSparkLowLevel.h:116
uint16_t stickyFaults
Definition: CANSparkLowLevel.h:113
uint16_t faults
Definition: CANSparkLowLevel.h:112
Definition: CANSparkLowLevel.h:122
double outputCurrent
Definition: CANSparkLowLevel.h:126
uint64_t timestamp
Definition: CANSparkLowLevel.h:127
double sensorVelocity
Definition: CANSparkLowLevel.h:123
double busVoltage
Definition: CANSparkLowLevel.h:125
uint8_t motorTemperature
Definition: CANSparkLowLevel.h:124
Definition: CANSparkLowLevel.h:130
double iAccum
Definition: CANSparkLowLevel.h:132
uint64_t timestamp
Definition: CANSparkLowLevel.h:133
double sensorPosition
Definition: CANSparkLowLevel.h:131
Definition: CANSparkLowLevel.h:154
float value
Definition: CANSparkLowLevel.h:156
uint64_t timestamp
Definition: CANSparkLowLevel.h:157
float upperBnd
Definition: CANSparkLowLevel.h:161
const char * name
Definition: CANSparkLowLevel.h:158
const char * units
Definition: CANSparkLowLevel.h:159
TelemetryID id
Definition: CANSparkLowLevel.h:155
float lowerBnd
Definition: CANSparkLowLevel.h:160
Definition: CANSparkLowLevel.h:412
FollowConfigBits bits
Definition: CANSparkLowLevel.h:414
uint32_t value
Definition: CANSparkLowLevel.h:413