2017-06-11 23:58:45 -03:00
|
|
|
#Powershell script to download and configure the APM SITL environment
|
|
|
|
|
|
|
|
Import-Module BitsTransfer
|
|
|
|
|
|
|
|
Write-Output "Starting Downloads"
|
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Downloading MAVProxy (1/7)"
|
2017-06-11 23:58:45 -03:00
|
|
|
Start-BitsTransfer -Source "http://firmware.ardupilot.org/Tools/MAVProxy/MAVProxySetup-latest.exe" -Destination "$PSScriptRoot\MAVProxySetup-latest.exe"
|
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Downloading Cygwin x64 (2/7)"
|
2017-06-11 23:58:45 -03:00
|
|
|
Start-BitsTransfer -Source "https://cygwin.com/setup-x86_64.exe" -Destination "$PSScriptRoot\setup-x86_64.exe"
|
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Installing Cygwin x64 (3/7)"
|
|
|
|
Start-Process -wait -FilePath $PSScriptRoot\setup-x86_64.exe -ArgumentList "--root=C:\cygwin --no-startmenu --local-package-dir=$env:USERPROFILE\Downloads --site=http://cygwin.mirror.constant.com --packages autoconf,automake,ccache,gcc-g++,git,libtool,make,gawk,libexpat-devel,libxml2-devel,python2,python2-future,python2-libxml2,python2-pip,libxslt-devel,python2-devel,procps-ng,zip,gdb,ddd --quiet-mode"
|
2017-06-11 23:58:45 -03:00
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Copying JSBSim install script to Cygwin (4/7)"
|
2018-01-01 21:48:33 -04:00
|
|
|
Start-BitsTransfer -Source "https://github.com/ArduPilot/ardupilot/raw/master/Tools/autotest/win_sitl/jsbsim_install.sh" -Destination "C:\cygwin\home\jsbsim_install.sh"
|
2017-06-11 23:58:45 -03:00
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Downloading extra Python packages (5/7)"
|
|
|
|
Start-Process -wait -FilePath "C:\cygwin\bin\bash" -ArgumentList "--login -i -c 'pip2 install empy'"
|
|
|
|
|
|
|
|
Write-Output "Downloading and installing JSBSim (6/7)"
|
2017-06-11 23:58:45 -03:00
|
|
|
Start-Process -wait -FilePath "C:\cygwin\bin\bash" -ArgumentList "--login -i -c ../jsbsim_install.sh"
|
|
|
|
|
2018-05-08 00:45:06 -03:00
|
|
|
Write-Output "Installing MAVProxy (7/7)"
|
2017-06-11 23:58:45 -03:00
|
|
|
& $PSScriptRoot\MAVProxySetup-latest.exe /SILENT | Out-Null
|
|
|
|
|
|
|
|
Write-Host "Finished. Press any key to continue ..."
|
2017-03-29 05:50:53 -03:00
|
|
|
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|