dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.58k stars 1.44k forks source link

How to use NAV_SPLINE_WAYPOINT in GUIDED mode? #1166

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello, as you know, we can use the MAV_CMD_NAV_WAYPOINT command in GUIDED mode with the simple_goto function. We use the MAV_CMD_NAV_SPLINE_WAYPOINT command by creating a Mission Command in AUTO mode. But I want to use MAV_CMD_NAV_SPLINE_WAYPOINT command in GUIDED mode. Can you help me for this?

I tried a way but it didn't work: I tried typing "mavutil.mavlink.MAV_CMD_NAV_SPLINE_WAYPOINT" in the "mavutil.mavlink.MAV_CMD_NAV_WAYPOINT" field in the simple_goto function in the init.py file. But the drone did not advance. There is no reaction.

Can you show me a solution? Thank you so much.

Ekran Resmi 2022-09-21 19 35 34