Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
change LF → CRLF
  • Loading branch information
buildko89 authored Dec 14, 2024
1 parent 7e4f226 commit c035cd1
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 118 deletions.
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 tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-PX4Control.bat
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
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 tools/win/template/hakoniwa-px4-win/hakoniwa/bin/run-replay.bat
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

0 comments on commit c035cd1

Please sign in to comment.