Show / Hide Table of Contents

Class CANSparkMaxLowLevel

Inheritance
Object
CANSparkMaxLowLevel
Namespace: REV.SparkMax
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
Type Name Description
Int32 deviceId
MotorType type

Fields

| Improve this Doc View Source

kAPIBuildVersion

Declaration
public const byte kAPIBuildVersion = null
Field Value
Type Description
Byte
| Improve this Doc View Source

kAPIMajorVersion

Declaration
public const byte kAPIMajorVersion = null
Field Value
Type Description
Byte
| Improve this Doc View Source

kAPIMinorVersion

Declaration
public const byte kAPIMinorVersion = null
Field Value
Type Description
Byte
| Improve this Doc View Source

kAPIVersion

Declaration
public const uint kAPIVersion = null
Field Value
Type Description
UInt32
| Improve this Doc View Source

m_motorType

Declaration
protected MotorType m_motorType
Field Value
Type Description
MotorType
| Improve this Doc View Source

m_sparkMax

Declaration
protected void *m_sparkMax
Field Value
Type Description
Void*

Properties

| Improve this Doc View Source

DeviceId

Declaration
public int DeviceId { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

FirmwareString

Declaration
public string FirmwareString { get; }
Property Value
Type Description
String
| Improve this Doc View Source

FirmwareVersion

Declaration
public uint FirmwareVersion { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

FirmwareVersionDebug

Declaration
public (uint version, bool isDebug) FirmwareVersionDebug { get; }
Property Value
Type Description
System.ValueTuple<UInt32, Boolean>
| Improve this Doc View Source

InitialMotorType

Declaration
public MotorType InitialMotorType { get; }
Property Value
Type Description
MotorType
| Improve this Doc View Source

MotorType

Declaration
public MotorType MotorType { get; set; }
Property Value
Type Description
MotorType
| Improve this Doc View Source

PeriodicStatus0

Declaration
protected PeriodicStatus0 PeriodicStatus0 { get; }
Property Value
Type Description
PeriodicStatus0
| Improve this Doc View Source

PeriodicStatus1

Declaration
protected PeriodicStatus1 PeriodicStatus1 { get; }
Property Value
Type Description
PeriodicStatus1
| Improve this Doc View Source

PeriodicStatus2

Declaration
protected PeriodicStatus2 PeriodicStatus2 { get; }
Property Value
Type Description
PeriodicStatus2
| Improve this Doc View Source

SerialNumber

Declaration
public byte[] SerialNumber { get; }
Property Value
Type Description
Byte[]

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

FollowerInvert(Boolean)

Declaration
protected ErrorCode FollowerInvert(bool invert)
Parameters
Type Name Description
Boolean invert
Returns
Type Description
ErrorCode
| Improve this Doc View Source

GetSafeFloat(Single)

Declaration
protected float GetSafeFloat(float f)
Parameters
Type Name Description
Single f
Returns
Type Description
Single
| Improve this Doc View Source

RestoreFactoryDefaults(Boolean)

Declaration
public ErrorCode RestoreFactoryDefaults(bool persist = false)
Parameters
Type Name Description
Boolean persist
Returns
Type Description
ErrorCode
| 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
Type Description
ErrorCode
| Improve this Doc View Source

SetFollow(CANSparkMaxLowLevel.FollowConfig)

Declaration
protected ErrorCode SetFollow(CANSparkMaxLowLevel.FollowConfig config)
Parameters
Type Name Description
CANSparkMaxLowLevel.FollowConfig config
Returns
Type Description
ErrorCode
| Improve this Doc View Source

SetIAccum(Double)

Declaration
protected ErrorCode SetIAccum(double value)
Parameters
Type Name Description
Double value
Returns
Type Description
ErrorCode
| Improve this Doc View Source

SetPeriodicFramePeriod(PeriodicFrame, TimeSpan)

Declaration
public ErrorCode SetPeriodicFramePeriod(PeriodicFrame frame, TimeSpan period)
Parameters
Type Name Description
PeriodicFrame frame
TimeSpan period
Returns
Type Description
ErrorCode
| 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
Type Name Description
Double value
ControlType ctrl
Int32 pidSlot
Double arbFeedforward
Int32 arbFFUnits
Returns
Type Description
ErrorCode
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 RobotDotNet