diff --git a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOTalon.kt b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOTalon.kt index 5cb98b8a..90de7373 100644 --- a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOTalon.kt +++ b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOTalon.kt @@ -212,8 +212,10 @@ class SwerveModuleIOTalon( override fun updateInputs(inputs: SwerveModuleIO.SwerveModuleIOInputs) { updateSignals() - inputs.driveAppliedVoltage = (driveFalcon.get() * RobotController.getBatteryVoltage()).volts - inputs.steerAppliedVoltage = (steeringFalcon.get() * RobotController.getBatteryVoltage()).volts + inputs.driveAppliedVoltage = driveFalcon.motorVoltage.value.volts + inputs.steerAppliedVoltage = steeringFalcon.motorVoltage.value.volts + //inputs.driveAppliedVoltage = (driveFalcon.get() * RobotController.getBatteryVoltage()).volts + //inputs.steerAppliedVoltage = (steeringFalcon.get() * RobotController.getBatteryVoltage()).volts inputs.statorCurrentDrive = driveStatorCurrentSignal.value.amps inputs.supplyCurrentDrive = driveSupplyCurrentSignal.value.amps