-
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
NRCC Trained Canadian Airspace Models #49
base: master
Are you sure you want to change the base?
Conversation
Add support for the Canadian Airspace Models
This pull request is to enable compliancy with the Canadian airspace models. Several MIT LL files were modified, and an extra function was created to read Canadian data format. Additional requirements:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review focused on addressing duplicate files and streamlining Canadian contributions
em_read_CAN.m
Outdated
@@ -0,0 +1,69 @@ | |||
% Copyright (c) 2023 Carleton University and National Research Council Canada |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only em_read_CAN
has the Carleton and NRCC copyright. Is this copyright required on all files created or modified by Carleton and NRCC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add copyright statement to other modified files
EncounterModel.m
Outdated
@@ -0,0 +1,357 @@ | |||
classdef EncounterModel < handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file a copy of code\matlab\@EncounterModel\EncounterModel
? If a copy, please remove this duplicate. If this code was modified, can you please update of the existing file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understood what you meant by duplicates - there were extra files committed to the main folder. This was corrected
RUN_uncor.m
Outdated
%% Inputs | ||
file_name='uncor_1200only_fwse_v1p2.txt'; | ||
|
||
if contains (file_name, '.txt') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend creating a new file titled RUN_uncor_CA
in the code\matlab
directory and streamline this new file to load only the new Canadian model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, will do!
RUN_uncor.m
Outdated
% Geodetic track maintaining at least 500 feet laterally from a point obstacle | ||
out_results_geo500 = mdl.track(n_samples, sample_time, 'initialSeed', init_seed, 'coordSys', 'geodetic', ... | ||
'lat0_deg', lat0_deg, 'lon0_deg', lon0_deg, ... | ||
'dofMaxRange_ft', 500, 'isPlot', true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dofMaxRange_ft
is for when using the FAA digital obstacle file (DOF). The DOF has limited coverage of the Pacific, the Caribbean, Canada, and Mexico. Recommend adding an inline comment about this or in a future update, provide support for more Canadian obstacles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this piece of code from RUN_uncor_CA.m, since we currently do not support this.
RUN_uncor.m
Outdated
% lat0_deg = 44.25889; lon0_deg = -71.31887; % Lake of the Clouds, White Mountains, NH | ||
% lat0_deg = 40.01031; lon0_deg = -105.22097; % Flatirons Golf Course, Boulder, CO | ||
% lat0_deg = 46.96983; lon0_deg = -101.54661; % Bison Wind Project, ND | ||
lat0_deg = 42.29959; lon0_deg = -71.22220; % Exit 35C on I95, Massachusetts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update lat0_deg
and lon0_deg
to be a location in Canada
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this piece of code from RUN_uncor_CA.m, since we currently do not support this.
RUN_uncor.m
Outdated
% update or comment out accordingly. Also comment out if you don't want to | ||
% define a start distribution. | ||
%To use Canadian models, please comment those out | ||
start{1} = 1; % Geographic domain - CONUS (G = 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove start
for Canadian specific file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -1,288 +1,49 @@ | |||
# Bayesian Network Encounter Models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main README should include the intro material
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure how the main Readme got to this condition!! And there were duplicates all over the main folder. Perhaps, there was a mistake on my end upon the creation of this pull request.
UncorEncounterModel.m
Outdated
@@ -0,0 +1,535 @@ | |||
classdef UncorEncounterModel < EncounterModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comments as EncounterModel
. If this is a copy, use the existing version. If this was modified, please streamline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was modified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate removed
Addressed duplicate files and streamlining Canadian contributions
@@ -0,0 +1,354 @@ | |||
classdef EncounterModel_CA < handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this class inherit from EncounterModel
or UncorEncounterModel
? I really want to minimize duplicate code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just fixed. Please let me know if you have any other requests related to reducing redundancy ;)
@@ -0,0 +1,130 @@ | |||
function dynamiclimits = getDynamicLimits(self, initial, results, idx_G, idx_A, idx_L, idx_V, idx_DH, is_discretized) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a duplicate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just removed!
Previous commit I uploaded old version accidentally ; those modes should be correct
@spydoctor , In commit 5651666 I converted the helicopter .mat parameter file to an ASCII format and prototyped reading the ASCII file using the existing |
@aweinert-MIT I just tried to run the updated codes from your new commit, and I ran into several issues executing both run_uncor.m and run_uncor.ca (screenshots attached). Therefore, I could not verify, unfortunately, whether the conversion worked. |
I'll investigate and check everything was committed |
@spydoctor Please confirm the system environment variable |
This is very strange, because when I revert to a previous commit, everything works! |
Progress! That warning about the row missing data was introduced in my last commit. I recognize that error too and know where to investigate Andrew WeinertMIT Lincoln ***@***.*** Aug 3, 2023, at 11:34 AM, Iryna Borshchova ***@***.***> wrote:
#pfptBanneram7h51g { color-scheme: revert !important; writing-mode: revert !important; -webkit-ruby-position: revert !important; color: revert !important; font-family: revert !important; font-feature-settings: revert !important; font-kerning: revert !important; font-optical-sizing: revert !important; font-palette: revert !important; font-size: revert !important; font-size-adjust: revert !important; font-stretch: revert !important; font-style: revert !important; font-synthesis-small-caps: revert !important; font-synthesis-style: revert !important; font-synthesis-weight: revert !important; font-variant-alternates: revert !important; font-variant-caps: revert !important; font-variant-east-asian: revert !important; font-variant-ligatures: revert !important; font-variant-numeric: revert !important; font-variant-position: revert !important; font-variation-settings: revert !important; font-weight: revert !important; text-orientation: revert !important; text-rendering: revert !important; zoom: revert !important; -webkit-font-smoothing: revert !important; -webkit-locale: revert !important; -webkit-text-size-adjust: revert !important; -webkit-text-zoom: revert !important; letter-spacing: revert !important; accent-color: revert !important; align-content: revert !important; align-items: revert !important; align-self: revert !important; align-tracks: revert !important; alignment-baseline: revert !important; alt: revert !important; animation-composition: revert !important; animation: revert !important; appearance: revert !important; aspect-ratio: revert !important; backface-visibility: revert !important; background-attachment: revert !important; background-blend-mode: revert !important; background-image: revert !important; background-position: revert !important; background-repeat: revert !important; background-size: revert !important; baseline-shift: revert !important; border-collapse: revert !important; border: revert !important; box-sizing: revert !important; break-after: revert !important; break-before: revert !important; break-inside: revert !important; buffered-rendering: revert !important; caption-side: revert !important; caret-color: revert !important; clear: revert !important; clip: revert !important; clip-path: revert !important; clip-rule: revert !important; color-interpolation: revert !important; color-interpolation-filters: revert !important; column-count: revert !important; column-fill: revert !important; column-gap: revert !important; column-rule-color: revert !important; column-rule-style: revert !important; column-rule-width: revert !important; column-span: revert !important; column-width: revert !important; contain: revert !important; container-name: revert !important; container-type: revert !important; content: revert !important; content-visibility: revert !important; counter-increment: revert !important; counter-reset: revert !important; cursor: revert !important; cx: revert !important; cy: revert !important; dominant-baseline: revert !important; empty-cells: revert !important; fill: revert !important; fill-opacity: revert !important; fill-rule: revert !important; filter: revert !important; flex: revert !important; flex-flow: revert !important; float: revert !important; flood-color: revert !important; flood-opacity: revert !important; glyph-orientation-horizontal: revert !important; glyph-orientation-vertical: revert !important; grid: revert !important; grid-column-end: revert !important; grid-column-start: revert !important; grid-row-end: revert !important; grid-row-start: revert !important; hanging-punctuation: revert !important; image-orientation: revert !important; image-rendering: revert !important; input-security: revert !important; isolation: revert !important; justify-content: revert !important; justify-items: revert !important; justify-self: revert !important; justify-tracks: revert !important; kerning: revert !important; leading-trim: revert !important; lighting-color: revert !important; line-break: revert !important; line-height: revert !important; list-style: revert !important; margin-trim: revert !important; marker: revert !important; mask: revert !important; mask-size: revert !important; mask-type: revert !important; masonry-auto-flow: revert !important; math-style: revert !important; mix-blend-mode: revert !important; object-fit: revert !important; object-position: revert !important; offset-anchor: revert !important; offset-distance: revert !important; offset-path: revert !important; offset-position: revert !important; offset-rotate: revert !important; order: revert !important; orphans: revert !important; outline: revert !important; outline-offset: revert !important; overflow-anchor: revert !important; overflow-wrap: revert !important; overflow: revert !important; page: revert !important; paint-order: revert !important; perspective: revert !important; perspective-origin: revert !important; pointer-events: revert !important; position: revert !important; print-color-adjust: revert !important; quotes: revert !important; r: revert !important; resize: revert !important; rotate: revert !important; row-gap: revert !important; rx: revert !important; ry: revert !important; scale: revert !important; scroll-behavior: revert !important; scroll-snap-align: revert !important; scroll-snap-stop: revert !important; scroll-snap-type: revert !important; shape-image-threshold: revert !important; shape-margin: revert !important; shape-outside: revert !important; shape-rendering: revert !important; size: revert !important; speak-as: revert !important; stop-color: revert !important; stop-opacity: revert !important; stroke: revert !important; stroke-color: revert !important; stroke-dasharray: revert !important; stroke-dashoffset: revert !important; stroke-linecap: revert !important; stroke-linejoin: revert !important; stroke-miterlimit: revert !important; stroke-opacity: revert !important; stroke-width: revert !important; tab-size: revert !important; table-layout: revert !important; text-align: revert !important; text-align-last: revert !important; text-anchor: revert !important; text-decoration-color: revert !important; text-decoration: revert !important; text-decoration-skip-ink: revert !important; text-decoration-style: revert !important; text-decoration-thickness: revert !important; text-edge: revert !important; text-emphasis-color: revert !important; text-emphasis-position: revert !important; text-emphasis-style: revert !important; text-group-align: revert !important; text-indent: revert !important; text-justify: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-underline-offset: revert !important; text-underline-position: revert !important; text-wrap: revert !important; touch-action: revert !important; transform: revert !important; transform-box: revert !important; transform-origin: revert !important; transform-style: revert !important; transition: revert !important; translate: revert !important; vector-effect: revert !important; vertical-align: revert !important; white-space: revert !important; widows: revert !important; will-change: revert !important; word-break: revert !important; word-spacing: revert !important; x: revert !important; y: revert !important; z-index: revert !important; -apple-color-filter: revert !important; -apple-pay-button-style: revert !important; -apple-pay-button-type: revert !important; -internal-text-autosizing-status: revert !important; -webkit-backdrop-filter: revert !important; border-spacing: revert !important; -webkit-box-align: revert !important; -webkit-box-decoration-break: revert !important; -webkit-box-direction: revert !important; -webkit-box-flex: revert !important; -webkit-box-flex-group: revert !important; -webkit-box-lines: revert !important; -webkit-box-ordinal-group: revert !important; -webkit-box-orient: revert !important; -webkit-box-pack: revert !important; -webkit-box-reflect: revert !important; -webkit-column-axis: revert !important; -webkit-column-progression: revert !important; -webkit-cursor-visibility: revert !important; -webkit-font-size-delta: revert !important; -webkit-hyphenate-character: revert !important; -webkit-hyphenate-limit-after: revert !important; -webkit-hyphenate-limit-before: revert !important; -webkit-hyphenate-limit-lines: revert !important; -webkit-hyphens: revert !important; -webkit-initial-letter: revert !important; -webkit-line-align: revert !important; -webkit-line-box-contain: revert !important; -webkit-line-clamp: revert !important; -webkit-line-grid: revert !important; -webkit-line-snap: revert !important; -webkit-marquee-direction: revert !important; -webkit-marquee-increment: revert !important; -webkit-marquee-repetition: revert !important; -webkit-marquee-speed: revert !important; -webkit-marquee-style: revert !important; -webkit-mask-box-image: revert !important; -webkit-nbsp-mode: revert !important; -webkit-overflow-scrolling: revert !important; -webkit-rtl-ordering: revert !important; -webkit-tap-highlight-color: revert !important; -webkit-text-decorations-in-effect: revert !important; -webkit-text-fill-color: revert !important; -webkit-text-security: revert !important; -webkit-text-stroke-color: revert !important; -webkit-text-stroke-width: revert !important; -webkit-touch-callout: revert !important; -webkit-user-drag: revert !important; -webkit-user-modify: revert !important; -webkit-user-select: revert !important; background-clip: revert !important; background-origin: revert !important; block-size: revert !important; border-block: revert !important; border-radius: revert !important; border-end-end-radius: revert !important; border-end-start-radius: revert !important; border-inline: revert !important; border-start-end-radius: revert !important; border-start-start-radius: revert !important; inset: revert !important; box-shadow: revert !important; contain-intrinsic-block-size: revert !important; contain-intrinsic-size: revert !important; contain-intrinsic-inline-size: revert !important; height: revert !important; inline-size: revert !important; inset-block: revert !important; inset-inline: revert !important; margin-block: revert !important; margin: revert !important; margin-inline: revert !important; mask-composite: revert !important; mask-mode: revert !important; max-block-size: revert !important; max-inline-size: revert !important; min-block-size: revert !important; min-height: revert !important; min-inline-size: revert !important; min-width: revert !important; overscroll-behavior-block: revert !important; overscroll-behavior-inline: revert !important; overscroll-behavior: revert !important; padding-block: revert !important; padding: revert !important; padding-inline: revert !important; scroll-margin-block: revert !important; scroll-margin: revert !important; scroll-margin-inline: revert !important; scroll-padding-block: revert !important; scroll-padding: revert !important; scroll-padding-inline: revert !important; text-combine-upright: revert !important; width: revert !important; -webkit-background-clip: revert !important; -webkit-background-origin: revert !important; -webkit-box-shadow: revert !important; -webkit-mask: revert !important; -webkit-mask-composite: revert !important; -webkit-mask-source-type: revert !important; -webkit-text-combine: revert !important; display: block !important; visibility: visible !important; opacity: 1 !important; background-color: rgb(208, 216, 220) !important; max-width: none !important; max-height: none !important; }
.pfptPrimaryButtonam7h51g:hover, .pfptPrimaryButtonam7h51g:focus { background-color: rgb(180, 193, 199) !important; }
.pfptPrimaryButtonam7h51g:active { background-color: rgb(144, 164, 174) !important; }
This is very strange, because when I revert to a previous commit, everything works! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. Message ID: <Airspace-Encounter-Models/em-model-manned-bayes/pull/49/c1664206463@ github. com>
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside the Laboratory.
ZjQcmQRYFpfptBannerEnd
This is very strange, because when I revert to a previous commit, everything works!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Add support for the Canadian Airspace Models