-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change LF → CRLF
- Loading branch information
Showing
4 changed files
with
118 additions
and
118 deletions.
There are no files selected for viewing
60 changes: 30 additions & 30 deletions
60
tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-FlightControl.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_fc" | ||
set "HAKO_CONTROLLER_PARAM_FILE=..\drone_control\config\param-api-mixer.txt" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%HAKO_CONTROLLER_PARAM_FILE%" ( | ||
echo ERROR: can not find "%HAKO_CONTROLLER_PARAM_FILE%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 ext | ||
|
||
popd | ||
|
||
endlocal | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_fc" | ||
set "HAKO_CONTROLLER_PARAM_FILE=..\drone_control\config\param-api-mixer.txt" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%HAKO_CONTROLLER_PARAM_FILE%" ( | ||
echo ERROR: can not find "%HAKO_CONTROLLER_PARAM_FILE%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 ext | ||
|
||
popd | ||
|
||
endlocal |
68 changes: 34 additions & 34 deletions
68
tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-PX4Control.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_px4" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
for /f "tokens=3" %%a in ('netsh interface ip show address "vEthernet (WSL)" ^| findstr "IP Address"') do set "WSL_IP=%%a" | ||
|
||
if not defined WSL_IP ( | ||
echo WSL IP address could not be found. | ||
exit /b 1 | ||
) | ||
|
||
echo WSL IP Address: %WSL_IP% | ||
|
||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe %WSL_IP% 4560 sim | ||
|
||
popd | ||
|
||
endlocal | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_px4" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
for /f "tokens=3" %%a in ('netsh interface ip show address "vEthernet (WSL)" ^| findstr "IP Address"') do set "WSL_IP=%%a" | ||
|
||
if not defined WSL_IP ( | ||
echo WSL IP address could not be found. | ||
exit /b 1 | ||
) | ||
|
||
echo WSL IP Address: %WSL_IP% | ||
|
||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe %WSL_IP% 4560 sim | ||
|
||
popd | ||
|
||
endlocal |
60 changes: 30 additions & 30 deletions
60
tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-RadioControl.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_rc" | ||
set "HAKO_CONTROLLER_PARAM_FILE=..\drone_control\config\param-api-mixer.txt" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%HAKO_CONTROLLER_PARAM_FILE%" ( | ||
echo ERROR: can not find "%HAKO_CONTROLLER_PARAM_FILE%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 ext | ||
|
||
popd | ||
|
||
endlocal | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_rc" | ||
set "HAKO_CONTROLLER_PARAM_FILE=..\drone_control\config\param-api-mixer.txt" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%HAKO_CONTROLLER_PARAM_FILE%" ( | ||
echo ERROR: can not find "%HAKO_CONTROLLER_PARAM_FILE%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 ext | ||
|
||
popd | ||
|
||
endlocal |
48 changes: 24 additions & 24 deletions
48
tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-replay.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_rc" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 replay | ||
|
||
popd | ||
|
||
endlocal | ||
@echo off | ||
setlocal | ||
|
||
set "HAKO_CUSTOM_JSON_PATH=..\DroneAppWin\custom.json" | ||
set "DRONE_CONFIG_PATH=..\config_rc" | ||
|
||
if not exist "%HAKO_CUSTOM_JSON_PATH%" ( | ||
echo ERROR: can not find "%HAKO_CUSTOM_JSON_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
if not exist "%DRONE_CONFIG_PATH%\" ( | ||
echo ERROR: can not find "%DRONE_CONFIG_PATH%" | ||
exit /b 1 | ||
) | ||
|
||
REM create_mmap.bat を呼び出す | ||
call create_mmap.bat | ||
|
||
..\..\out\build\x64-Release\hakoniwa\src\hako-px4sim.exe 127.0.0.1 4560 replay | ||
|
||
popd | ||
|
||
endlocal |