Skip to content

Wasymir/cpsfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command_Line_Python_Space_Simulator



0. Table of Contents



1. Ui Explanation


UI Image



S_Position -> Simplified Position

Is used to define a simplified position on the map, useful for navigation on map.


property Description
z z axis integer position
x x axis integer position
y y axis integer position


D_Position -> Detailed Position

Is used to define a detailed position on the map, useful for determining the distance to the next map block.


property Description
z z axis float position
x x axis float position
y y axis float position
rh relative height
R.H.W relative height warning - starts blinking if rh < 1


Rotation


Determines the slope and rotation of the ship about the axes.


property Description
z z axis rotation (see 'a' angle at 1. picture)
x x axis rotation (see 'b' angle at 2. picture)

  1. picture

Angle z image


  1. picture

Angle z image



Velocity

Is used to define a movement speed at every axis and engine thrust.


property Description
z z axis movement speed
x x axis movement speed
y y axis movement speed
tr engine thrust


Fuel

Is used to define a fuel level.


property Description
fl fuel level
F.L.W Fuel Level Warning - starts blinking if fl < 50


Auto_TK_Sys -> Automatic Take-off and Landing System


property Description
S.I State Indicator

S.I state Description
solid landed (press t to take-off)
blinking landing conditions met (press l to land)
loading landing / take-off in progress (wait)

Conditions required to start Auto Landing

parameter requirement
Velocity x, y & z < 0.2
Relative height <0.5, >0.05


Terrain Height map

Used for navigation and determination of altitude on a given map block.


terrain map pic

map cell value Description
number terrain height
! block of the map that you can crash into
@ your ship
# block outside of map


X_axis_AGSS -> X axis Advanced Graphic Surface Scanner

Used to navigate perpendicular to the x axis.


X axis AGSS pic

map cell value Description
* empty map block
X filled map block
@ your ship
# block outside of map


Y_axis_AGSS -> Y axis Advanced Graphic Surface Scanner

Used to navigate perpendicular to the y axis.


Y axis AGSS pic

map cell value Description
* empty map block
X filled map block
@ your ship
# block outside of map


2. Key Binding


key function
w Pitch up (raises x axis rotation)
s Pitch down (decrease x axis rotation)
a Yaw left (decrease z axis rotation)
d Yaw right (raises z axis rotation)
q Thrust up (raises thrust)
e Thrust Down (decrease thrust)
x Thrust Emergency Brake (sets thrust to 0)
z Thrust Max (sets thrust to 100)
c Thrust Min (sets thrust to -100)
r Landing Engines up (raises z axis movement velocity)
f Landing Engines down (decrease z axis movement velocity)
t Take off (read Auto_TK_Sys description)
l Land (read Auto_TK_Sys description)
g quit


3. Installation tutorial for non-technical people


  1. Download and install Github Desktop

  2. Clone Repository to your computer:

    • Open Github Desktop.
    • Click 'Clone repository from the Internet...' button.
    • Select 'Url' option
    • Paste link to this repository and choose download dir.
  3. If you want to get the current version of repository just select pull option from Repository tab.

  4. If you don't have python, install it. According to this tutorial.

  5. If you are using Windows just run 'run.cmd' file, but if you are using Linux or MacOs run this commands in terminal (remember to replace the brackets)

cd (path to folder with the repository)
pip install -r requirements.txt
python cpsfs.py

About

Command_Line_Python_Space_Simulator

Resources

Stars

Watchers

Forks

Packages

No packages published