9 changed files with 127 additions and 48 deletions
@ -1,27 +1,27 @@
@@ -1,27 +1,27 @@
|
||||
#Powershell script to donwload and configure the APM SITL environment |
||||
|
||||
Import-Module BitsTransfer |
||||
|
||||
Write-Output "Starting Downloads" |
||||
|
||||
Write-Output "Downloading MAVProxy (1/6)" |
||||
Start-BitsTransfer -Source "http://firmware.ardupilot.org/Tools/MAVProxy/MAVProxySetup-latest.exe" -Destination "$PSScriptRoot\MAVProxySetup-latest.exe" |
||||
|
||||
Write-Output "Downloading Cygwin x64 (2/6)" |
||||
Start-BitsTransfer -Source "https://cygwin.com/setup-x86_64.exe" -Destination "$PSScriptRoot\setup-x86_64.exe" |
||||
|
||||
Write-Output "Installing Cygwin x64 (3/6)" |
||||
& $PSScriptRoot\setup-x86_64.exe --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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode | Out-Null |
||||
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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode" |
||||
|
||||
Write-Output "Configuring Cygwin (4/6)" |
||||
Copy-Item apm_install.sh C:\cygwin\home |
||||
|
||||
Write-Output "Downloading APM Source Code Cygwin (5/6)" |
||||
Start-Process -wait -FilePath "C:\cygwin\bin\bash" -ArgumentList "--login -i -c ../apm_install.sh" |
||||
|
||||
Write-Output "Installing MAVProxy (6/6)" |
||||
& $PSScriptRoot\MAVProxySetup-latest.exe /SILENT | Out-Null |
||||
|
||||
Write-Host "Finished. Press any key to continue ..." |
||||
#Powershell script to download and configure the APM SITL environment |
||||
|
||||
Import-Module BitsTransfer |
||||
|
||||
Write-Output "Starting Downloads" |
||||
|
||||
Write-Output "Downloading MAVProxy (1/6)" |
||||
Start-BitsTransfer -Source "http://firmware.ardupilot.org/Tools/MAVProxy/MAVProxySetup-latest.exe" -Destination "$PSScriptRoot\MAVProxySetup-latest.exe" |
||||
|
||||
Write-Output "Downloading Cygwin x64 (2/6)" |
||||
Start-BitsTransfer -Source "https://cygwin.com/setup-x86_64.exe" -Destination "$PSScriptRoot\setup-x86_64.exe" |
||||
|
||||
Write-Output "Installing Cygwin x64 (3/6)" |
||||
#& $PSScriptRoot\setup-x86_64.exe --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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode | Out-Null |
||||
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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode" |
||||
|
||||
Write-Output "Copying JSBSim install script Cygwin (4/6)" |
||||
Copy-Item jsbsim_install.sh C:\cygwin\home |
||||
|
||||
Write-Output "Downloading JSBSim Cygwin (5/6)" |
||||
Start-Process -wait -FilePath "C:\cygwin\bin\bash" -ArgumentList "--login -i -c ../jsbsim_install.sh" |
||||
|
||||
Write-Output "Installing MAVProxy (6/6)" |
||||
& $PSScriptRoot\MAVProxySetup-latest.exe /SILENT | Out-Null |
||||
|
||||
Write-Host "Finished. Press any key to continue ..." |
||||
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
#Powershell script to download and configure the APM SITL environment |
||||
|
||||
Import-Module BitsTransfer |
||||
|
||||
Write-Output "Starting Downloads" |
||||
|
||||
Write-Output "Downloading MAVProxy (1/6)" |
||||
Start-BitsTransfer -Source "http://firmware.ardupilot.org/Tools/MAVProxy/MAVProxySetup-latest.exe" -Destination "$PSScriptRoot\MAVProxySetup-latest.exe" |
||||
|
||||
Write-Output "Downloading Cygwin x64 (2/6)" |
||||
Start-BitsTransfer -Source "https://cygwin.com/setup-x86_64.exe" -Destination "$PSScriptRoot\setup-x86_64.exe" |
||||
|
||||
Write-Output "Installing Cygwin x64 (3/6)" |
||||
#& $PSScriptRoot\setup-x86_64.exe --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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode | Out-Null |
||||
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,python-libxml2,libxslt-devel,python-devel,procps-ng --quiet-mode" |
||||
|
||||
Write-Output "Copying JSBSim APM install script Cygwin (4/6)" |
||||
Copy-Item jsbsimAPM_install.sh C:\cygwin\home |
||||
|
||||
Write-Output "Downloading JSBSim and APM (5/6)" |
||||
Start-Process -wait -FilePath "C:\cygwin\bin\bash" -ArgumentList "--login -i -c ../jsbsimAPM_install.sh" |
||||
|
||||
Write-Output "Installing MAVProxy (6/6)" |
||||
& $PSScriptRoot\MAVProxySetup-latest.exe /SILENT | Out-Null |
||||
|
||||
Write-Host "Finished. Press any key to continue ..." |
||||
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") |
@ -1,4 +1,14 @@
@@ -1,4 +1,14 @@
|
||||
rem File run APM:Copter SITL |
||||
SETLOCAL enableextensions |
||||
@echo off |
||||
|
||||
rem Assumes a Cgywin install at C:\cygwin |
||||
chdir C:\cygwin\bin |
||||
bash --login -i -c "cd ./ardupilot/ArduCopter && ../Tools/autotest/sim_vehicle.py" |
||||
if "%CYGWIN_LOCATION%" == "" (set "CYGWIN_LOCATION=C:\cygwin") |
||||
|
||||
rem get current dir for Cygwin |
||||
set pth=%CD:~2,99% |
||||
set pth=%pth:\=/% |
||||
set drv=%CD:~0,1% |
||||
set "fullpath=/cygdrive/%drv%%pth%" |
||||
|
||||
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ArduCopter && ../Tools/autotest/sim_vehicle.py" |
||||
|
@ -1,4 +1,14 @@
@@ -1,4 +1,14 @@
|
||||
rem File run APM:Plane SITL |
||||
SETLOCAL enableextensions |
||||
@echo off |
||||
|
||||
rem Assumes a Cgywin install at C:\cygwin |
||||
chdir C:\cygwin\bin |
||||
bash --login -i -c "cd ./ardupilot/ArduPlane && ../Tools/autotest/sim_vehicle.py" |
||||
if "%CYGWIN_LOCATION%" == "" (set "CYGWIN_LOCATION=C:\cygwin") |
||||
|
||||
rem get current dir for Cygwin |
||||
set pth=%CD:~2,99% |
||||
set pth=%pth:\=/% |
||||
set drv=%CD:~0,1% |
||||
set "fullpath=/cygdrive/%drv%%pth%" |
||||
|
||||
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ArduPlane && ../Tools/autotest/sim_vehicle.py" |
||||
|
@ -1,4 +1,14 @@
@@ -1,4 +1,14 @@
|
||||
rem File run APM:Rover SITL |
||||
SETLOCAL enableextensions |
||||
@echo off |
||||
|
||||
rem Assumes a Cgywin install at C:\cygwin |
||||
chdir C:\cygwin\bin |
||||
bash --login -i -c "cd ./ardupilot/APMrover2 && ../Tools/autotest/sim_vehicle.py" |
||||
if "%CYGWIN_LOCATION%" == "" (set "CYGWIN_LOCATION=C:\cygwin") |
||||
|
||||
rem get current dir for Cygwin |
||||
set pth=%CD:~2,99% |
||||
set pth=%pth:\=/% |
||||
set drv=%CD:~0,1% |
||||
set "fullpath=/cygdrive/%drv%%pth%" |
||||
|
||||
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../APMrover2 && ../Tools/autotest/sim_vehicle.py" |
||||
|
@ -1,5 +1,17 @@
@@ -1,5 +1,17 @@
|
||||
rem File to update the APM source |
||||
rem Assumes a Cgywin install at C:\cygwin |
||||
chdir C:\cygwin\bin |
||||
bash --login -i -c "cd ./ardupilot && git pull && git submodule update --init --recursive" |
||||
@echo off |
||||
|
||||
rem get current dir for Cygwin |
||||
set pth=%CD:~2,99% |
||||
set pth=%pth:\=/% |
||||
set drv=%CD:~0,1% |
||||
set "fullpath=/cygdrive/%drv%%pth%" |
||||
|
||||
rem update the source |
||||
C:\cygwin\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ && git pull && git submodule update --init --recursive" |
||||
|
||||
rem re-configure build config |
||||
C:\cygwin\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ && ./modules/waf/waf-light configure --board=sitl" |
||||
|
||||
pause |
||||
|
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash |
||||
|
||||
#A simple script to install the APM SITL environment into cygwin |
||||
|
||||
python -m ensurepip --user |
||||
python -m pip install --user future |
||||
git clone git://github.com/tridge/jsbsim.git |
||||
cd jsbsim |
||||
./autogen.sh |
||||
make |
||||
cp src/JSBSim.exe /usr/local/bin |
Loading…
Reference in new issue