Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Oct 8, 2021

This PR clean up various Run From Simulink items. It is composed of all changes that were split from PR #728. No functional changes are made, only refactoring of the mask callbacks for clarity.

@kmruehl kmruehl self-requested a review October 11, 2021 19:49
Copy link
Collaborator

@kmruehl kmruehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akeeste all of the revisions to the SimulinkMaskFunctions look good and I'd like to merge, but I want to make sure the updates do not conflict with the current library PR(s). Right now there is a merge conflict with the Frames library. I don't think this is a priority for v4.4, but if you have time to resolve conflicts once the other library PRs are merged we can include it.

@kmruehl kmruehl added the SCM source code mangagement and warnings label Oct 13, 2021
@akeeste
Copy link
Contributor Author

akeeste commented Nov 1, 2021

I have pulled the most recent version of dev into this branch. The library update renames three mask parameters for the Run From Simulink functionality. For all blocks, these parameters are renamed in the following manner:
WECSim_Lib_Body_Elements/Rigid Body/Mask Editor/Parameters & Dialog/CusInFile --> InputFileGroup
WECSim_Lib_Body_Elements/Rigid Body/Mask Editor/Parameters & Dialog/ParameterGroupVar --> CustomParameterGroup
WECSim_Lib_Body_Elements/Rigid Body/Mask Editor/Parameters & Dialog/ParamInput --> InputMethod

This should make the Run From Simulink callbacks more clear to read and understand. Also, I moved the button to load parameters from an input file to a mask, into the "custom parameter" section of the Global Reference Frame mask since that is where it is actually used:
image

@kmruehl
Copy link
Collaborator

kmruehl commented Nov 10, 2021

@akeeste this looks good to me. Thanks for cleaning up the run from Simulink functions. Are there any doc updates you'd like to make to the http://wec-sim.github.io/WEC-Sim/dev/developer/library.html#library-development section based on this PR?

@kmruehl kmruehl self-requested a review November 10, 2021 00:20
@akeeste
Copy link
Contributor Author

akeeste commented Nov 10, 2021

@kmruehl I double checked the docs. I updated a couple images since the mask variable names change slightly, but otherwise the content in that section is not affected.

@kmruehl kmruehl merged commit ff85dab into WEC-Sim:dev Nov 10, 2021
@kmruehl
Copy link
Collaborator

kmruehl commented Nov 10, 2021

@akeeste you may want to delete this branch

@akeeste akeeste deleted the runFromSimUpdates branch November 10, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCM source code mangagement and warnings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants