Using modalai sdk and crash wen conecting to drone
-
Im using a m500 I follow the sdk github and it worked the first time when I use the first code, takeoff and landing, I even make de drone to use the code twice, but when I tried to use the second code, I wasnt able to do it, and now I have errors when I run the code
:voxl:~$ docker run -it --rm --privileged --net=host gcr.io/modalai-public/voxl-mavsdk-python:v1.1 /bin/bash
root@apq8096:/home# ./start-mavsdk-server.sh
Starting mavsdk server on port 50051, listening for
root@apq8096:/home#
root@apq8096:/home# [Hit ENTER to get shell access]
bash: [Hit: command not found
root@apq8096:/home# [09:56:07|Info ] MAVSDK version: v0.29.0 (mavsdk_impl.cpp:27)
[09:56:07|Debug] New: System ID: 0 Comp ID: 0 (mavsdk_impl.cpp:404)
[09:56:07|Info ] Server started (grpc_server.cpp:43)
[09:56:07|Info ] Server set to listen on 0.0.0.0:50051 (grpc_server.cpp:44)
[09:56:07|Info ] Waiting to discover system on udp://:14551... (connection_initiator.h:22)
[09:56:07|Info ] New system on: 127.0.0.1:43106 (udp_connection.cpp:256)
[09:56:07|Debug] Component Autopilot (1) added. (system_impl.cpp:344)
[09:56:08|Debug] Discovered 1 component(s) (UUID: 4769400005510313013) (system_impl.cpp:517)
[09:56:08|Info ] System discovered [UUID: 4769400005510313013] (connection_initiator.h:61)
[09:56:08|Warn ] command denied (512). (mavlink_commands.cpp:164)
[09:56:09|Debug] Falling back to Gimbal Version 1 (gimbal_impl.cpp:53)root@apq8096:/home# ./start-mavsdk-server.sh
Starting mavsdk server on port 50051, listening for
root@apq8096:/home#
root@apq8096:/home# [Hit ENTER to get shell access]
bash: [Hit: command not found
root@apq8096:/home# [09:56:45|Info ] MAVSDK version: v0.29.0 (mavsdk_impl.cpp:27)
[09:56:45|Debug] New: System ID: 0 Comp ID: 0 (mavsdk_impl.cpp:404)
[09:56:45|Info ] Server started (grpc_server.cpp:43)
[09:56:45|Info ] Server set to listen on 0.0.0.0:50051 (grpc_server.cpp:44)
[09:56:45|Info ] Waiting to discover system on udp://:14551... (connection_initiator.h:22)
[09:56:45|Error] bind error: Address already in use (udp_connection.cpp:85)
[09:56:45|Error] Connection failed: Bind error (connection_initiator.h:48)root@apq8096:/home# python3 takeoff_and_land2.py udp://:14551
Waiting for mavsdk_server to be ready...
Connected to mavsdk_server!
Waiting for drone to connect...
[09:58:43|Info ] heartbeats timed out (system_impl.cpp:255)
[09:58:43|Debug] Lost 4769400005510313013 (mavsdk_impl.cpp:431)
[09:58:43|Info ] System timed out [UUID: 4769400005510313013] (connection_initiator.h:40)
[09:58:56|Debug] Discovered 1 component(s) (UUID: 4769400005510313013) (system_impl.cpp:517)
[09:58:57|Warn ] sending again after 0.501502 s, retries to do: 3 (511). (mavlink_commands.cpp:239)
[09:58:57|Debug] Falling back to Gimbal Version 1 (gimbal_impl.cpp:53)
[09:58:57|Warn ] sending again after 1.00622 s, retries to do: 2 (511). (mavlink_commands.cpp:239)
[09:58:57|Warn ] sending again, retries to do: 3 (NAV_MIN_FT_HT). (mavlink_parameters.cpp:509)
[09:58:58|Warn ] sending again after 1.51361 s, retries to do: 1 (511). (mavlink_commands.cpp:239)
[09:58:59|Error] Retrying failed (511) (mavlink_commands.cpp:260)
[09:58:59|Warn ] sending again, retries to do: 2 (NAV_MIN_FT_HT). (mavlink_parameters.cpp:509)
[09:58:59|Warn ] sending again after 0.509281 s, retries to do: 3 (512). (mavlink_commands.cpp:239)
[09:59:00|Warn ] sending again, retries to do: 1 (NAV_MIN_FT_HT). (mavlink_parameters.cpp:509)
[09:59:00|Warn ] sending again after 1.01484 s, retries to do: 2 (512). (mavlink_commands.cpp:239)
[09:59:00|Warn ] sending again after 1.52147 s, retries to do: 1 (512). (mavlink_commands.cpp:239)
[09:59:00|Warn ] command denied (512). (mavlink_commands.cpp:164)
[09:59:46|Debug] MAVLink: critical: Manual control lost (system_impl.cpp:250) -
I tried it today and it worked fine
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login