diff options
author | Florian Jung <flo@windfisch.org> | 2015-04-06 16:24:06 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-04-06 16:24:06 +0200 |
commit | f303c0d49e3e3e5089052d797f3ab2e821c01636 (patch) | |
tree | 65e1c33f0f701af18c78f3acdaf104e6d1b96c6c /client2.cpp | |
parent | b58cdc49ca4ab7f8c537486fca9eed4f1f70d1e7 (diff) |
äh dingens
Diffstat (limited to 'client2.cpp')
-rw-r--r-- | client2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |