diff --git a/missions/2025_Orion_Portugal_October/coeffs.mat b/missions/2025_Orion_Portugal_October/coeffs.mat new file mode 100644 index 0000000000000000000000000000000000000000..2581d5e5a4d86342e48c189d1d1605692d02d3df --- /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 5e706f69a62e3361d214071e679b8f7f6b103243..a310e44c1a8dc738194f3c57a1ccd090ae18c832 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);