bereshit

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WEIGHT_EMP  float64 = 165                      // kg
	WEIGHT_FULE float64 = 420                      // kg
	WEIGHT_FULL float64 = WEIGHT_EMP + WEIGHT_FULE // kg
	// https://davidson.weizmann.ac.il/online/askexpert/%D7%90%D7%99%D7%9A-%D7%9E%D7%98%D7%99%D7%A1%D7%99%D7%9D-%D7%97%D7%9C%D7%9C%D7%99%D7%AA-%D7%9C%D7%99%D7%A8%D7%97
	MAIN_ENG_F   float64 = 430   // N
	SECOND_ENG_F float64 = 25    // N
	MAIN_BURN    float64 = 0.15  //liter per sec, 12 liter per m'
	SECOND_BURN  float64 = 0.009 //liter per sec 0.6 liter per m'
	ALL_BURN     float64 = MAIN_BURN + 8*SECOND_BURN
	DeltaTime    float64 = 1 // sec
)

Variables

This section is empty.

Functions

func ToRadians

func ToRadians(degrees float64) float64

Types

type Bereshit

type Bereshit struct {
	VerticalSpeed    float64
	HorizontalSpeed  float64
	Distance         float64
	Angle            float64 // zero is vertical (as in landing)
	Altitude         float64
	AccelerationRate float64 // m/s^2
	Fuel             float64
	Weight           float64
	NN               float64 // rate[0,1]
}

func NewBereshit

func NewBereshit() Bereshit

func (*Bereshit) BoazLanding

func (bereshit *Bereshit) BoazLanding()

func (*Bereshit) Landing

func (bereshit *Bereshit) Landing()

func (*Bereshit) PID

func (*Bereshit) ToString

func (bereshit *Bereshit) ToString(time int) []string

func (*Bereshit) ToStringFinish

func (bereshit *Bereshit) ToStringFinish(time int) []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL