Get voltage from Spark Max

How would you get the voltage on a Spark Max? There’s no method for it in CANPIDController, SparkMax, or CANEncoder.

How about the GetBusVoltage() method?

I thought that measured the voltage inputted to the controller, not the voltage the motor received.

There’s the GetAppliedOutput() method. Perhaps that’s what you want?

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()