-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When Input.ExternalSwitches.LegObsSwitchInstalled is true, then the K…
…LN listens to GPS OBS ACTIVE, to switch mode accordingly
- Loading branch information
Showing
14 changed files
with
193 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = "0.1 B5"; // 6 chars maximum! | ||
export const VERSION = "0.1 B6"; // 6 chars maximum! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import {FSComponent, VNode} from '@microsoft/msfs-sdk'; | ||
import {NO_CURSOR_CONTROLLER} from "./CursorController"; | ||
import {FourSegmentPage, SixLinePage} from "./FourSegmentPage"; | ||
import {NO_CHILDREN, PageProps} from "./Page"; | ||
import {AiracPage} from "./AiracPage"; | ||
|
||
|
||
export class ObswarningPage extends SixLinePage { | ||
|
||
readonly children = NO_CHILDREN; | ||
public readonly lCursorController = NO_CURSOR_CONTROLLER; | ||
public readonly rCursorController = NO_CURSOR_CONTROLLER; | ||
|
||
constructor(props: PageProps) { | ||
super(props); | ||
} | ||
|
||
public render(): VNode { | ||
return (<pre> | ||
<br/> | ||
        WARNING<br/> | ||
<br/> | ||
 SYSTEM IS IN OBS MODE<br/> | ||
 PRESS GPS CRS BUTTON<br/> | ||
 TO CHANGE TO LEG MODE | ||
</pre>); | ||
} | ||
|
||
tick(blink: boolean) { | ||
super.tick(blink); | ||
if (!this.props.modeController.isObsModeActive()) { | ||
this.props.pageManager.setCurrentPage(FourSegmentPage, { | ||
...this.props, | ||
page: new AiracPage(this.props), | ||
}); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.