From f303c0d49e3e3e5089052d797f3ab2e821c01636 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 6 Apr 2015 16:24:06 +0200 Subject: äh dingens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client2.cpp') diff --git a/client2.cpp b/client2.cpp index 79a46b3..8d2e480 100644 --- a/client2.cpp +++ b/client2.cpp @@ -136,7 +136,7 @@ const char* drawFromCanvasFragmentSource = "uniform float eye_pitch;\n" "uniform float eye_roll;\n" "const float aspect_ratio=1280./2/720.;\n" - "const float horiz_field_of_view=60/180.*3.141592654;\n" + "const float horiz_field_of_view=90/180.*3.141592654;\n" "const float CAM_FX=1/2.0 / tan(horiz_field_of_view/2.0);\n" "const mat3 eye_cal_inv = transpose(mat3(1/CAM_FX, 0, -1/2/CAM_FX, 0, 1/CAM_FX, -1/aspect_ratio/2/CAM_FX, 0,0,1));\n" "const mat3 opencv_to_math = mat3(0,1,0, 0,0,1, -1,0,0);\n" @@ -657,8 +657,8 @@ void* video_fetcher_thread(void* ptr) pitch_diff = deadzone(pitch_diff, 1.0); roll_diff = deadzone(roll_diff, 1.0); - yaw_diff*=0.1; - pitch_diff*=0.1; + yaw_diff*=0.3; + pitch_diff*=0.3; roll_diff*=0.5; yaw_cam = fixup_range(yaw_cam - yaw_diff, -180, 180); pitch_cam = pitch_cam - pitch_diff; -- cgit v1.2.3