Issues.00247 - lordmundi/wikidoctest GitHub Wiki

00247: variable names aliases for simdata

« 00246 | Issues | 00248 »

Summary: variable names aliases for simdata

Created: 2010–05–25 09:27

Status: Submitted

Category: Request

From: frankie

Version: 2.1

Released_In:

Description:

many sims have different variable names for the same exact thing. sometimes, it is only the S_define object name that is different, and other times it is deeper.

this is a request for some sort of method so that api files can be made to work easily for a sim whose variable names have changed. for example, 2 different versions of the same sim that have slightly different variable names could use the same api file and just switch between trk files.


Comments

frankie May 25, 2010, at 09:38 AM: I can think of a couple of way of doing this. One might be to still require changes to the api file, but make them easy. For example letting #defines be used:

#define CM_BASE "cev_cm_veh.body"
...
in vec3 cm = $(CM_BASE).core.mass.properties.cm
in vec3 inertial_pos = $(CM_BASE).core.orbit.trans.inertial_pos
...

that would let users just edit names at the top of the file. The downside is that it would still require edits from sim to sim and version and version. Another alternative might be to list some aliases and use the first one found:

alias CEV_CM_INERTIAL_POS 
{
    {cev_cm_veh.body.core.mass.properties.cm}
    {command_module.orbital.body.core.mass.properties.cm}
    {orion.jeod.body.core.mass.properties.cm}
}
...
in vec3 cm = $(CEV_CM_INERTIAL_POS)

« 00246 | Issues | 00248 »

Associated Commits