summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat/settings.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-06-16 13:16:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-06-19 12:34:10 +0200
commitf60d22925820b996a9446eb58ac69f8410ed8da9 (patch)
treee870c5768bc75e0ac86cdd033ace700750b06df8 /tracker-trackhat/settings.cpp
parent347225a008233d94bf583d0199fdc4c79a696bfb (diff)
tracker/trackhat: set maximum avail output resolution
Diffstat (limited to 'tracker-trackhat/settings.cpp')
-rw-r--r--tracker-trackhat/settings.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tracker-trackhat/settings.cpp b/tracker-trackhat/settings.cpp
index 080d13eb..dcbf6b37 100644
--- a/tracker-trackhat/settings.cpp
+++ b/tracker-trackhat/settings.cpp
@@ -103,10 +103,12 @@ bool trackhat_camera::init_regs()
{ 0x0c, 0x0c, gain_c }, // gain multiplier
{ 0x0c, 0x47, thres }, // min brightness
{ 0x00, 0x0f, thres2 }, // brightness margin, formula is `thres >= px > thres - fuzz'
+ { 0x0c, 0x60, 0xff }, // scale resolution lo
+ { 0x0c, 0x61, 0x0f }, // scale resolution hi
{ 0x00, 0x01, 0x01 }, // bank0 sync
{ 0x01, 0x01, 0x01 }, // bank1 sync
},
- 10
+ 12,
};
Timer t;