Class CANSparkMaxLowLevel
Inheritance
CANSparkMaxLowLevel
Assembly: WPILibSharp.REV.SparkMax.dll
Syntax
public class CANSparkMaxLowLevel : IDisposable
Constructors
|
Improve this Doc
View Source
CANSparkMaxLowLevel(Int32, MotorType)
Declaration
public CANSparkMaxLowLevel(int deviceId, MotorType type)
Parameters
Fields
|
Improve this Doc
View Source
kAPIBuildVersion
Declaration
public const byte kAPIBuildVersion = null
Field Value
|
Improve this Doc
View Source
kAPIMajorVersion
Declaration
public const byte kAPIMajorVersion = null
Field Value
|
Improve this Doc
View Source
kAPIMinorVersion
Declaration
public const byte kAPIMinorVersion = null
Field Value
|
Improve this Doc
View Source
kAPIVersion
Declaration
public const uint kAPIVersion = null
Field Value
|
Improve this Doc
View Source
m_motorType
Declaration
protected MotorType m_motorType
Field Value
|
Improve this Doc
View Source
m_sparkMax
Declaration
protected void *m_sparkMax
Field Value
Properties
|
Improve this Doc
View Source
DeviceId
Declaration
public int DeviceId { get; }
Property Value
|
Improve this Doc
View Source
FirmwareString
Declaration
public string FirmwareString { get; }
Property Value
|
Improve this Doc
View Source
FirmwareVersion
Declaration
public uint FirmwareVersion { get; }
Property Value
|
Improve this Doc
View Source
FirmwareVersionDebug
Declaration
public (uint version, bool isDebug) FirmwareVersionDebug { get; }
Property Value
|
Improve this Doc
View Source
InitialMotorType
Declaration
public MotorType InitialMotorType { get; }
Property Value
|
Improve this Doc
View Source
MotorType
Declaration
public MotorType MotorType { get; set; }
Property Value
|
Improve this Doc
View Source
PeriodicStatus0
Declaration
protected PeriodicStatus0 PeriodicStatus0 { get; }
Property Value
|
Improve this Doc
View Source
PeriodicStatus1
Declaration
protected PeriodicStatus1 PeriodicStatus1 { get; }
Property Value
|
Improve this Doc
View Source
PeriodicStatus2
Declaration
protected PeriodicStatus2 PeriodicStatus2 { get; }
Property Value
|
Improve this Doc
View Source
SerialNumber
Declaration
public byte[] SerialNumber { get; }
Property Value
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
FollowerInvert(Boolean)
Declaration
protected ErrorCode FollowerInvert(bool invert)
Parameters
Type |
Name |
Description |
Boolean |
invert |
|
Returns
|
Improve this Doc
View Source
GetSafeFloat(Single)
Declaration
protected float GetSafeFloat(float f)
Parameters
Type |
Name |
Description |
Single |
f |
|
Returns
|
Improve this Doc
View Source
RestoreFactoryDefaults(Boolean)
Declaration
public ErrorCode RestoreFactoryDefaults(bool persist = false)
Parameters
Type |
Name |
Description |
Boolean |
persist |
|
Returns
|
Improve this Doc
View Source
SetControlFramePeriod(TimeSpan)
Declaration
public void SetControlFramePeriod(TimeSpan period)
Parameters
Type |
Name |
Description |
TimeSpan |
period |
|
|
Improve this Doc
View Source
SetEncPosition(Double)
Declaration
protected ErrorCode SetEncPosition(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
|
Improve this Doc
View Source
SetFollow(CANSparkMaxLowLevel.FollowConfig)
Declaration
protected ErrorCode SetFollow(CANSparkMaxLowLevel.FollowConfig config)
Parameters
Returns
|
Improve this Doc
View Source
SetIAccum(Double)
Declaration
protected ErrorCode SetIAccum(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
|
Improve this Doc
View Source
SetPeriodicFramePeriod(PeriodicFrame, TimeSpan)
Declaration
public ErrorCode SetPeriodicFramePeriod(PeriodicFrame frame, TimeSpan period)
Parameters
Returns
|
Improve this Doc
View Source
SetpointCommand(Double, ControlType, Int32, Double, Int32)
Declaration
protected ErrorCode SetpointCommand(double value, ControlType ctrl = default(ControlType), int pidSlot = 0, double arbFeedforward = null, int arbFFUnits = 0)
Parameters
Returns