Open hopekkl123 opened 3 years ago
Hello @hopekkl123
I am not able to recreate the error you have because the code works fine on my computer, and other computers that I have access to.
However, I have some questions.
tcp:127.0.0.1:5762
? mavlink_message.py
works? read_parameters.py
?mission_read.py
?Thank you.
hi @aabs7 Oh, I forgot to say, the environment I use is: python3.6 ubuntu system, then I am using mavlink to connect to udp:0.0.0.0:14550, and use jmavsim for simulation, The mavlink_message.py & read_parameters.py scripts can work normally, my mission comes from mission.txt in this example. the following is my output:
May be the MISSION_REQUEST command is cleared. Are you using mission_upload.py
without changing anything in the source code except for the udp port connection?
May be sending data like this can help you. I've changed sending method a little bit while incorporating other MAVLINK messages.
As you said, I just modified the udp port simulation in load_mission.py, This is a screenshot of the code: Then, I used the examples in drone.py & example.py As in the above situation, the mission cannot be loaded into the drone, which bothers me a lot. In jamvsim, I can see that it is (WPM: IGN MISSION_COUNT: Busy, then Operation timeout) and the simulation will stop. I am a newbie to the mavlink protocol.
Hello @hopekkl123
The code in this repository works fine with ARDUPILOT.
However, I see that you are using PX4. I checked the code with PX4 and like you said, mission_upload
fails when uploading in PX4 autopilot.
Here is the same error, on my computer, that you have.
Thank you for pointing this out. I will figure this out and post updates in this issue.
Thank you
When running mission_upload.py, when entering the loop on line 69, execute 4 and then recv_match(type=['MISSION_REQUEST'], blocking=True) will continue to block, Unable to upload complete mission points.