Closed virtuald closed 1 year ago
Sad.
RoboRIO
No response
>>> import rev >>> s = rev.CANSparkMax(1, rev.CANSparkMaxLowLevel.MotorType.kBrushless) >>> e = s.getEncoder() >>> p = s.getPIDController() >>> p.setFeedbackDevice(e) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: setFeedbackDevice(): incompatible function arguments. The following argument types are supported: 1. (self: rev._rev.SparkMaxPIDController, sensor: rev._rev.CANSensor) -> rev._rev.REVLibError Invoked with: <rev._rev.SparkMaxPIDController object at 0x10e266670>, <rev._rev.SparkMaxRelativeEncoder object at 0x10fdffd30>
Problem description
Sad.
Operating System
RoboRIO
Installed Python Packages
No response
Reproducible example code