From e9ee1bddd3f23dbebe2e849e68007f08cca9d541 Mon Sep 17 00:00:00 2001 From: merspieler Date: Thu, 1 Feb 2018 17:47:57 +0100 Subject: [PATCH] Added first checklist intent Signed-off-by: merspieler --- __init__.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/__init__.py b/__init__.py index a6813a5..a1c92dd 100644 --- a/__init__.py +++ b/__init__.py @@ -12,6 +12,9 @@ LOGGER = getLogger(__name__) class FlightGearCopilotSkill(MycroftSkill): def __init__(self): super(FlightGearCopilotSkill, self).__init__() + self.settings['host'] = "localhost" + self.settings['port'] = 8081 + # TODO add self.settings['profiles'] with default profiles (A32X and c172p) # DEFINITION of the settings['profiles'] structure # [ @@ -188,6 +191,27 @@ class FlightGearCopilotSkill(MycroftSkill): else: self.speak_dialog("gear.not.retractable") + +################################################################# +# # +# Checklists # +# # +################################################################# + +# TODO add all possible checklist +# TODO make it possible, to play a .mp3 file instead of tts + +######################### +# # +# LDG Check # +# # +######################### + + @intent_handler(IntentBuilder('LDGCheckIntent').require('ldgcheck')) + def handle_ldg_check_intent(self, message): + # TODO make checklist plane specific + self.speak("Landing no blue. . . Landing checklist completed") + def stop(self): pass