diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2025-01-12 11:50:34 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2025-01-12 11:50:34 +0100 |
| commit | 9dde2ab53c8e2c97647164fce89cf149260fbc8f (patch) | |
| tree | f428169ce67a93d0532d91883e18892736bb26b4 /src/typedefs.h | |
| parent | 8630381c7e1fa1527026b9c823790dc3f92c6321 (diff) | |
implement calibration
Diffstat (limited to 'src/typedefs.h')
| -rw-r--r-- | src/typedefs.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 <libcamera/pixel_format.h> + +#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 }; |
