Interstellar Planet
Cosmic Voyager
Is it possible to write an atmosphere module in which the parameters vary over time? I'm trying to create one for Pluto so that the surface pressure changes with its seasons. The module loads correctly, but there is still a problem. When I run a scenario, the atmosphere originally has the correct pressure for that date. However, the surface pressure never updates over the course of the scenario.
Here's a basic outline of the code:
Is there any way to get the date to constantly update while running a scenario?
Here's a basic outline of the code:
Code:
bool MyPlanet::clbkAtmParam(double alt, ATMPARAM *prm)
{
if (alt < 1000000)
{
double mjd = oapiGetSimMJD();
//...calculate surface pressure from date
//...calculate pressure from altitude and surface pressure
//...calculate temperature and density from altitude
return true;
}
else return false;
}
Is there any way to get the date to constantly update while running a scenario?