Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError al usar MAV_CMD_DO_ORBIT en pymavlink: "No attribute 'MAV_CMD_DO_ORBIT'" #981

Open
S4klas opened this issue Sep 26, 2024 · 0 comments

Comments

@S4klas
Copy link

S4klas commented Sep 26, 2024

Estoy intentando ejecutar un comando de órbita en mi código utilizando pymavlink, pero obtengo un error AttributeError al intentar acceder a MAV_CMD_DO_ORBIT. El error que se muestra es el siguiente:

Traceback (most recent call last):
File "c:/Users/labc9/Desktop/drone/main2.py", line 394, in set_orbit2
mavutil.mavlink.MAV_CMD_DO_ORBIT, # Comando de órbita
AttributeError: module 'pymavlink.dialects.v20.development' has no attribute 'MAV_CMD_DO_ORBIT'

He intentado cambiar los dialectos importados, probando con:
from pymavlink.dialects.v20 import ardupilotmega as mavlink2
from pymavlink.dialects.v10 import ardupilotmega as mavlink1
Sin embargo, en ambos casos sigo obteniendo el mismo error. Esto indica que el comando MAV_CMD_DO_ORBIT no parece estar disponible en los dialectos ardupilotmega de las versiones de MAVLink 1 y MAVLink 2.
Versión de pymavlink: Name: pymavlink
Version: 2.4.41
Summary: Python MAVLink code
Home-page: https://github.com/ArduPilot/pymavlink/
Author:
Author-email:
License: LGPLv3
Location: c:\python38\lib\site-packages
Requires: future, lxml
Required-by: dronekit, MAVProxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant