Created
May 14, 2014 15:04
-
-
Save koenbok/e9a0f7d763ac28eda880 to your computer and use it in GitHub Desktop.
QC Spring Value Converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var QcValueConverter = { | |
tensionFromQcValue: function(qcValue) { | |
return (qcValue - 30.0) * 3.62 + 194.0; | |
}, | |
qcValueFromTension: function(tension) { | |
return (tension - 194.0) / 3.62 + 30.0; | |
}, | |
frictionFromQcValue: function(qcValue) { | |
return (qcValue - 8.0) * 3.0 + 25.0; | |
}, | |
qcValueFromFriction: function(friction) { | |
return (friction - 25.0) / 3.0 + 8.0; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment