From 9dde2ab53c8e2c97647164fce89cf149260fbc8f Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 12 Jan 2025 11:50:34 +0100 Subject: implement calibration --- src/typedefs.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/typedefs.h (limited to 'src/typedefs.h') diff --git a/src/typedefs.h b/src/typedefs.h new file mode 100644 index 0000000..2af2921 --- /dev/null +++ b/src/typedefs.h @@ -0,0 +1,33 @@ +#pragma once + +#include + +#include "constants.h" + +struct Counters +{ + uint32_t timestampUs{0}; + uint32_t measurementCounter{0}; + 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}; + uint32_t stepsPerMm{200}; +}; + +enum ScanningModeFlags : uint8_t { None = 0, Calibration }; -- cgit v1.2.3-70-g09d2