-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Altitude and speed bounds throw errors on default behavior with cor_v2p1 #45
Comments
In retrospect I didn't see that the correlated models have not been tested with sample2track before writing this - I'll avoid using it in this context until that changes. |
Potential resolution
Simulating the aircraft kinematics will likely be the bulk of the work to resolve this bug. Ideally, the resolution would leverage the Issue Reporting
warning('sample2track:model', '%s has not been tested with these function, assigning default units\n', pfn{end}); So this bug is undesirable but also not totally surprising. The roadmap has a task to investigate prototyping a MATLAB class for the RADES-based correlated en route model. Completing that task should prevent issues like issue #45 in the future. Reporting this bug is good to help the roadmap task and we appreciate the report. |
That make sense - I will continue using our old workflow for the correlated model until that point in the roadmap is reached. Feel free to mark as resolved, unless you think there is value in keeping it open. |
It is a known valid issue and I'm going to keep it open until we resolve it. |
Description
When running
sample2track.m
with a RADES correlated model (ex.cor_v2p1.txt
), getters for altitude and speed bounds don't work properly. For altitude, gettingmin_speed
andmax_alt
in lines 104-105 ofsample2.track.m
throws an exception because min/max alt bounds do not exist incor_v2p1.txt
at boundary index 2, the index of variableL
. For speed, the default label (set in line 28) is'v'
, which is not a valid label in the correlated model because there are only'v_1','v_2'
.Reproducibility
[isGood, ~] = sample2track(parameters_filename, initial_output_filename, transition_output_filename, ... 'out_dir_parent', out_dir_parent) with valid inputs, and
parameters_filename = 'cor_v2p1.txt'`, should reproduce both issues.Expectation
I resolved this issue by simply adding altitude bounds back into
cor_v2p1.txt
consistent with the model report. For the speed bounds, I explicitly passed in'label_initial_speed', 'v_1'
into the function call, but I think this should be fixed in such a way that the function does not break on default functionality (i.e. either this should be a required argument or it should know to use 'v' or 'v_1' depending on the model).Environment
Debian 10, MATLAB R2021a
The text was updated successfully, but these errors were encountered: