dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
80 stars 32 forks source link

CSV flight data logging #83

Closed KSAMissionCtrl closed 4 years ago

KSAMissionCtrl commented 4 years ago

As requested, making an issue for an option in the Setting window to enable the data that is displayed in the Flt Data window to be logged out to a CSV file every second (or user-defined). Nothing fancy needed beyond that

Thanks for the consideration of this request

dkavolis commented 4 years ago

You can try out FAR from logs branch. Only the logs directory and filenames are configurable at the moment https://github.com/dkavolis/Ferram-Aerospace-Research/blob/60ed0abc6e1cc9cc779d8831d73a25892a89f53c/GameData/FerramAerospaceResearch/FARConfig.cfg#L1-L19

Data logged: https://github.com/dkavolis/Ferram-Aerospace-Research/blob/60ed0abc6e1cc9cc779d8831d73a25892a89f53c/FerramAerospaceResearch/FARGUI/FARFlightGUI/FlightDataLogger.cs#L215-L242

KSAMissionCtrl commented 4 years ago

w00t! I will check it as soon as I have time to get a 1.8 install up and running

dkavolis commented 4 years ago

Just FYI, FARConfig should be modified through MM as @FARConfig[default]:FINAL{}

dkavolis commented 4 years ago

I've refactored the config parser to be much more easily extendable and have no dependency on KSP assemblies for when I split off some functionality to be shared with UI module. The logging config is now a CONFIG node in FARConfig with name = flightLog.

KSAMissionCtrl commented 4 years ago

okay my 1.8.1 is finally setup. What's the status on this? Still need to grab the logs branch? I didn't see anything in the change log that said it had been merged into the main release yet

dkavolis commented 4 years ago

I've reworked the implementation which is cleaner and better but currently it sits on a local branch, just a few more tweaks until it's ready.

KSAMissionCtrl commented 4 years ago

I have a mission to fly anytime this week starting today so if you'd like testing just push what you have and I will check it out!

dkavolis commented 4 years ago

Try dev branch and FARConfig.cfg for options, works with MM. Note that there's an additional DLL now for adding and testing new features directly in Unity editor.

KSAMissionCtrl commented 4 years ago

nice, I was planning to fly tomorrow. Will let you know how it goes, thanks!

KSAMissionCtrl commented 4 years ago

great stuff, no major issues, ALL THE DATA YAY

Would it be difficult to change the log interval to ms? If not, no worries

dkavolis commented 4 years ago

As in ms in KSP game time? Wouldn't be too difficult, also it makes more sense than couting frames.

dkavolis commented 4 years ago

Done in c74e78e