Hello, this question may sound pretty basic but I have been at this for a couple days
now with no luck. Funny thing is I had it working a few months back.but no such luck lately.
Im ultimately trying to control a SITL vehicle with a python script running on my Jetson Nano so that I can test my script on a simulated vehicle. However, right now I am having a heck of a time getting a connection between my laptop which runs Mission Planner and my Nano.
Wifi connection established between Jetson Nano and laptop by adding a WIFI hotspot connection to the jetson, the laptop was subsequently connected to this hotspot.
On laptop, Mission Planner started. The upper righthand “Connect” button pressed. IP address of the laptop entered in the text box, then remote port 5762 selected. (note the baudrate is set to 57600, also note I tried with the default 127.0.0.1 IP as well).
On Jetson, a python program is run which imports “connect” from Dronekit is called using ‘sudo’ and runs the following line:
This is a follow on for anyone experiencing the same problem. The issue is if you want to run SITL in windows and control the vehicle from your companion computer, the thing that confused me is that you need to start the simulated vehicle first, then you need to connect as in the above strategy shown using the IP address of the companion computer and using a different port number (such as 5762) than the one being used by the vehicle which you can see displayed in the upper right in mission planner. This might seem pretty obvious, but believe me I got stuck on this forever.
Maybe for the Orin but Im running a 2Gb Jetson Nano developer kit. The default install is 4.6.1 on the NVIDIA setup page. I am running 4.6 because I have alot of complex dependencies and dont want to break my system. I dont understand your response that you connect to the flight controller, I have never run the simulator with the flight controller attached I thought the concept was to replace the flight controller to debug your companion computer code??