From c6993fe6cfdea9761cddef181982e6c810a3e081 Mon Sep 17 00:00:00 2001 From: belyaev-dev <74226935+belyaev-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:12:09 +0300 Subject: [PATCH 1/6] docs(ru): add solution for HTTP/2 network errors on px4-autopilot clone --- docs/ru/simulation_native.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ru/simulation_native.md b/docs/ru/simulation_native.md index 10dce3794..c72103765 100644 --- a/docs/ru/simulation_native.md +++ b/docs/ru/simulation_native.md @@ -74,6 +74,9 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** Вы можете использовать более позднюю версию PX4 с большим риском, что что-то не заработает. +> **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после завершени верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через ssh командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует установки ssh ключа в настройках профиля GitHub). + + ## Установка зависимостей PX4 PX4 имеет свой собственный скрипт для установки зависимостей. Воспользуемся им: From 2b456ee2cba3ac2b8fab48ca91b21cdcb440e252 Mon Sep 17 00:00:00 2001 From: belyaev-dev <74226935+belyaev-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:17:03 +0300 Subject: [PATCH 2/6] docs(en): add solution for HTTP/2 network errors on px4-autopilot clone --- docs/en/simulation_native.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/simulation_native.md b/docs/en/simulation_native.md index d28bc4b3a..7a805a710 100644 --- a/docs/en/simulation_native.md +++ b/docs/en/simulation_native.md @@ -74,6 +74,8 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** You may use more recent PX4 version, but there would be more risk of something would not be working. +> **Note** If clone fails with network error (`fatal: fetch-pack: invalid index-pack output`), set HTTP version 1.1 using `git config --global http.version HTTP/1.1` command (don't forget to return it back after clone using `git config --global http.version HTTP/2`). Alternative solution is cloning the repository and submodules through ssh using `git config --global url."git@github.com:".insteadOf https://github.com/` command (requires a valid ssh key in GitHub profile settings). + ## Install PX4 prerequisites PX4 comes with its own script for dependency installation. We may as well leverage it: From 8e30e8b5b4718c4df4b54f3f99f867877510ff90 Mon Sep 17 00:00:00 2001 From: belyaev-dev <74226935+belyaev-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:17:52 +0300 Subject: [PATCH 3/6] docs(ru): fix typo in px4-autopilot clone note --- docs/ru/simulation_native.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ru/simulation_native.md b/docs/ru/simulation_native.md index c72103765..94851e6ba 100644 --- a/docs/ru/simulation_native.md +++ b/docs/ru/simulation_native.md @@ -74,7 +74,7 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** Вы можете использовать более позднюю версию PX4 с большим риском, что что-то не заработает. -> **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после завершени верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через ssh командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует установки ssh ключа в настройках профиля GitHub). +> **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после клонирования верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через ssh командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует установки ssh ключа в настройках профиля GitHub). ## Установка зависимостей PX4 From 0a8933f7e37748798ccf3dd290cdd92eb873b452 Mon Sep 17 00:00:00 2001 From: belyaev-dev <74226935+belyaev-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:32:16 +0300 Subject: [PATCH 4/6] docs(ru): fix markdownlint --- docs/ru/simulation_native.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/ru/simulation_native.md b/docs/ru/simulation_native.md index 94851e6ba..d0980c631 100644 --- a/docs/ru/simulation_native.md +++ b/docs/ru/simulation_native.md @@ -74,8 +74,7 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** Вы можете использовать более позднюю версию PX4 с большим риском, что что-то не заработает. -> **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после клонирования верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через ssh командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует установки ssh ключа в настройках профиля GitHub). - +> **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после клонирования верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через SSH командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует генерации и установки SSH ключа в настройках профиля GitHub). ## Установка зависимостей PX4 From 3d130f3e6c9e448bd36cb702c6ab24657887244f Mon Sep 17 00:00:00 2001 From: belyaev-dev <74226935+belyaev-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:35:22 +0300 Subject: [PATCH 5/6] docs(en): fix markdownlint --- docs/en/simulation_native.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/simulation_native.md b/docs/en/simulation_native.md index 7a805a710..88e2a0448 100644 --- a/docs/en/simulation_native.md +++ b/docs/en/simulation_native.md @@ -74,7 +74,7 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** You may use more recent PX4 version, but there would be more risk of something would not be working. -> **Note** If clone fails with network error (`fatal: fetch-pack: invalid index-pack output`), set HTTP version 1.1 using `git config --global http.version HTTP/1.1` command (don't forget to return it back after clone using `git config --global http.version HTTP/2`). Alternative solution is cloning the repository and submodules through ssh using `git config --global url."git@github.com:".insteadOf https://github.com/` command (requires a valid ssh key in GitHub profile settings). +> **Note** If clone fails with network error (`fatal: fetch-pack: invalid index-pack output`), set HTTP version 1.1 using `git config --global http.version HTTP/1.1` command (don't forget to return it back after clone using `git config --global http.version HTTP/2`). Alternative solution is cloning the repository and submodules through SSH using `git config --global url."git@github.com:".insteadOf https://github.com/` command (requires setting up valid SSH key in GitHub profile settings). ## Install PX4 prerequisites From a6ebe005b5fa38dcc44c064963b311c2b2b8f6b0 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 6 Sep 2024 15:35:21 +0300 Subject: [PATCH 6/6] Fix markdownlint --- docs/en/simulation_native.md | 2 ++ docs/ru/simulation_native.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/en/simulation_native.md b/docs/en/simulation_native.md index 88e2a0448..68fda0e6b 100644 --- a/docs/en/simulation_native.md +++ b/docs/en/simulation_native.md @@ -74,6 +74,8 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** You may use more recent PX4 version, but there would be more risk of something would not be working. + + > **Note** If clone fails with network error (`fatal: fetch-pack: invalid index-pack output`), set HTTP version 1.1 using `git config --global http.version HTTP/1.1` command (don't forget to return it back after clone using `git config --global http.version HTTP/2`). Alternative solution is cloning the repository and submodules through SSH using `git config --global url."git@github.com:".insteadOf https://github.com/` command (requires setting up valid SSH key in GitHub profile settings). ## Install PX4 prerequisites diff --git a/docs/ru/simulation_native.md b/docs/ru/simulation_native.md index d0980c631..86bc15c86 100644 --- a/docs/ru/simulation_native.md +++ b/docs/ru/simulation_native.md @@ -74,6 +74,8 @@ ln -s ~/PX4-Autopilot/mavlink ~/catkin_ws/src/ > **Hint** Вы можете использовать более позднюю версию PX4 с большим риском, что что-то не заработает. + + > **Note** Если процесс клонирования завершится с ошибкой сети (`fatal: fetch-pack: invalid index-pack output`), используйте версию HTTP 1.1 `git config --global http.version HTTP/1.1` (после клонирования верните 2 версию командой `git config --global http.version HTTP/2`). Альтернативным решением будет принудительное клонирование репозитория и субмодулей через SSH командой `git config --global url."git@github.com:".insteadOf https://github.com/` (требует генерации и установки SSH ключа в настройках профиля GitHub). ## Установка зависимостей PX4