Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Downloading location in MapBox
QtWS25 Last Chance

Downloading location in MapBox

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 495 Views
  • 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.
  • MonoFoxM Offline
    MonoFoxM Offline
    MonoFox
    wrote on last edited by
    #1

    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. RoginaP 1 Reply Last reply
    0
    • MonoFoxM MonoFox

      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. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @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

      MonoFoxM 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

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

        MonoFoxM Offline
        MonoFoxM Offline
        MonoFox
        wrote on last edited by
        #3

        @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. RoginaP 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          1
          • MonoFoxM MonoFox

            @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. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @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
            1
            • MonoFoxM Offline
              MonoFoxM Offline
              MonoFox
              wrote on last edited by
              #6

              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
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved