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

    MAVSDK offboard set_velocity_body strange behavior

    Ask your questions right here!
    2
    3
    344
    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.
    • P
      Pey Astig
      last edited by 27 Oct 2020, 21:00

      (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 Reply Quote 0
      • M
        modaltb ModalAI Team
        last edited by 27 Oct 2020, 23:53

        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 Reply Quote 0
        • P
          Pey Astig
          last edited by 28 Oct 2020, 00:15

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

          1 Reply Last reply Reply Quote 0
          1 out of 3
          • First post
            1/3
            Last post
          Powered by NodeBB | Contributors