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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Immediate crashes in HITL

Immediate crashes in HITL

Scheduled Pinned Locked Moved Unsolved General Questions
12 Posts 2 Posters 1.7k Views 1 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.
  • S Offline
    S Offline
    shawn_ricardo
    Contributor
    wrote on last edited by
    #3

    Here is a readout of the qshell dsp_hitl status command, just to validate the connection:

    hitl_heartbeat.png

    Eric KatzfeyE 1 Reply Last reply
    0
    • S shawn_ricardo

      Here is a readout of the qshell dsp_hitl status command, just to validate the connection:

      hitl_heartbeat.png

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #4

      @shawn_ricardo What command did you use to start HITL? Are you trying hold mode with GPS?

      S 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @shawn_ricardo What command did you use to start HITL? Are you trying hold mode with GPS?

        S Offline
        S Offline
        shawn_ricardo
        Contributor
        wrote on last edited by shawn_ricardo
        #5

        Hi @Eric-Katzfey,

        To start HITL, I used voxl-px4-hitl

        I ran the commands:

        1) qshell commander arm
        2) qshell commander takeoff
        

        which will eventually go into HOLD mode.

        As far as the sensor positioning input, I'm assuming that I'm using GPS because I followed this instruction to turn off qvio:

        NOTE: Ensure that voxl-qvio-server is disabled. If it is enabled, it will confuse gazebo due to gazebo sending fake sensor data to the qvio algorithm and causing poor flight dynamics in HITL. This can be done with the systemctl disable voxl-qvio-server command.
        

        Here are the services running via voxl-inspect-services. Note that voxl-px4 is not running because the sim is not running:

        voxl_services.png

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shawn_ricardo
          Contributor
          wrote on last edited by
          #6

          @Eric-Katzfey , would you happen to recommend next troubleshooting steps?

          Eric KatzfeyE 3 Replies Last reply
          0
          • S shawn_ricardo

            @Eric-Katzfey , would you happen to recommend next troubleshooting steps?

            Eric KatzfeyE Offline
            Eric KatzfeyE Offline
            Eric Katzfey
            ModalAI Team
            wrote on last edited by
            #7

            @shawn_ricardo I'll try it on my setup and see what happens.

            1 Reply Last reply
            0
            • S shawn_ricardo

              @Eric-Katzfey , would you happen to recommend next troubleshooting steps?

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #8

              @shawn_ricardo I just tried it and it worked fine. But I had all services disabled except for voxl-wait-for-fs, voxl-mavlink-server, and voxl-cpu-monitor. So maybe try that.

              1 Reply Last reply
              0
              • S shawn_ricardo

                @Eric-Katzfey , would you happen to recommend next troubleshooting steps?

                Eric KatzfeyE Offline
                Eric KatzfeyE Offline
                Eric Katzfey
                ModalAI Team
                wrote on last edited by
                #9

                @shawn_ricardo Can you capture the log of startup messages for voxl-px4-hitl so I can look for any error messages, or incorrect settings?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shawn_ricardo
                  Contributor
                  wrote on last edited by shawn_ricardo
                  #10

                  Hi @Eric-Katzfey ,

                  I've tried those settings and the drone is able to stay hovering much long than expected. the positioning appears to be better, as well.

                  What service(s) might be getting in the way of HITL performance?

                  Also, I noticed during flight the drone vibrates significantly in HITL as soon as I publish offboard commands while in HOLD mode according to PX4's offboard guidelines. As soon as I stop publishing to /fmu/in/trajectory_setpoint, the vibrations stop. It is as if the drone is toggling between offboard and hold modes.

                  I have "offboard_mode" set to "off" in /etc/modalai/voxl-vision-hub.conf. I am running my own ros2 offboard node. I've enabled voxl-cpu-monitor, voxl-microdds-agent, voxl-modem, and voxl-wait-for-fs. I am running the deb package of voxl_mpa_to_ros2 . The command I am running is ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node

                  I've tested the ability to publish offboard commands while in position hold mode in a completely separate px4 sim environment (just regular PX4 sim) and verified that drone position does not "vibrate" while offboard commands are being publishing and hold mode is the active mode.

                  What could be the cause of this behavior issue?

                  Eric KatzfeyE 1 Reply Last reply
                  0
                  • S shawn_ricardo

                    Hi @Eric-Katzfey ,

                    I've tried those settings and the drone is able to stay hovering much long than expected. the positioning appears to be better, as well.

                    What service(s) might be getting in the way of HITL performance?

                    Also, I noticed during flight the drone vibrates significantly in HITL as soon as I publish offboard commands while in HOLD mode according to PX4's offboard guidelines. As soon as I stop publishing to /fmu/in/trajectory_setpoint, the vibrations stop. It is as if the drone is toggling between offboard and hold modes.

                    I have "offboard_mode" set to "off" in /etc/modalai/voxl-vision-hub.conf. I am running my own ros2 offboard node. I've enabled voxl-cpu-monitor, voxl-microdds-agent, voxl-modem, and voxl-wait-for-fs. I am running the deb package of voxl_mpa_to_ros2 . The command I am running is ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node

                    I've tested the ability to publish offboard commands while in position hold mode in a completely separate px4 sim environment (just regular PX4 sim) and verified that drone position does not "vibrate" while offboard commands are being publishing and hold mode is the active mode.

                    What could be the cause of this behavior issue?

                    Eric KatzfeyE Offline
                    Eric KatzfeyE Offline
                    Eric Katzfey
                    ModalAI Team
                    wrote on last edited by
                    #11

                    @shawn_ricardo To figure out which service could be causing the issue just try starting each one and see which one causes the issue.

                    S 1 Reply Last reply
                    0
                    • Eric KatzfeyE Eric Katzfey

                      @shawn_ricardo To figure out which service could be causing the issue just try starting each one and see which one causes the issue.

                      S Offline
                      S Offline
                      shawn_ricardo
                      Contributor
                      wrote on last edited by shawn_ricardo
                      #12

                      @Eric-Katzfey

                      Okay, I'll keep this in mind as I develop toward offboard control. If I find any more information, I'll follow up here.

                      Just a side note: I don't see this behavior in real-world flight during manual or position, seems to be isolated to HITL at this point in time.

                      Thanks!

                      1 Reply Last reply
                      0

                      Reading along? Create a free ModalAI Forum account to join in.

                      With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

                      Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

                      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

                      • Don't have an account? Register

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