From 201d98f63131242bb8871ed0c4a3ae9ebd4ef030 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 12 Jan 2025 17:57:45 +0100 Subject: start refactoring. non-working commit --- src/typedefs.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/typedefs.h') diff --git a/src/typedefs.h b/src/typedefs.h index 2af2921..7ed8411 100644 --- a/src/typedefs.h +++ b/src/typedefs.h @@ -2,8 +2,6 @@ #include -#include "constants.h" - struct Counters { uint32_t timestampUs{0}; @@ -11,22 +9,10 @@ struct Counters int32_t encoderPosition{0}; }; -struct Image -{ - int width; - int height; - uint16_t data[img_height][img_width]; - uint16_t rotated_cw[img_width][img_height]; - size_t dataSize; - unsigned int stride; - libcamera::PixelFormat pixelFormat; - Counters counters{}; -}; - struct requested_params_t { - int32_t exposureTime = {1000}; - int32_t laserLevel = {3000}; + int32_t exposureTime{1000}; + int32_t laserLevel{3000}; uint32_t stepsPerMm{200}; }; -- cgit v1.2.3-70-g09d2