From: paul Date: Sun, 3 Jun 2018 23:21:31 +0000 (+0000) Subject: lower default view X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c538b709b14789a26233f39c3c359059e4ec8969;p=serve0 lower default view svn path=/trunk/; revision=205 --- diff --git a/static/stereoview.js b/static/stereoview.js index dd9b4e3..50863d5 100644 --- a/static/stereoview.js +++ b/static/stereoview.js @@ -100,7 +100,7 @@ function stereoview(layout, video) { ty = 0; y.forEach( function(n, i){ ty += n; } ); ty /= inertia; tz = 0; z.forEach( function(n, i){ tz += n; } ); tz /= inertia; - pitch = Math.asin((tz / 9.81 > 1)?1:(tz/9.81)) / Math.PI * 180; + pitch = Math.asin((tz / 9.81 > 1)?1:(tz/9.81)) / Math.PI * 180 + 22.5; roll = - Math.asin((ty / 9.81 > 1)?1:(ty/9.81)) / Math.PI * 180; yaw = (yaw + ty) % 360; };