Skip to content

Add units option for "Stability margin" in plot dialog #2221#2965

Draft
luisroliveira wants to merge 2 commits into
openrocket:unstablefrom
luisroliveira:feature_unitStabilityMargin
Draft

Add units option for "Stability margin" in plot dialog #2221#2965
luisroliveira wants to merge 2 commits into
openrocket:unstablefrom
luisroliveira:feature_unitStabilityMargin

Conversation

@luisroliveira
Copy link
Copy Markdown

This PR adds unit selection support for the Stability Margin parameter in the simulation plot dialog.
Previously, the Y-axis type was labeled “Stability Margin Calibers”, which offered no unit choice. Now, the parameter has been renamed “Stability Margin” and provides two unit options:

  • cal (calibers)
  • % (percentage of total rocket length)

Changes

  • FlightDataType.java
    Added a new TYPE_STABILITY FlightDataType linked to the new unit group.
    Integrated with FlightDataTypeGroup.STABILITY.
  • UnitData.java
    Created UNITS_STABILITY_SELECT_PLOT UnitGroup.
    Added cal and % as selectable units for Stability Margin.
  • messages.properties
    Updated messages to reflect the new display name and units in the plot dialog.
image image image

@neilweinstock
Copy link
Copy Markdown
Contributor

Looks very nice

@JoePfeiffer
Copy link
Copy Markdown
Contributor

Is it possible you haven't committed all your changes? When I plot stability margin in %, I get a stability margin that's virtually 0.
stability-percent png

@SiboVG SiboVG marked this pull request as draft December 15, 2025 21:56
@neilweinstock
Copy link
Copy Markdown
Contributor

@luisroliveira , do you have any updates on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants