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
Click to show internal directories.
Click to hide internal directories.