diff --git a/app/components/live-atc/cockpit/ExpectedCommStrip.vue b/app/components/live-atc/cockpit/ExpectedCommStrip.vue new file mode 100644 index 0000000..538a10e --- /dev/null +++ b/app/components/live-atc/cockpit/ExpectedCommStrip.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/app/components/live-atc/cockpit/PttPad.vue b/app/components/live-atc/cockpit/PttPad.vue new file mode 100644 index 0000000..d9be97d --- /dev/null +++ b/app/components/live-atc/cockpit/PttPad.vue @@ -0,0 +1,243 @@ + + + + + diff --git a/app/pages/live-atc.vue b/app/pages/live-atc.vue index 83db64b..328c00c 100644 --- a/app/pages/live-atc.vue +++ b/app/pages/live-atc.vue @@ -254,49 +254,6 @@ /> - -
- - -
-

Expected communication

- - - -
- -
-
- mdi-radio-tower - ATC -
-

{{ displayControllerSay }}

-
- -
-
- mdi-account-pilot - Pilot (You) -
-

{{ displayExpectedPhrase }}

-
-
-
-
-
@@ -321,62 +278,29 @@
- -
- - - Microphone permission required for push-to-talk. - - - - -
-
- -

- {{ isRecording ? 'Transmitting' : 'Hold to transmit' }} -

-

- - {{ isRecording ? 'Hotkey transmitting' : 'Hotkey armed' }} -

-

{{ frequencies.active || '---' }}

-

Active frequency

-
-
-
-
+ +
+ +
@@ -1205,6 +1129,8 @@ import { usePmTheme } from '~/composables/usePmTheme' import { normalizeManualFreq } from '../../shared/utils/frequency' import { useFrequencyPresets } from '~/composables/useFrequencyPresets' import RadioPanel from '~/components/live-atc/cockpit/RadioPanel.vue' +import ExpectedCommStrip from '~/components/live-atc/cockpit/ExpectedCommStrip.vue' +import PttPad from '~/components/live-atc/cockpit/PttPad.vue' import { useAtisPlayback } from '~/composables/useAtisPlayback' import { usePttRecording } from '~/composables/usePttRecording' import { useBugReport } from '~/composables/useBugReport' @@ -1388,6 +1314,9 @@ const activeTab = ref<'funk' | 'log'>('funk') const experienceMenu = ref(false) const inputMode = ref<'voice' | 'text'>('voice') const learningMode = ref(true) +const showExpectedComm = computed( + () => learningMode.value && Boolean(displayControllerSay.value || displayExpectedPhrase.value), +) // Overlays / sheets opened from HUD controls const showFlightSheet = ref(false) @@ -1693,37 +1622,19 @@ onUnmounted(() => {