DESCRIPTION

SR2LoggerPlus is a derivative of SR2Logger by WNP78.

The purpose of this mod is to send data from a Flight Program to an external receiver, or to a text file. This mod adds a part called "Orange Black Box Plus" in the Gizmo section. Once connected to your craft, you can add a Flight Program to the "Orange Black Box Plus." Any variables in that Flight Program starting with log_ will automatically be sent to the UDP receiver, and/or the specified log file. Also, if enabled, any log messages your Flight Program generates will be sent to the receiver and log file.

When using the log file, if you specify a relative path (not starting with a / on mac, or a C:\ on windows), the file will be saved to the location where SimpleRockets2 stores UserData, but you can also specify an absolute path. The directory you specify must already exist. The file name you specify will have the craft id added to it for uniqueness. If the file already exists data will be appended to it. If you prefer to use the UDP service, see the receiver.py script in the GitHub repository.

Note: the "Orange Black Box Plus" part starts out deactivated. It will not begin recording data until it is activated.

This "Orange Black Box Plus" has a few additional capabilities compared to the original "Orange Black Box":

  • There is now a part property setting for sampling frequency instead of using a special variable.
  • There is now a part property setting to enable logging to a file.
  • There is now a part property setting to include all log messages.
  • Variable sampling now works in time warp mode (with a scaled frequency).
  • A timestamp is now included with each sample.
  • The receiver script is now python 2.7 and 3 compatible, and outputs valid yaml documents.

Note: The default UDP port has changed to 2837 to avoid confusion.

GENERAL INFO

  • Mod Version: 0.2-beta
  • Required SR2 Version: 0.9.30x.x
  • Published: 5/6/2020
  • Downloads: 409

DOWNLOADS

TAGS


9 Comments

  • Log in to leave a comment
  • Profile image
    Mod sflanker

    @thenewme I'm sorry to hear it's not going well. Are you trying to learn coding for writing mods (i.e. C#/Unity) or Vizzy? Let me know if there are any specific challenges you are struggling with. You can also try asking questions on the SimpleRockets Chat Discord.

    2 months ago
  • Profile image

    im trying to learn coding not going well so far

    2 months ago
  • Profile image

    Hello. Would it be possible to have a video explaining how to set this up. I'm kinda really finding it difficult to do so. Thanks. Love your work by the way.

    6 months ago
  • Profile image
    7,207 crowxe

    lol..i got it now, i'll try it :)

    11 months ago
  • Profile image
    5,649 SelectAKey

    oh man this is probably the first real mod i would want for mobile.

    one year ago
  • Profile image
    7,207 crowxe

    I've asked for something like this months ago, this a great tool, not just for accidents analysis lol but if I can put to spreadsheet then I can use equations for analysing things like atmospheric drag, fuel consumption efficacy and much more that I won't know until I start using this tool. Thanks a lot flanker

    one year ago
  • Profile image
    Mod sflanker

    Good point @zeropol thank you for mentioning that!

    one year ago
  • Profile image
    294 zeropol

    I had trouble outputing the log, before figuring out the orange black box start deactivated ^_^
    Yes I'm dumb, but if your craft don't output the file, make sure you activate the orange box inflight.

    +1 one year ago
  • Profile image

    This is the coolest mod on the site

    +2 one year ago

25 Upvotes

Log in in to upvote this post.