You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it's a hardware / config issue as it's working fine with mavsdk lib:
import asyncio
from mavsdk import System
from mavsdk.offboard import (OffboardError, Attitude)
async def run():
# Initialize the drone
drone = System()
await drone.connect(system_address="serial:///dev/tty.usbserial-XXXXXX:57600")
print("Waiting for drone to connect...")
async for state in drone.core.connection_state():
if state.is_connected:
break
async for health in drone.telemetry.health():
if health.is_global_position_ok and health.is_home_position_ok:
print("Drone has a global position estimate")
break
# Arm the drone
await drone.action.arm()
# Set an initial setpoint
await drone.offboard.set_attitude(Attitude(0.0, 0.0, 0.0, 0.2))
await asyncio.sleep(3)
print("Disarming the drone...")
await drone.action.disarm()
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
thanks for your help
The text was updated successfully, but these errors were encountered:
igordevjspy
changed the title
Cannot send throttle / Offboard mode
Cannot apply throttle / Offboard mode
Jun 19, 2024
Hello,
I'm trying to apply throttle using offboard mode.
I have tested those two methods:
set_attitude_target_send
rc_channels_override_send
But it's not working;
I don't think it's a hardware / config issue as it's working fine with mavsdk lib:
thanks for your help
The text was updated successfully, but these errors were encountered: