Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Kits
  3. VOXL-CAM
  4. 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 VOXL-CAM
3 Posts 2 Posters 707 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
    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
        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

        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


        Powered by NodeBB | Contributors
        • Login

        • Don't have an account? Register

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