# MAVSDK offboard set_velocity_body strange behavior

Source: https://forum.modalai.com/topic/33/mavsdk-offboard-set_velocity_body-strange-behavior
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2020-10-27 21:00:10 UTC by Pey Astig
Replies: 2 · Views: 2416

## Pey Astig · 2020-10-27 21:00:10 UTC

(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

## Reply by modaltb (ModalAI staff) · 2020-10-27 23:53:40 UTC

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/

## Reply by Pey Astig · 2020-10-28 00:15:15 UTC

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