The missile knows where it is at all times. It knows this because it knows where it isn't. By subtracting where it is from where it isn't, or where it isn't from where it is (whichever is greater), it obtains a difference, or deviation. The guidance subsystem uses deviations to generate corrective commands to drive the missile from a position where it is to a position where it isn't, and arriving at a position where it wasn't, it now is. Consequently, the position where it is, is now the position that it wasn't, and it follows that the position that it was, is now the position that it isn't. In the event that the position that it is in is not the position that it wasn't, the system has acquired a variation, the variation being the difference between where the missile is, and where it wasn't. If variation is considered to be a significant factor, it too may be corrected by the GEA. However, the missile must also know where it was. The missile guidance computer scenario works as follows. Because a variation has modified some of the information the missile has obtained, it is not sure just where it is. However, it is sure where it isn't, within reason, and it knows where it was. It now subtracts where it should be from where it wasn't, or vice-versa, and by differentiating this from the algebraic sum of where it shouldn't be, and where it was, it is able to obtain the deviation and its variation, which is called error.
Find a file
2024-08-02 16:10:21 +03:00
index.cpp init: add basic code 2024-08-02 16:08:36 +03:00
LICENSE feat: ADD AGPL-3 2024-08-02 16:10:21 +03:00
README.md init: add basic code 2024-08-02 16:08:36 +03:00

MGS

Missile Guidance System (C++)

This is a small simplified missile guidance system in C++, I hope to improve it and make it more realistic in the future.

Installation instructions

Requirements: G++, Git and a Linux OS.

git clone https://git.xorycode.dev/xory/mgs.git
cd mgs
g++ index.c
./a.out