# Chris GNC Suite
Advanced guidance and control research for Kerbal Space Program.

Chris GNC Suite is a powerful autopilot mod containing PEGLand and UEntry programs that enable precise spacecraft landings on the Moon or Earth.
See [Installation](#installation) for installation instructions, and read the [Tutorial](./docs/English/README.md) to learn how to use it.

![](./docs/pictures/coverpage.png)

**This branch contains scripts from some other open-source project**:

- **PEGAS**: Ascent guidance script from [Noiredd](https://github.com/Noiredd/PEGAS)

## Videos

- [[KSP/RSS/RO]PEGLand: 你也许能找到的最方便的定点着陆脚本](https://www.bilibili.com/video/BV1wDd2YDEf1)
- [[KSP/RSS/RO]PEGLand v0.3: 早期探测器一键自动定点落月](https://www.bilibili.com/video/BV1ZJdZY6EwE)
- [[KSP/RSS/RO]PEGLand v0.3阿波罗登月特别版：厘米级优雅着陆](https://www.bilibili.com/video/BV1wGdZYjEgm)
- [[KSP/RSS/RO]PEGLand 0.7: 通用定点着陆制导，支持目视修正](https://www.bilibili.com/video/BV1yUT6z4ExF)
- [UEntry: 如何专业且优雅地把航天飞机飞回跑道(Part 1)](https://www.bilibili.com/video/BV1dAcFz5ECu)
- [UEntry: 如何驾驶梦舟飞船从月球飞回文昌(Part2)](https://www.bilibili.com/video/BV1QncPzEEKC)

## MOD List

- KSP 1.12.5
- kOS: Scriptable Autopilot System 1.4.0.0
- KSPBurst Compiler 1.5.5.2 (Required by UEntry)
- Ferram Aerospace Research Continued 0.16.1.2 (Required by UEntry)
- WaypointManager (Recommended for PEGLand and UEntry)

## Installation

### Via CKAN

Search for `Chris GNC Suite` and install. All scripts and DLLs will be automatically put into the right places.

### Manual Installation

First install all mod dependencies, then download the installation package from:

- [SpaceDock](https://spacedock.info/mod/4126/Chris%20GNC%20Suite)
- [Github Releases](https://github.com/ChrisInBed/Chris_KSP_Lib/releases/latest) (`Chris_GNC_Suite-v<VERSION>.zip`)

After extraction, you will see two folders:

- `Ships`: Move it to the `<KSP Root Directory>\` folder. When complete, the path `<KSP Root Directory>\Ships\Script\pegland.ks` should exist.
- `GameData`: Move it to the `<KSP Root Directory>\` folder. When complete, the path `<KSP Root Directory>\GameData\kOS-Addons\AFS\kOS-AFS.dll` should exist.

## Tutorial

[Tutorial](./docs/English/README.md)
