Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Downloading location in MapBox

    QML and Qt Quick
    3
    6
    226
    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.
    • MonoFox
      MonoFox last edited by

      Hello,
      Has anyone discussed the topic of positioning in mapbox? I have a GPS module that sends the location to the COM port. However, my project already supports CAN network interface and it complicates my work with navigation a bit. Is there any library or api that will allow me to easily transport data to mapbox?

      Pablo J. Rogina 1 Reply Last reply Reply Quote 0
      • Pablo J. Rogina
        Pablo J. Rogina @MonoFox last edited by

        @monofox said in Downloading location in MapBox:

        sends the location to the COM port. However, my project already supports CAN network interface and it complicates my work with navigation a bit

        Could you elaborate why is that complicated?
        CAN and serial ports should be readable on their own. Are you having any clash?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        MonoFox 1 Reply Last reply Reply Quote 0
        • MonoFox
          MonoFox @Pablo J. Rogina last edited by

          @pablo-j-rogina
          My problem is more about building my code, in the created object for CAN there is an infinite loop in which data is processed, to add COM support I would have to rebuild it somehow, but if there is no other way I will do it that way. I had another equally easy idea to make another application that receives the location and sends data to the CAN interface, from there I would have a straight way to receive the data.

          Pablo J. Rogina 1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            Why an infinite loop ?
            Are you aware of the QtSerialBus module ?

            As for the COM port, there's the QtSerialPort module.

            You can make use of the asynchronous nature of both to simplify your code.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • Pablo J. Rogina
              Pablo J. Rogina @MonoFox last edited by

              @monofox I see, as @SGaist suggested with the asynchronous approach, you're problem is the "evil" loop.

              Have you check the CAN Bus example? You'll see how the signals & slots feature from Qt is in used in such example. The same way you can approach reading the serial port

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply Reply Quote 1
              • MonoFox
                MonoFox last edited by

                I rebuilt the project according to the instructions. I will be testing it tomorrow, but I think it looks good. Great work gentlemen, thank you very much for the useful information! greetings

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post