Tutorials 4.1 Vehicle : Différence entre versions
De Wiki
(→Using the Vehicle class) |
|||
(Une révision intermédiaire par le même utilisateur non affichée) | |||
Ligne 15 : | Ligne 15 : | ||
== Using the Vehicle class == | == Using the Vehicle class == | ||
− | Since V3.4 version, it is now possible to use the [{{JavaDoc4.1}}/fr/cnes/sirius/patrius/assembly/Vehicle.html Vehicle] class which is simpler to use for basic spacecraft definition. the following | + | Since V3.4 version, it is now possible to use the [{{JavaDoc4.1}}/fr/cnes/sirius/patrius/assembly/Vehicle.html Vehicle] class which is simpler to use for basic spacecraft definition. the following examples show how to define: |
− | * the dry mass | + | * the dry mass and the shape |
− | + | ||
− | + | ||
* the propulsive properties | * the propulsive properties | ||
+ | * a full configuration | ||
− | '''Code example:''' [[UsingVehicleClass_4.1|Using the Vehicle class]] | + | '''Code example:''' |
+ | |||
+ | * [[UsingVehicleClass_4.1|Using the Vehicle class]] | ||
+ | * [[UsingVehicleClassWithPropulsiveAndTankProperty_4.1|Using the Vehicle class with Propulsive and Tank properties]] | ||
+ | * [[UsingVehicleClassComplete_4.1|Using the Vehicle class with a full configuration]] | ||
[[Category:Tutorials 4.1]] | [[Category:Tutorials 4.1]] |
Version actuelle en date du 21 décembre 2018 à 10:11
What is an Assembly ?
As explained more in details in the user manual, the Assembly is a mean to build a vehicle. The main principles are the following ones:
- An Assembly is described by its sub parts (and can be made of only one).
- Each of these parts is defined by a name, a frame to know its position and orientation at any time, and a list of properties.
- The first created part is the "main part". Its associated frame defines the "main frame" of the vehicle.
The Assembly's creation is made through a "builder" object as in the example below.
Code examples:
Using the Vehicle class
Since V3.4 version, it is now possible to use the Vehicle class which is simpler to use for basic spacecraft definition. the following examples show how to define:
- the dry mass and the shape
- the propulsive properties
- a full configuration
Code example: