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

    Drone not moving in Offboard Mode

    GPS-denied Navigation (VIO)
    3
    6
    269
    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.
    • Jetson NanoJ
      Jetson Nano
      last edited by Jetson Nano

      I'm using a VOXL2 compute along with Flight Core V2 as external flight controller for development. I'm using the Starling 1 Image sensors.

      Flight Controller: Flight Core V2
      PX4 version: v1.15.1 (Stable)
      Companion Computer: VOXL 2

      The VOXL2 communicates with FC as mentioned in this documentation.

      The drone holds based on PX4 EV parameter using tracking camera fusing with a Optical Flow with Rangefinder onboard. I'm able to see the odometry message being shown in mavlink console on QGC. Also, I try streaming the message

      mavlink stream -r 30 -s ODOMETRY -d /dev/ttyS1
      

      In voxl-vision-hub I have set the mode to figure_eight. But once, I switch to offboard mode from position mode the drone stays at the same place and does not perform figure 8.

      Once I ssh into VOXL2, and check for mavlink status, I get the following output without #331 ID ODOMETRY message

      Screenshot from 2024-10-27 15-05-32.png

      For VIO inputs, I'm relying on Tracking camera from QVIO server. I'm not sure if VIO estimates from VOXL2 are being sent to FC. How can I troubleshoot to check for the ODOMETRY message to be passed on?

      I'm working on this as a priority, so any suggestion will be quickly tested. I hope to hear from you.

      1 Reply Last reply Reply Quote 0
      • Zachary Lowell 0Z
        Zachary Lowell 0 ModalAI Team
        last edited by

        @Jetson-Nano said in Drone not moving in Offboard Mode:

        mavlink stream -r 30 -s ODOMETRY -d /dev/ttyS1

        @Jetson-Nano why are you running a mavlink stream for ODOMETRY? Voxl-vision hub automatically handles the streaming of odometry into the flight core.

        If you are able to fly it in position mode without a GPS and QVIO is enabled and Odometry is showing in the mavlink console, then the packets are most likely making it to the Flight Core - I would recommend though removing the Optical flow and Rangefinder to ensure that you are indeed getting odometry from qvio and not from the optical flow and rangefinder.

        To confirm, can oyu please paste the paraemeters for voxl-vision-hub.conf as well as your parameters from QGC on efk2_ev*?

        Thanks,
        Zach

        Jetson NanoJ 1 Reply Last reply Reply Quote 0
        • Jetson NanoJ
          Jetson Nano @Zachary Lowell 0
          last edited by

          @Zachary-Lowell-0 Thanks for reverting back. Earlier I was using a different flight controller with the similar system setup. When I had faced this issue, I was mentioned to run the seperate odometry stream command.

          Sharing that post for your ref. link.

          Parameters I have set for voxl-vision-hub

                  "config_file_version":  1,
                  "en_localhost_mavlink_udp":     true,
                  "localhost_udp_port_number":    14551,
                  "en_vio":       true,
                  "vio_pipe":     "qvio",
                  "secondary_vio_pipe":   "ov",
                  "en_reset_vio_if_initialized_inverted": true,
                  "vio_warmup_s": 3,
                  "send_odom_while_failed":       true,
                  "horizon_cal_tolerance":        0.5,
                  "offboard_mode":        "figure_eight",
                  "follow_tag_id":        0,
                  "figure_eight_move_home":       true,
                  "robot_radius": 0.300000011920929,
                  "collision_sampling_dt":        0.1,
                  "max_lookahead_distance":       1,
                  "backtrack_seconds":    5,
                  "wps_move_home":        true,
                  "wps_stride":   0,
                  "wps_timeout":  0,
                  "wps_damp":     1,
                  "en_tag_fixed_frame":   false,
                  "fixed_frame_filter_len":       5,
                  "en_transform_mavlink_pos_setpoints_from_fixed_frame":  true,
                  "en_voa":       true,
                  "voa_upper_bound_m":    -0.15000000596046448,
                  "voa_lower_bound_m":    0.15000000596046448,
                  "voa_voa_memory_s":     1,
                  "voa_max_pc_per_fusion":        100,
                  "voa_pie_max_dist_m":   20,
                  "voa_pie_min_dist_m":   0.25,
                  "voa_pie_under_trim_m": 1,
                  "voa_pie_threshold":    3,
                  "voa_send_rate_hz":     20,
                  "voa_pie_slices":       36,
                  "voa_pie_bin_depth_m":  0.15000000596046448,
                  "voa_inputs":   [{
          
          

          The PX4 parameters in QGC for EKF2_EV_CTRL,

          Screenshot from 2024-10-29 22-32-56.png

          Jetson NanoJ 1 Reply Last reply Reply Quote 0
          • Jetson NanoJ
            Jetson Nano @Jetson Nano
            last edited by

            Hello @Eric-Katzfey @Zachary-Lowell-0 @James-Strawson @tom

            Could you look into once?

            Jetson NanoJ 1 Reply Last reply Reply Quote 0
            • Jetson NanoJ
              Jetson Nano @Jetson Nano
              last edited by Jetson Nano

              @Zachary-Lowell-0 @Alex-Kushleyev @Eric-Katzfey @tom Could you look into this please?

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

                @Jetson-Nano As suggested before, can you disable the rangefinder and optic flow and see if things work with VIO alone?

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