summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-trackhat')
-rw-r--r--tracker-trackhat/settings.cpp4
-rw-r--r--tracker-trackhat/trackhat.hpp2
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;