Exemple #1
0
 public void Dispose()
 {
     CANSparkMaxDriver.Destroy(m_sparkMax);
     m_sparkMax = null;
 }
Exemple #2
0
 public CANSparkMaxLowLevel(int deviceId, MotorType type)
 {
     m_deviceId  = deviceId;
     m_sparkMax  = CANSparkMaxDriver.Create(deviceId, type);
     m_motorType = type;
 }