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

ModalAI Forum

  1. ModalAI Support Forum
  2. Flight Core and Legacy VOXL
  3. Drone is getting crashed in HITL ( MAVSDK example: offboard_position_ned2.py )

Drone is getting crashed in HITL ( MAVSDK example: offboard_position_ned2.py )

Scheduled Pinned Locked Moved Unsolved Flight Core and Legacy VOXL
voxl-cam
3 Posts 2 Posters 793 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.
  • A Offline
    A Offline
    Anubhav
    Regular
    wrote on last edited by
    #1

    Hi,

    I have been implementing MAVSDK example in HITL. Below I have linked their short videos.
    My question is that why it's loosing it's local position in 2nd example and getting crashed and showing critical navigation failure message whilst odometry or qvio is working properly? I have also attached mavlink messages and code execution below.

    1. Video of hitl with MAVSDK example takeoff_and_land2.py
    2. Video of hitl with MAVSDK example offboard_position_ned2.py.

    Mavlink messages and code execution of MAVSDK example takeoff_and_land2.py

    root@apq8096:/home# python3 takeoff_and_land2.py udp://:14551
    Waiting for mavsdk_server to be ready...
    Connected to mavsdk_server!
    Waiting for drone to connect...
    Drone discovered with UUID: 5428614370902488403
    Waiting for drone to have a global position estimate...
    Global position estimate ok
    -- Arming
    [08:07:47|Debug] MAVLink: info: Armed by external command (system_impl.cpp:250)
    -- Taking off
    [08:07:47|Debug] MAVLink: critical: Failsafe enabled: No manual control stick input (system_impl.cpp:250)
    [08:07:47|Debug] MAVLink: info: Failsafe mode activated (system_impl.cpp:250)
    [08:07:47|Debug] MAVLink: info: [logger] /fs/microsd/log/2022-09-28/08_12_29.ulg (system_impl.cpp:250)
    [08:07:47|Debug] MAVLink: info: Failsafe mode deactivated (system_impl.cpp:250)
    [08:07:47|Debug] MAVLink: info: Using minimum takeoff altitude: 2.50 m (system_impl.cpp:250)
    [08:07:48|Debug] MAVLink: info: Takeoff detected (system_impl.cpp:250)
    -- Landing
    [08:07:52|Debug] MAVLink: info: Landing at current position (system_impl.cpp:250)
    

    Mavlink messages and code execution of MAVSDK example offboard_position_ned2.py.

    python3 offboard_position_ned2.py udp://:14551
    Using mavsdk server port 50051
    Connecting to vehicle using port 14550
    Waiting for mavsdk_server to be ready...
    Connected to mavsdk_server!
    -- Arming
    [08:11:45|Debug] MAVLink: info: Armed by external command (system_impl.cpp:250)
    -- Setting initial setpoint
    -- Starting offboard
    [08:11:45|Debug] MAVLink: critical: Failsafe enabled: No manual control stick input (system_impl.cpp:250)
    -- Go 0m North, 0m East, -1m Down within local coordinate system
    [08:11:45|Debug] MAVLink: info: Failsafe mode activated (system_impl.cpp:250)
    [08:11:45|Debug] MAVLink: info: [logger] /fs/microsd/log/2022-09-28/08_16_54.ulg (system_impl.cpp:250)
    [08:11:45|Debug] MAVLink: info: Failsafe mode deactivated (system_impl.cpp:250)
    [08:11:47|Debug] MAVLink: info: Takeoff detected (system_impl.cpp:250)
    -- Go 1m North, 0m East, -1m Down within local coordinate system, turn to face East
    -- Go 1m North, 1m East, -1m Down within local coordinate system
    [08:11:57|Debug] MAVLink: emergency: Critical navigation failure! Check sensor calibrat (system_impl.cpp:250)
    [08:11:57|Warn ] Unknown StatusText severity (telemetry_impl.cpp:891)
    [08:11:57|Debug] MAVLink: emergency: ion (system_impl.cpp:250)
    [08:11:57|Warn ] Unknown StatusText severity (telemetry_impl.cpp:891)
    -- Go 0m North, 1m East, -1m Down within local coordinate system, turn to face South
    [08:12:01|Warn ] command temporarily rejected (21). (mavlink_commands.cpp:178)
    [08:12:01|Debug] MAVLink: critical: Landing denied! Please land manually (system_impl.cpp:250)
    Failed to land
    -- Disarming
    Disarming failed
    root@apq8096:/home# [08:12:48|Debug] MAVLink: emergency: BARO #0 failed:  TIMEOUT! (system_impl.cpp:250)
    [08:12:48|Warn ] Unknown StatusText severity (telemetry_impl.cpp:891)
    

    Thanks!

    1 Reply Last reply
    0
    • Zachary LowellZ Offline
      Zachary LowellZ Offline
      Zachary Lowell
      ModalAI Team
      wrote on last edited by
      #2

      @Anubhav are you still flying gazebo with the iris_vision instead of just the iris_hitl in the gazebo world?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anubhav
        Regular
        wrote on last edited by
        #3

        @Zachary-Lowell, Yes I am leveraging iris_vision in hitl_hiris.world file. Isn't it required to fly drone in VIO mode in simulation considering there is no GPS?

        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