From 578d9e383691b2597cc922dc8106acd3d40ff384 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nicolas.pope@utu.fi> Date: Tue, 9 Aug 2022 09:35:44 +0300 Subject: [PATCH] Add stereo pose channel --- include/ftl/protocol/channels.hpp | 1 + src/channelUtils.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/ftl/protocol/channels.hpp b/include/ftl/protocol/channels.hpp index 1ab1bee..33c7b85 100644 --- a/include/ftl/protocol/channels.hpp +++ b/include/ftl/protocol/channels.hpp @@ -70,6 +70,7 @@ enum struct Channel : int { kTags = 79, /// Array of string tag names KDescription = 80, kSelectPoint = 81, /// A selected X,Y screen point + kStereoPose = 82, /// A pair of poses for stereo rendering kAccelerometer = 90, /// Eigen::Vector3f kGyroscope = 91, /// Eigen::Vector3f diff --git a/src/channelUtils.cpp b/src/channelUtils.cpp index 0021907..ec26168 100644 --- a/src/channelUtils.cpp +++ b/src/channelUtils.cpp @@ -128,6 +128,10 @@ static const std::unordered_map<Channel,ChannelInfo> info = { {Channel::kTags, {"Tags", -1}}, {Channel::KDescription, {"Decription", -1}}, {Channel::kSelectPoint, {"SelectPoint", -1}}, + {Channel::kStereoPose, {"StereoPose", -1}}, + + {Channel::kAccelerometer, {"Accelerometer", -1}}, + {Channel::kGyroscope, {"Gyroscope", -1}}, {Channel::kBrightness, {"Brightness", -1}}, {Channel::kContrast, {"Contrast", -1}}, -- GitLab