From aa37f4f8a2547d682e3a56167895c1f648615670 Mon Sep 17 00:00:00 2001 From: LoganJanes Date: Fri, 20 Jun 2025 21:48:29 -0400 Subject: [PATCH 1/2] Vector for morse code Vector for morse code --- .../include/waterwitch_frontend/Config.hpp | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp b/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp index 566af78..e4e08f8 100644 --- a/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp +++ b/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp @@ -59,4 +59,33 @@ class WaterwitchConfig { float thruster_acceleration = 1.0f; std::array front_camera_preset_servo_angles = {0, 90, 180}; std::array back_camera_preset_servo_angles = {0, 90, 180}; +}; + +std::map> charMap = { + { 'A', {1, 2} }, + { 'B', {2, 1, 1, 1} }, + { 'C', {2, 1, 2, 1} }, + { 'D', {2, 1, 1} }, + { 'E', {1} }, + { 'F', {1, 1, 2, 1} }, + { 'G', {2, 2, 1} }, + { 'H', {1, 1, 1, 1} }, + { 'I', {1, 1} }, + { 'J', {1, 2, 2, 2} }, + { 'K', {2, 1, 2} }, + { 'L', {1, 2, 1, 1} }, + { 'M', {2, 2} }, + { 'N', {2, 1} }, + { 'O', {2, 2, 2} }, + { 'P', {1, 2, 2, 1} }, + { 'Q', {2, 2, 1, 2} }, + { 'R', {1, 2, 1} }, + { 'S', {1, 1, 1} }, + { 'T', {2} }, + { 'U', {1, 1, 2} }, + { 'V', {1, 1, 1, 2} }, + { 'W', {1, 2, 2} }, + { 'X', {2, 1, 1, 2} }, + { 'Y', {2, 1, 2, 2} }, + { 'Z', {2, 2, 1, 1} }, }; \ No newline at end of file From da52cf0251729499d8a4da4fa3dae4a21597e4d3 Mon Sep 17 00:00:00 2001 From: LoganJanes Date: Fri, 20 Jun 2025 21:53:32 -0400 Subject: [PATCH 2/2] Update Config.hpp --- .../waterwitch_frontend/include/waterwitch_frontend/Config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp b/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp index e4e08f8..27455a0 100644 --- a/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp +++ b/ros_workspace/src/waterwitch_frontend/include/waterwitch_frontend/Config.hpp @@ -61,7 +61,7 @@ class WaterwitchConfig { std::array back_camera_preset_servo_angles = {0, 90, 180}; }; -std::map> charMap = { +map> charMap = { { 'A', {1, 2} }, { 'B', {2, 1, 1, 1} }, { 'C', {2, 1, 2, 1} },