Attach

Top  Previous  Next

Description


The Attach command associates one object with another. This allows the attached objects to reference each other during analysis.

 

 

Syntax


Propulsion

 

See the Maneuvering Guide for more information.

 

Thruster myThruster;
InterpolatedTank myInterpolatedTank;
ElectricalTank myElectricalTank;
SphericalTank mySphericalTank;
 
Attach myThruster to mySpacecraft;
 
Attach myInterpolatedTank to mySpacecraft;
Attach myElectricalTank to mySpacecraft;
Attach mySphericalTank to mySpacecraft;
 
Attach myInterpolatedTank to myThruster;
Attach myElectricalTank to myThruster;
Attach mySphericalTank to myThruster as 2;

 

Where 2 is the number of the Valve connecting mySphericalTank and myThruster

 

Communications

 

See Coverage and Contact Analysis Guide for more information.

 

Attach mySensor to mySpacecraft;
Attach myProximityZone to mySpacecraft;

 

Orbit Determination

 

See Orbit Determination Guide for more information.

 

Attach myGroundAntenna to myGroundStation;
Attach myGPSPivotTransceiver to mySpacecraft;
Attach myPropModel to myKalmanFilter;

 

 

Details


Each object must be created before it can be attached.

Only one Antenna can be attached to each GroundStation.

Both the Tank and Thruster objects must be attached to a Spacecraft object before the Tank object can be attached to the Thruster object.

Tanks and Thrusters may be attached using either the Attach command, or, a set of "Add" methods that include:

 

Thruster1.AddTankToValve(0,InterpolatedTank1);

Thruster1.AddTankToValve(1,SphericalTank1);

 

Spacecraft1.AddTank("SphericalTank1","SphericalTank");

Spacecraft1.AddTank("InterpolatedTank1","InterpolatedTank");

Spacecraft1.AddThruster("Thruster1");

 

See the Spacecraft object, Thruster object, and the Valves page of the Maneuvering Guide for more information.

 

 

See Also


Coverage and Contact Analysis Guide

Maneuvering Guide

Orbit Determination Guide