This thread is to discuss the details of getting SITL running on Windows as documented on this wiki page.
You need to be a member of diydrones to add comments!
This thread is to discuss the details of getting SITL running on Windows as documented on this wiki page.
You need to be a member of diydrones to add comments!
Replies
Setup sitl on Windows 7. Followed the recipe in the web documentation. Cygwin working fine. Mavproxy installed without errors. Python installed. jbsim installed properly. Built the sitl versions of ArduPlane and ArduCopter sucessfully without errors. Ticks to everything.
When I run Mavproxy from the supplied script I get a graphic with no aircraft icon on it, neither plane nor copter.
If I run the plane Mavproxy crashes complaining about non-existent parameters. thereafter the console is mostly unresponsive. I cannot exit the console. Enter key works. The console prompt remains at "initializing". There is no plane icon on the graphic.
If I run the copter Mavproxy does not crash. The console prompt stays at "stabilized". Commands appear to be recognized but the mode does not change and nothing happens. There is no copter icon on the graphic.
The web documentation is also incorrect. It states the command is sim_vehicle.py -j4 --map. There is no sim_vehicle.py. there is a script called sim_vehicle.sh which works. What other errors are in the documentation?
I've wasted a day on this. That's enough. I have research to get on with. Pity, I could have made good use of the simulation capability.
If you have a solution let me know.
Hi I've added the line to .bashrc as specified in the new page at http://dev.ardupilot.com/wiki/sitl-native-on-windows/
Now when I cd in ardupilot/ArduCopter and then try running
make sitl -j4 and I've also tried it without the -j4
I'm getting the SKETCHBOOK not found error:
../mk/environ.mk:44: *** ERROR: cannot determine sketchbook location - please specify on the commandline with SKETCHBOOK=<path>. Stop.
I cloned it off GitHub and have followed the instructions so far as given.
I have no idea what to do and any help is appreciated.
Thanks!
Anatoly,
I'd recommend removing the "-j4" from the make. I'm not sure that will fix it as personally I always run SITL from within a virtual Ubuntu machine on my windows box.
Dear Randy,
This is Anh from Seoul, Korea
Can I ask you about SITL for drone simulation?
Recently, I try to use this tool on window 7, I am focusing on FLIP Mode for my quadcopter, but when I typed the command "mode flip", the simulation does not response(Please see attached file)
So, can you tell me how to check this function on SITL?
Thank you very much for your time
Anh
Capture.PNG
Hoang,
Maybe you figured this out, but the issue is that flip mode can only be initiated from stabilize mode. If you have a peek at control_flip.cpp's flip_init() function you'll see the check in there. You could potentially remove that and see how it goes but I think that flip currently relies on the pilot's input throttle as it's base throttle for the maneuver. A better way to do it would be to use the output throttle (i.e. motors.get_throttle()). If that was done then it might be possible to remove the check from flip_init().
Sorry for taking a month to answer!
From the VM machine can you ping the IP address that you are sending the packets to?
It may be a problem with the networking of the VM. I usually run mine in bridged mode rather than NAT. In bridged mode the VM gets an IP address as if it was another complete PC on your network so it will get another address from your router or whatever gives you IP addresses. Below is my SITL VM and the command line I use. Also in the settings of the network card for the VM I change it to bridged mode.
John,
So the issue is likely the script that you're running to fire up the simulator. So you're likely starting one of the pre-canned tests by running this:
./Tools/autotest/autotest.py build.ArduCopter fly.ArduCopter logs.ArduCopter --map --viewerip=192.168.184.1Instead you could try running sim_vehicle.sh or sim_arducopter_randy.sh. Sorry, I can't immediately remember all the parameters that would need to be added.
John,
the wind doesn't work in the simulator for copter unfortunately. It only works for plane. I'm not sure why, sorry!
if you use the sim_vehicle.sh script then there is a "-L" option that allows you to set the home location from any location in the Location.txt file.
John,
No write-up as far as I know. sorry!
Menno,
MP should be running on your windows machine.
-
1
-
2
-
3
of 3 Next