Skip to content

Comments

Define-specific-callsigns#764

Open
checkandmate1 wants to merge 7 commits intommp:masterfrom
checkandmate1:define-specific-callsigns
Open

Define-specific-callsigns#764
checkandmate1 wants to merge 7 commits intommp:masterfrom
checkandmate1:define-specific-callsigns

Conversation

@checkandmate1
Copy link
Collaborator

To define specific callsigns in a scenario.

callsigns can be to airlines in lieu of icao.

Copy link
Owner

@mmp mmp left a comment

Choose a reason for hiding this comment

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

Looks good overall. A few picky things.

@checkandmate1 checkandmate1 requested a review from mmp February 21, 2026 20:31
"icao": "AFR"
}
],
"callsigns": [
Copy link
Owner

Choose a reason for hiding this comment

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

Should be "airlines" I think?

<tr>
<td>"callsign"</td>
<td>String</td>
<td>A specific callsign (eg. AAL123) to use for an aircraft flying this route. (Both callsigns and ICAO cannot be specified at the same time.)</td>
Copy link
Owner

Choose a reason for hiding this comment

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

Isn't it that if a callsign is specified, then the icao is ignored? If so, should probably validate in PostDeserialize() just so users aren't confused if they give both.


var ac *Aircraft
var acType string
for range 50 {
Copy link
Owner

Choose a reason for hiding this comment

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

I believe that if we only have a callsign and already have an aircraft in the air with that callsign, this will end up running 50 times trying to spawn that callsign repeatedly. In that case it would be good to fail fast and move on.

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.

2 participants