diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-16 13:16:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-19 12:34:10 +0200 |
commit | f60d22925820b996a9446eb58ac69f8410ed8da9 (patch) | |
tree | e870c5768bc75e0ac86cdd033ace700750b06df8 /tracker-trackhat | |
parent | 347225a008233d94bf583d0199fdc4c79a696bfb (diff) |
tracker/trackhat: set maximum avail output resolution
Diffstat (limited to 'tracker-trackhat')
-rw-r--r-- | tracker-trackhat/settings.cpp | 4 | ||||
-rw-r--r-- | tracker-trackhat/trackhat.hpp | 2 |
2 files changed, 4 insertions, 2 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; diff --git a/tracker-trackhat/trackhat.hpp b/tracker-trackhat/trackhat.hpp index 5599e963..1494d994 100644 --- a/tracker-trackhat/trackhat.hpp +++ b/tracker-trackhat/trackhat.hpp @@ -155,7 +155,7 @@ struct trackhat_camera final : pt_camera f deadzone_amount() const override { return 10; } - static constexpr int sensor_size = 2940; + static constexpr int sensor_size = 4095; static constexpr int sensor_fov = 52; static constexpr int point_count = TRACK_HAT_NUMBER_OF_POINTS; static constexpr bool debug_mode = true; |