Code Monkey home page Code Monkey logo

laika's Introduction

Laika Modular Computer

for KSP v.1.3.1 and KoS v.1.1.5.0.

Laika the Space Dog

Installation

Install Laika package in to drive 0: of KoS, which is normally located in Kerbal Space Program/Ships/Scripts, mantaining the same file structure of the package.

The package contains the following files:

  • boot/laika.ks - the bootstrap file that launches Laika Configurator,
  • lib/laika/laika_conf.ks - Laika Configurator to setup Laika Computer,
  • lib/laika/laika_core.ks - Laika Computer that will run during missions,
  • lib/laika/preprocessor.ks - a code preprocessor used to build Laika Computer,
  • lib/laika/lib_lk_gui.ks - Laika's GUI library,
  • lib/laika/ozin/* - libraries needed by Laika Configurator,
  • lib/laika/mod/* - modules used to expand Laika Computer functionalities.

Usage

Set boot/laika.ks as bootstrap file using the part interface of the Kos Computer in the Building Facility, and launch your vessel.

Once on the Launch-Pad, the KoS terminal should automatically open and Laika Configurator will run. Here you can choose the modules to install and configure them. By default, there are no modules installed.

Build Laika Computer and pay attention not to get any error. Once builded, you can reboot KoS to start Laika Computer.

Laika Configurator

On launch, it will scan all the modules present in lib/laika/mod/, reading for each one the installation informations. Once ready, it'll show the menu interface.

   Лайка Модули Конфигурация в.0.9.3.
   ================================================

>> CONFIGURE LAIKA
   -
   INSTALL MODULES
   CONFIG INSTALLED MODS
   -
   BUILD LAIKA
   -
   CREDITS
   -
   REBOOT
   EXIT

Installing and configurig modules

Select the modules to install in the list available from the >> INSTALL MODULES menu. If found, a description for the current modules will be shown at the bottom of the terminal screen.

You can get back to the main menu using the RETURN menu or by hitting the DELETE key.

   AVAILABLE MODS
   ================================================

   Flight Data Recorder    [ X ]
>> PID Controller          [ X ]                    True
   -
   RETURN

The CONFIG INSTALLED MODS menu will show the list of the installed mod.

   INSTALLED MODS
   ================================================

>> Flight Data Recorder                             Menu
   PID Controller
   -
   RETURN

Entering each module, you can configure the installation options as well as any extra mod specific parameter.

   'Flight Data Recorder' CONFIGURATION
   ================================================

   --| LAIKA UI OPTIONS |--
>> MENU NAME               FDR
   PARENT MENU             MAIN
   PARENT MENU BUTTON      8

   --| MODULE OPTIONS |--
   Destination Dir         0:/telemetry/
   File Prefix             FDR_
   Sampling Rate           1
   REVERT TO DEFAULTS

   --| INSTALL OPTIONS |--
   Export CSV              [   ]
   Export Octave           [ X ]
   REVERT TO DEFAULTS
   -
   RETURN

Building Laika Computer

Choose BUILD LAIKA to process and compile Laika core, libraries and all the modules. The current configuration will be saved in the file config.lk, stored in the installation drive.

Once the installation has been done, you'll get the report of the total warnings and errors.

      [INFO]: 0 WARNINGS in total,
              0 ERRORS in total.
[Press any key to continue]

Laika Sample Interface Screen

                    Лайка Модульный Компьютер в.0.9.5               80%
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                         Flight Data Recorder                         ┃
┃----------------------------------------------------------------------┃
┃                                                                      ┃
┃  Idle.                                                               ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃                                                                      ┃
┃______________________________________________________________________┃
┃  SR: 1s        Δt: 0s                                           OCT  ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┗━━━━━━━━━━━━━┓                 ┃ FDR ┃                  ┏━━━━━━━━━━━━━┛
              ┃                 ┗━━━━━┛                  ┃
┏━━━━━━━━━━━━━┛                                          ┗━━━━━━━━━━━━━┓
┗━━━━━━━━━━━━━┓                                          ┏━━━━━━━━━━━━━┛
              ┃               POWER DRAIN:               ┃
┏━━━━━━━━━━━━━┛                  0.08%/m                 ┗━━━━━━━━━━━━━┓
┗━━━━━━━━━━━━━┓                                          ┏━━━━━━━━━━━━━┛
              ┃               DISK SPACE:                ┃
┏━━━━━━━━━━━━━┛                1: 25201b                 ┗━━━━━━━━━━━━━┓
┗━━━━━━━━━━━━━┓                                          ┏━━━━━━━━━━━━━┛
○ START       ┃               ┏━━━━━━━━━━┓               ┃        STOP ○
┏━━━━━━━━━━━━━┛               ┃ ● НАЗАД  ┃               ┗━━━━━━━━━━━━━┓
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛          ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 ⑦ След.  ⑧ Пред.                                         ⑨ Поступать

Interface Navigation

While the focus is on KSP interface, you can navigate the interface with Action Group commands.

You can use:

  • AG7 to move to the next button,
  • AG8 to move to the previous button,
  • AG9 to trigger the current button.

If the focus is on KoS terminal, you can navigate using the cursor arrows, trigger the current button with ENTER and the НАЗАД (Back) button with DELETE. You can use the number keys 7, 8 and 9 aswell, that replicates the Action Group's behaviour.

Credits

Laika Modular Computer, Laika Configurator, Laika UI Library and KoS Preprocessor

Made and maintained by Pacrox.

Ozin Libraries

Modified from the originals made by ozin370.

https://github.com/ozin370/Script

KoS Language Interpreter and Compiler

Originally made by Nivekk, currently mantained by Dunbaratu.

https://github.com/KSP-KOS/KOS

laika's People

Stargazers

 avatar  avatar

Forkers

7ranceaddic7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.