How would you get the voltage on a Spark Max? There’s no method for it in CANPIDController
, SparkMax
, or CANEncoder
.
I thought that measured the voltage inputted to the controller, not the voltage the motor received.
Just to clarify, the GetAppliedOutput() method will return a percent from -1 to 1, not a voltage (we will be updating the docs shortly).
So to get the applied voltage you can do GetBusVoltage() * GetAppliedOutput()
1 Like