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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. MAVSDK offboard set_velocity_body strange behavior

MAVSDK offboard set_velocity_body strange behavior

Scheduled Pinned Locked Moved Unsolved General Questions
3 Posts 2 Posters 2.4k 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.
  • Pey AstigP Offline
    Pey AstigP Offline
    Pey Astig
    wrote on last edited by
    #1

    (Firmware 1.10, indoor parameters used)

    These set of MAVSDK code causes the drone to fly up approximately 5 feet and spin

    await drone.action.arm()
    
    await drone.offboard.set_velocity_body(VelocityBodyYawspeed(0, 0, 0, 0))
    
    try:
        await drone.offboard.start()
    except OffboardError as error:
        print(f"Starting offboard mode failed with error code: \
              {error._result.result}")
        print("-- Disarming")
        await drone.action.disarm()
        return
    

    My initial expectation is it would just stay in the ground. I'm just wondering what could be causing the issue, or how i can try to debug this. I'm getting odometry data in QGroundControl.

    Thank you

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

      Hi Pey,

      Can you double check that the "offboard_mode" is set to "none" in the voxl-vision-px4 configuration file?

      https://docs.modalai.com/voxl-vision-px4-other-features/

      1 Reply Last reply
      0
      • Pey AstigP Offline
        Pey AstigP Offline
        Pey Astig
        wrote on last edited by
        #3

        Oh man. , thank you so much that was the issue 😕

        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