I've setup SITL exactly as mentioned in the wiki. After running
sim_vehicle.sh --console --map --aircraft test
I receive the message
MAV> Waiting for heartbeat from tcp:127.0.0.1:5760
I'm unable to do anything in the SITL because of this. Can anyone help me diagnose this issue?
Thanks!
Replies
Hi everyone !
I'm testing sitl arducopter and i'm got some questions about it :
- Firstly, is this link still relevant ?
- Is it possible to send c++ code, which use mavlink, directly to sitl or it's also possible to make sitl with GCS ?
- If it's possible, is it possible to someone explain me how to make it ?
Thanks you very much !
Thomas
So far - both sim_vehicle.sh -w and the longer command complain about the heartbeat. I did a nmap on the localhost and that port has nothing on it(not open/active).
Hey Bill, I did the following
went into the ArduCopter directory and ran sim_vehicle.sh -w
then I ran sim_vehicle.sh without the aircraft parameter.
Here's the output
Ok, how are you logging in to run SITL, It look like you don't have X setup.
If you are logging in remotely you can do two things
1) Run without Console/Map. Start screen session when you ssh in and then use sim_vehilce.sh
2) use ssh -Y when you connect e.g ssh -Y 10.0.1.26 and this sets XDISPLAY to be your connectinh host. It will then show the console and the map
If you are on the same machine and without X installed. you can do the same as step 2, run screen, then run sim_vehicle.sh from the ArduCopter directory. CTRL A,0 will switch you back to the MAVProxy command view. CTRL-A D detahces the screen and leaves it running. screen -r resumes the screen session. CTRL-C in the MACProxy command view quits
I'm currently using option 1 of your suggestions.
Figured out the error. when I type make sitl, I get a bunch of errors after
These errors are
all these errors vanished when I did make clean and then make sitl
but when it sets the params it gets timeouts
I followed the tutorial and ran the
ardupilot/Tools/scripts/install-prereqs-ubuntu.sh -y
and then did
and it returned.
I then tried
It put in several lines and completed