From 23ce727902ad84e15682064b0d787f7abe9364c9 Mon Sep 17 00:00:00 2001
From: giuliaghirardini <giuliaghirardini2001@gmail.com>
Date: Thu, 5 Dec 2024 10:00:06 +0100
Subject: [PATCH] [design-updates] Created .mat for prp, tested matConverter,
 added small guide

---
 .../2025_Orion_Portugal_October/coeffs.mat    |  3 +++
 missions/matConverter.m                       | 27 ++++++++++++++++++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 missions/2025_Orion_Portugal_October/coeffs.mat

diff --git a/missions/2025_Orion_Portugal_October/coeffs.mat b/missions/2025_Orion_Portugal_October/coeffs.mat
new file mode 100644
index 0000000..2581d5e
--- /dev/null
+++ b/missions/2025_Orion_Portugal_October/coeffs.mat
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b105b48cbcd00a02b10f9d70ee7ce517c6535680abc48e55dfab99a4c57b3fe
+size 44339790
diff --git a/missions/matConverter.m b/missions/matConverter.m
index 5e706f6..a310e44 100644
--- a/missions/matConverter.m
+++ b/missions/matConverter.m
@@ -3,8 +3,33 @@ clear
 clc
 close all
 
+%% README.md
+% This script has been implemented due to incompatibility between MSA
+% variables names and PRP ones. This is due the fact that refactoring has
+% been carried out in MSA and not in PRP (hope in the future PRP would have
+% the same var names!)
+% For now, this script which renames the fields in aeroCoefficients.mat and
+% also extract one motor among the stored ones because PRP is able to
+% handle one motor per time. They don't have appended structs in their
+% coeffs.mat
+%
+% How to use:
+% 1. Change mission name to let the script find the correct folder and path
+% 2. Choose from the dialog window the motor which PRP has asked
+% 3. coeffs.mat will appear in your misson folder, at the level of data and
+%    config folder (not inside of them!)
+%
+% Typical output:
+%
+% coeffs.mat does not exist. Creating a new file...
+% Loaded motor: HRE_ARM_OPT_2_Venturi
+% PATH: D:\GitHub\msa-toolkit\common\missions\2025_Orion_Portugal_October\data\aeroCoefficients.mat
+% Motor data saved to coeffs.mat
+% PATH: D:\GitHub\msa-toolkit\common\missions\2025_Orion_Portugal_October\coeffs.mat
+
+
 %% path
-mission = '2024_Lyra_Portugal_October';
+mission = '2025_Orion_Portugal_October';
 coeffPath = fullfile(fileparts(mfilename("fullpath")), mission, 'data', 'aeroCoefficients.mat');
 insideMat = who('-file', coeffPath);
 
-- 
GitLab