Represents a recovery system for a rocket stage.
More...
#include <RecoverySystem.h>
|
| RecoverySystem (const std::string &name, DeploymentType deploymentType, double triggerValue, double dragCoefficient, double referenceArea) |
| Constructs a new RecoverySystem.
|
|
| ~RecoverySystem ()=default |
| Default destructor.
|
|
bool | checkDeploymentCondition (double altitude, double velocity, double time, bool atApogee) const |
| Checks if deployment conditions are met based on flight state.
|
|
void | deploy () |
| Marks the recovery system as deployed.
|
|
bool | isDeployed () const |
| Returns whether the recovery system has been deployed.
|
|
double | getDragCoefficient () const |
| Gets the drag coefficient.
|
|
double | getReferenceArea () const |
| Gets the reference area.
|
|
const std::string & | getName () const |
| Gets the name of the recovery system.
|
|
Represents a recovery system for a rocket stage.
The RecoverySystem class models parachutes, drogues, or streamers and handles deployment logic based on flight conditions.
◆ DeploymentType
Deployment trigger types.
Enumerator |
---|
Apogee | |
Altitude | |
Timer | |
◆ RecoverySystem()
RecoverySystem::RecoverySystem |
( |
const std::string & | name, |
|
|
DeploymentType | deploymentType, |
|
|
double | triggerValue, |
|
|
double | dragCoefficient, |
|
|
double | referenceArea ) |
Constructs a new RecoverySystem.
- Parameters
-
name | Name of the recovery device. |
deploymentType | Type of deployment trigger (apogee, altitude, timer). |
triggerValue | Value associated with deployment trigger (e.g., altitude in meters or time in seconds). |
dragCoefficient | Drag coefficient of the recovery device. |
referenceArea | Reference area (canopy projected area) in square meters. |
◆ ~RecoverySystem()
RecoverySystem::~RecoverySystem |
( |
| ) |
|
|
default |
◆ checkDeploymentCondition()
bool RecoverySystem::checkDeploymentCondition |
( |
double | altitude, |
|
|
double | velocity, |
|
|
double | time, |
|
|
bool | atApogee ) const |
Checks if deployment conditions are met based on flight state.
- Parameters
-
altitude | Current altitude above ground (meters). |
velocity | Current vertical velocity (m/s). |
time | Elapsed flight time (seconds). |
atApogee | Flag indicating if rocket has reached apogee. |
- Returns
- True if deployment should occur.
◆ deploy()
void RecoverySystem::deploy |
( |
| ) |
|
Marks the recovery system as deployed.
◆ getDragCoefficient()
double RecoverySystem::getDragCoefficient |
( |
| ) |
const |
Gets the drag coefficient.
- Returns
- Drag coefficient (dimensionless).
◆ getName()
const std::string & RecoverySystem::getName |
( |
| ) |
const |
Gets the name of the recovery system.
- Returns
- Recovery system name as a constant reference.
◆ getReferenceArea()
double RecoverySystem::getReferenceArea |
( |
| ) |
const |
Gets the reference area.
- Returns
- Reference area (square meters).
◆ isDeployed()
bool RecoverySystem::isDeployed |
( |
| ) |
const |
Returns whether the recovery system has been deployed.
- Returns
- True if deployed.
◆ deployed_
bool RecoverySystem::deployed_ |
|
private |
Whether the recovery system has been deployed.
◆ deploymentType_
◆ dragCoefficient_
double RecoverySystem::dragCoefficient_ |
|
private |
Drag coefficient after deployment.
◆ name_
std::string RecoverySystem::name_ |
|
private |
Name of the recovery system.
◆ referenceArea_
double RecoverySystem::referenceArea_ |
|
private |
◆ triggerValue_
double RecoverySystem::triggerValue_ |
|
private |
Trigger value (meters for altitude, seconds for timer).
The documentation for this class was generated from the following files: