Skip to content

Instantly share code, notes, and snippets.

[
{
"type": "tabs",
"tabs": [
{
"title": "Axis X",
"items": [
"x"
]
},
var VELOCITY_ACCURACY = 1
var calcPen = function(zLen){
//Pendulum Movement Equation
//T = 2pi*SQRT(L/g)
var twoPi = 6.2831926
var gravity = 9.8
var result = twoPi * Math.sqrt(zLen / gravity);
return(result.toFixed(4))
}
var calcPen = function(zLen){
//Pendulum Movement Equation
//T = 2pi*SQRT(L/g)
var twoPi = 6.2831926
var gravity = 9.8
var result = twoPi * Math.sqrt(zLen / gravity);
return(result.toFixed(4))
}
exports.calcVelocity = function(xyLen, jerk, zLen){