Make a variable as a global variable within a function

@jonniedie , as you’re a very nice developer for simulation in Julia, I leave you a message:

I implemented the logging mechanism based on SavingCallback in FlightSims.jl (See #77 or current master branch).
It may have potential error though.

Note that this package may be bit untidy 'cause it’s dedicated for my team until now :slight_smile: .

EDIT: nested logging can be found in test/nested_envs.jl.

1 Like

Thanks @iHany. I check it out. Doing it that way makes a lot of sense. The only thing it would be missing is the ability to interpolate between time steps after the fact. But that’s not necessarily a deal breaker. Maybe an option to choose between the two styles would be nice too.

1 Like