states

package
v0.7.2 Latest Latest
Warning

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

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

README

pkg/states

This package defines the different states that a rocket can be in during flight.

Responsibility

  • Define the different states that a rocket can be in during flight.
  • Provide a clear and concise representation of the rocket's state.

Scope

  • Include all necessary information about the rocket's state.
  • Support different types of states, such as launch, flight, and landing.

Gotchas

  • Ensuring that the rocket's state is accurately represented.
  • Handling transitions between different states.

Test Suite Overview

The test suite includes unit tests for the core functionality of the package, including:

  • Defining the different states that a rocket can be in during flight.
  • Ensuring that the rocket's state is accurately represented.
  • Handling transitions between different states.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhysicsState

type PhysicsState struct {
	// data
	Entity              *ecs.BasicEntity
	Position            *types.Position
	Velocity            *types.Velocity
	Acceleration        *types.Acceleration
	AngularVelocity     *types.Vector3
	AngularAcceleration *types.Vector3
	Orientation         *types.Orientation
	Mass                *types.Mass
	Time                float64

	// Accumulators for forces and moments within a timestep
	AccumulatedForce  types.Vector3
	AccumulatedMoment types.Vector3

	// Current event detected this timestep
	CurrentEvent types.Event

	// components
	Motor     *components.Motor
	Bodytube  *components.Bodytube
	Nosecone  *components.Nosecone
	Finset    *components.TrapezoidFinset
	Parachute *components.Parachute
}

PhysicsState represents an entity with physics components

Jump to

Keyboard shortcuts

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