stats

package
v0.0.0-...-57fb5ef Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlightStats

type FlightStats struct {
	Apogee            float64
	MaxVelocity       float64
	MaxAccel          float64
	BurnTime          float64
	TimeToApogee      float64
	TotalFlightTime   float64
	MaxMach           float64
	GroundHitVelocity float64
	// contains filtered or unexported fields
}

FlightStats represents statistics for a rocket flight

func NewFlightStats

func NewFlightStats() *FlightStats

NewFlightStats creates a new FlightStats object

func (*FlightStats) String

func (s *FlightStats) String() string

String returns a string representation of the flight statistics

func (*FlightStats) Update

func (s *FlightStats) Update(time, altitude, velocity, accel, mach float64)

Update updates the flight statistics with new data

Jump to

Keyboard shortcuts

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