• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 2 Mar 2024, 00:46

      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,

      M 1 Reply Last reply 2 Mar 2024, 18:46 Reply Quote 0
      • M
        Moderator ModalAI Team @Pooyan
        last edited by 2 Mar 2024, 18:46

        @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!
        A 1 Reply Last reply 4 Mar 2024, 15:56 Reply Quote 0
        • A
          Alex Kushleyev ModalAI Team @Moderator
          last edited by Alex Kushleyev 4 Mar 2024, 15:56 4 Mar 2024, 15:56

          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 18 Mar 2024, 15:28 Reply Quote 0
          • P
            Pooyan @Alex Kushleyev
            last edited by 18 Mar 2024, 15:28

            @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.

            E 1 Reply Last reply 18 Mar 2024, 15:35 Reply Quote 0
            • E
              Eric Katzfey ModalAI Team @Pooyan
              last edited by 18 Mar 2024, 15:35

              @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 21 Mar 2024, 16:24 Reply Quote 0
              • P
                Pooyan @Eric Katzfey
                last edited by 21 Mar 2024, 16:24

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

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