ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    save critical data

    Ask your questions right here!
    4
    6
    307
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pooyan
      last edited by

      Hello all,

      I want to have the critical data (voxl-inspect-cpu, voxl-inspect-battery) of a flight saved during the flight time to use them later offline. I would appreciate it if you could tell me how I can do that by providing some details for help.

      Best,

      ModeratorM 1 Reply Last reply Reply Quote 0
      • ModeratorM
        Moderator ModalAI Team @Pooyan
        last edited by

        @Pooyan You could use voxl-logger with the -w option to save raw data. You would then need to post process though.

        It might make things easier to ```
        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-logger/-/blob/master/tools/voxl-logger.cpp?ref_type=heads

        
        We're happy to incorporate merge requests if you go that route!
        Alex KushleyevA 1 Reply Last reply Reply Quote 0
        • Alex KushleyevA
          Alex Kushleyev ModalAI Team @Moderator
          last edited by Alex Kushleyev

          The source code for voxl-inspect-cpu is here (the data is coming from voxl-cpu-monitor and displayed by voxl-inspect-cpu.

          and for voxl-inspect-battery is here here . The battery data is coming as a mavlink message via MPA and displayed using voxl-inspect-battery.

          So you can use voxl-logger, as suggested above to log the needed data and parse it offline -- you can use the source code of the inspect tools for guidance.

          P 1 Reply Last reply Reply Quote 0
          • P
            Pooyan @Alex Kushleyev
            last edited by

            @Alex-Kushleyev @Moderator Great thank you. now I want to have an application to analyze data online and based on that turn on or off another application. I already have tried the voxl-cross-template but now I want to write my own application for that. Can you please provide me with some tips for that?

            And to check the syntax errors in the application while writing and implementing it, may you please give me some hints?

            I appreciate that so much.

            Eric KatzfeyE 1 Reply Last reply Reply Quote 0
            • Eric KatzfeyE
              Eric Katzfey ModalAI Team @Pooyan
              last edited by

              @Pooyan Our applications share data using Modal Pipe Architecture (MPA). The foundation for that is the libmodal-pipe library. All of our code is open so you can look at examples of applications that publish data via MPA and others that consume data. This can be the basis for your custom application.

              P 1 Reply Last reply Reply Quote 0
              • P
                Pooyan @Eric Katzfey
                last edited by

                @Eric-Katzfey Thank you so much for the information.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors