Skip to content

Unify engine init logic; update TrimEnvelope limits#1267

Merged
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
seanmcleod70:ExamplesSetRunning
Apr 23, 2025
Merged

Unify engine init logic; update TrimEnvelope limits#1267
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
seanmcleod70:ExamplesSetRunning

Conversation

@seanmcleod70
Copy link
Contributor

Unified engine initialization logic across example scripts by replacing individual engine settings with propulsion/set-running = -1.

See discussion - #1264

In TrimEnvelope.py:

  • Added variables for envelope limits (min_speed, max_speed, altitude, min_gamma, max_gamma).
  • Updated speed and gamma iteration to use these variables.
  • Made graph axis ranges dynamic based on envelope limits.

To make it easier for users switching between aircraft with quite varying flight envelopes, e.g. 737 versus a C172.

Unified engine initialization logic across scripts by replacing
individual engine settings with `propulsion/set-running = -1`.

In `TrimEnvelope.py`:
- Added variables for envelope limits (`min_speed`, `max_speed`,
  `altitude`, `min_gamma`, `max_gamma`).
- Updated speed and gamma iteration to use these variables.
- Made graph axis ranges dynamic based on envelope limits.
@codecov
Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.78%. Comparing base (c36d074) to head (2f30c57).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1267   +/-   ##
=======================================
  Coverage   24.78%   24.78%           
=======================================
  Files         169      169           
  Lines       19656    19656           
=======================================
  Hits         4872     4872           
  Misses      14784    14784           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bcoconni bcoconni merged commit 6b81abf into JSBSim-Team:master Apr 23, 2025
29 checks passed
@bcoconni
Copy link
Member

PR merged 👍

bcoconni pushed a commit to bcoconni/jsbsim that referenced this pull request May 2, 2025
Co-authored-by: Sean McLeod <sean@seanmcleod.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants