-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(a380/mfd): position monitor page #9182
base: master
Are you sure you want to change the base?
Conversation
Wohoo, Bruno's been cooking again |
7d0e01e
to
a6caf23
Compare
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.
Some early suggestions.
@@ -198,14 +198,34 @@ export class Navigation implements NavigationProvider { | |||
NearbyFacilities.getInstance().setPpos(this.ppos); | |||
} | |||
|
|||
public updateRnp(rnp: number | null) { |
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.
public updateRnp(rnp: number | null) { | |
public setPilotRnp(rnp: number | null) { |
Don't want confusion around this, hence the original naming.
return this.currentPerformance ?? Infinity; | ||
} | ||
|
||
public getRnp(): NauticalMiles { |
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.
public getRnp(): NauticalMiles { | |
/** | |
* Gets the active RNP considering priority order. | |
* @returns RNP in nautical miles, or undefined if none. | |
*/ | |
public getActiveRnp(): number | undefined { |
public getBaroCorrectedAltitude(): number | null { | ||
return this.baroAltitude; | ||
} | ||
|
||
public getEpe(): number { | ||
public getEpe(): NauticalMiles { |
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.
These types that are just = number
are legacy. Better to document the API properly.
public getEpe(): NauticalMiles { | |
/** | |
* Gets the estimated position error. | |
* @returns Estimated position error in nautical miles, or Infinity if no position. | |
*/ | |
public getEpe(): number { |
/** | ||
* Get if a manual RNP entry was performed | ||
*/ | ||
isRnpManual(): boolean; |
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.
Update the interface per above suggestions.
get positionMonitorFix(): Fix | null; | ||
|
||
set positionMonitorFix(fix: Fix | null); |
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.
get positionMonitorFix(): Fix | null; | |
set positionMonitorFix(fix: Fix | null); | |
positionMonitorFix: Fix | null; |
get positionMonitorFix(): Fix | null { | ||
return this.posMonitorFix; | ||
} | ||
|
||
set positionMonitorFix(fix: Fix | null) { | ||
this.posMonitorFix = fix; | ||
} |
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.
Trivial getter/setter doesn't do anything except harm perf.
c0130d9
to
971b512
Compare
d251402
to
1d8df34
Compare
1d8df34
to
6a2c2b1
Compare
Fixes #[issue_no]
Summary of Changes
Screenshots (if necessary)
References
Additional context
Discord username (if different from GitHub):
bruno_pt99
Testing instructions
How to download the PR for QA
Every new commit to this PR will cause new A32NX and A380X artifacts to be created, built, and uploaded.