Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Neither of GPS and VIO data are available

Neither of GPS and VIO data are available

Scheduled Pinned Locked Moved Ask your questions right here!
7 Posts 3 Posters 1.3k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    mbahrami
    Contributor
    wrote on last edited by
    #1

    Hello,
    I have trouble with unavailability of GPS and VIO data in a custom-built drone (VOXL flight deck 1, VOXL 4-in-1 ESC V2, and M8N GPS module. I'm getting no GPS and invalid local position, regardless of enabling/disabling GPS and magnetometer as it has been discussed here and I here.

    I'm using the flight controller firmware v 1.11.3 as it was by default on the VOXL flight deck, and PX 4 parameters, are M500_v1_param_rev_B.params with modification for VOXL ESC. I've uploaded the params I used here as well.

    I was wondering if a newer firmware (v 1.12 or later) can address this issue and if the GPS module is not compatible. I also have two odometery processes in the MAVLink Inspector, where x and y pos. are 0 constantly in one odometery and the pose_covarinance is nan in the other one (photos are attached).

    Thanks

    Screenshot from 2022-12-20 19-40-26.png
    Screenshot from 2022-12-20 19-41-05.png

     dt(ms) |fix type|Sats|Latitude(deg)|Longitude(deg)| Alt(m) |Vel(m/s)|HorErr(m)|AltErr(m)|
      198.9 | NO GPS |  0 |   0.0000000 |    0.0000000 |  -17.0 |   0.00 | 4294967.295 | 3863464.448 |^C
    received SIGINT Ctrl-C
    
    closing and exiting
    
    
    voxl:~$ voxl-inspect-qvio
    waiting for server
    
        T_imu_wrt_vio (m)   |Roll Pitch Yaw (deg)| state| error_code
        0.05    0.03    0.02|   0.2   -1.5    1.2| OKAY | 
    
    
    voxl:~$ cat /etc/modalai/voxl-vision-px4.conf
    /**
     * VOXL Vision PX4 Configuration File
     *
     */
    {
    	"qgc_ip":	"192.168.8.97",
    	"en_localhost_mavlink_udp":	true,
    	"en_secondary_qgc":	false,
    	"secondary_qgc_ip":	"192.168.1.214",
    	"qgc_udp_port_number":	14550,
    	"localhost_udp_port_number":	14551,
    	"udp_mtu":	512,
    	"en_vio":	true,
    	"en_voa":	true,
    	"en_send_vio_to_qgc":	true,
    	"en_send_voa_to_qgc":	false,
    	"en_set_clock_from_gps":	true,
    	"en_force_onboard_mav1_mode":	true,
    	"en_reset_px4_on_error":	true,
    	"qvio_auto_reset_quality":	0.00050000002374872565,
    	"horizon_cal_tolerance":	0.300000011920929,
    	"voa_upper_bound_m":	1.25,
    	"voa_lower_bound_m":	1.25,
    	"en_adsb":	false,
    	"adsb_uart_bus":	7,
    	"adsb_uart_baudrate":	57600,
    	"px4_uart_bus":	5,
    	"px4_uart_baudrate":	921600,
    	"offboard_mode":	"off",
    	"follow_tag_id":	0,
    	"en_tag_fixed_frame":	false,
    	"fixed_frame_filter_len":	5,
    	"en_transform_mavlink_pos_setpoints_from_fixed_frame":	false
    }
    
    

    voxl-inspect-pose vvpx4_body_wrt_local

    timestamp(ms)|     Position (m)     | Roll Pitch Yaw (deg) |    Velocity (m/s)    | angular rate (deg/s) |
         1303502 |   0.07  -0.02  -0.08 |   -0.3   -0.7    5.0 |  -0.00   0.00  -0.00 |  -0.00  -0.08  -0.16 |^C
    
    
    voxl:~$ voxl-inspect-services
     Service Name        |  Enabled  |   Running   |  CPU Usage
    --------------------------------------------------------------
     docker-autorun      | Disabled  | Not Running | Not Running
     docker-daemon       |  Enabled  |   Running   |     1.0
     modallink-relink    | Disabled  | Not Running | Not Running
     voxl-camera-server  |  Enabled  |   Running   |     8.1
     voxl-cpu-monitor    |  Enabled  |   Running   |     0.0
     voxl-dfs-server     |  Enabled  |   Running   |     2.0
     voxl-imu-server     |  Enabled  |   Running   |     0.0
     voxl-modem          | Disabled  | Not Running | Not Running
     voxl-portal         |  Enabled  |   Running   |     2.0
     voxl-qvio-server    |  Enabled  |   Running   |     4.5
     voxl-streamer       | Disabled  | Not Running | Not Running
     voxl-tag-detector   |  Enabled  |   Running   |     0.0
     voxl-tflite-server  | Disabled  | Not Running | Not Running
     voxl-time-sync      | Disabled  | Not Running | Not Running
     voxl-vision-px4     |  Enabled  |   Running   |     4.0
     voxl-wait-for-fs    |  Enabled  |  Completed  |  Completed 
    

    the output of journalctl -u voxl-camera-server

    -- Logs begin at Thu 1970-01-01 00:00:04 UTC, end at Wed 2022-12-21 00:38:28 UTC. --
    Jan 01 00:00:07 apq8096 systemd[1]: Started voxl-camera-server.
    Jan 01 00:00:11 apq8096 bash[2029]: ------ voxl-camera-server: Camera server is now running
    ~
    ~
    
    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Let's focus on one thing at a time. GPS should just work, so if it is not there is likely a configuration or hardware issue. Does QGC see the GPS?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbahrami
        Contributor
        wrote on last edited by
        #3

        thanks for the reply.
        so I'm getting NO GPS Lock for Vehicle in the Mission planner of QGC and GPS_RAW_INT (lat, lon, and ...) are not changing. I tried with another M8N GPS module and got the same results.

        95883a7e-b62a-4375-8452-d66c6aefed98-image.png

        1 Reply Last reply
        0
        • Chad SweetC Offline
          Chad SweetC Offline
          Chad Sweet
          ModalAI Team
          wrote on last edited by
          #4

          It seems likely a wiring issue. Flight Core is a mainlined PX4 flight controller, like a Pixhawk. If it's not receiving GPS data, you have either misconfigured PX4 or there is a problem with your wiring.

          You can see on the datasheet how to connect GPS to J10 on Flight Core https://docs.modalai.com/flight-core-datasheets-connectors/

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbahrami
            Contributor
            wrote on last edited by mbahrami
            #5

            For wiring I'm using J1012 on the flight deck which is J10 on Flight core if I'm not mistaken. I also reset the PX4 parameters to the default but still no GPS. I was wondering if there are some specific PX parameter/configuration I can check out.

            Screenshot from 2022-12-21 17-31-22.png

            1 Reply Last reply
            0
            • modaltbM Offline
              modaltbM Offline
              modaltb
              ModalAI Team
              wrote on last edited by
              #6

              @mbahrami ,

              I almost never get a lock in the office and have to move outside or close to a window that has some view of the sky. It appears to me that the GPS is talking to PX4, but just not getting enough sats.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mbahrami
                Contributor
                wrote on last edited by mbahrami
                #7

                Thanks, @modaltb! yes, that seems to be the cause; we received two sentinel drones yesterday and for the same reason they have not had GPS signal available either. But that's ok, we don't need GPS for indoor flight tests.

                could you please comment on the odometery problem which I mentioned in the first post? I have two odemetry components with id=1 and id=197 in MAVLink Inspector in QGC. The odometry component with id=1 works fine and voxl-inpsect-imu outputs correct values in the VIO-enabled, GPS-disabled setting. But I get invalid local position for ekf2 status in MAVlink console and "reject position mode" message when try to fly the drone with RC in position mode.

                do I need to reset the PX4 firmware?

                thanks

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups