From 8e89906b9a9ef934392edc0190ad7c8cd1071fec Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Fri, 25 Apr 2025 14:20:59 +0200 Subject: [PATCH] docs: update link to navigator's publish_vehicle_command function --- docs/en/camera/camera_architecture.md | 2 +- docs/en/camera/mavlink_v2_camera.md | 2 +- docs/ko/camera/camera_architecture.md | 2 +- docs/ko/camera/mavlink_v2_camera.md | 2 +- docs/uk/camera/camera_architecture.md | 2 +- docs/uk/camera/mavlink_v2_camera.md | 2 +- docs/zh/camera/camera_architecture.md | 2 +- docs/zh/camera/mavlink_v2_camera.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/en/camera/camera_architecture.md b/docs/en/camera/camera_architecture.md index 6170c062241..b7de079bc24 100644 --- a/docs/en/camera/camera_architecture.md +++ b/docs/en/camera/camera_architecture.md @@ -89,7 +89,7 @@ Commands supported in missions, including camera commands, are shown in these me - `issue_command(_mission_item)` is called at the end of this to send the current non-waypoint command - [`MissionBlock::issue_command(const mission_item_s &item)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/mission_block.cpp#L543-L562) - Creates a vehicle command for the mission item then calls `publish_vehicle_command` to publish it (`_navigator->publish_vehicle_command(vehicle_command);`) - - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358) + - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395) - For some camera commands it sets the component ID to the camera component id (`vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA`) - All others just get published to default component ID. - The `VehicleCommand` UORB topic is published. diff --git a/docs/en/camera/mavlink_v2_camera.md b/docs/en/camera/mavlink_v2_camera.md index a53bb0df2a3..0a3301c9fb6 100644 --- a/docs/en/camera/mavlink_v2_camera.md +++ b/docs/en/camera/mavlink_v2_camera.md @@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P _navigator.publish_vehicle_command(vehicle_command); Publishing command: -void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358 +void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395 For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA All others just get published as-is --> diff --git a/docs/ko/camera/camera_architecture.md b/docs/ko/camera/camera_architecture.md index 026779fc501..6620af5b06e 100644 --- a/docs/ko/camera/camera_architecture.md +++ b/docs/ko/camera/camera_architecture.md @@ -89,7 +89,7 @@ Commands supported in missions, including camera commands, are shown in these me - `issue_command(_mission_item)` is called at the end of this to send the current non-waypoint command - [`MissionBlock::issue_command(const mission_item_s &item)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/mission_block.cpp#L543-L562) - Creates a vehicle command for the mission item then calls `publish_vehicle_command` to publish it (`_navigator->publish_vehicle_command(vehicle_command);`) - - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358) + - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395) - For some camera commands it sets the component ID to the camera component id (`vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA`) - All others just get published to default component ID. - The `VehicleCommand` UORB topic is published. diff --git a/docs/ko/camera/mavlink_v2_camera.md b/docs/ko/camera/mavlink_v2_camera.md index 72622459fa6..0475cf99cc2 100644 --- a/docs/ko/camera/mavlink_v2_camera.md +++ b/docs/ko/camera/mavlink_v2_camera.md @@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P _navigator->publish_vehicle_command(vehicle_command); Publishing command: -void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358 +void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395 For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA All others just get published as-is --> diff --git a/docs/uk/camera/camera_architecture.md b/docs/uk/camera/camera_architecture.md index f96eff55fdf..acd1d2a7953 100644 --- a/docs/uk/camera/camera_architecture.md +++ b/docs/uk/camera/camera_architecture.md @@ -89,7 +89,7 @@ PX4 повторно видає пункти камери, знайдені в - `issue_command(_mission_item)` викликається в кінці цього, щоб відправити поточну непунктову команду - [`MissionBlock::видача_команди(const mission_item_s &item)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/mission_block.cpp#L543-L562) - Створює команду для місії транспортного засобу, а потім викликає `publish_vehicle_command` для публікації її (`_navigator->publish_vehicle_command(vehicle_command);`) - - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358) + - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395) - Для деяких команд камери це встановлює ідентифікатор компонента на ідентифікатор компонента камери (`vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA`) - Усі інші просто публікуються під стандартний компонент ID. - Тема UORB `VehicleCommand` публікується. diff --git a/docs/uk/camera/mavlink_v2_camera.md b/docs/uk/camera/mavlink_v2_camera.md index d1d2b5b8fa7..7ca8eeaad92 100644 --- a/docs/uk/camera/mavlink_v2_camera.md +++ b/docs/uk/camera/mavlink_v2_camera.md @@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P _navigator->publish_vehicle_command(&vehicle_command); Publishing command: -void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358 +void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395 For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA All others just get published as-is --> diff --git a/docs/zh/camera/camera_architecture.md b/docs/zh/camera/camera_architecture.md index 41375a5a3c4..0adab6b1ca6 100644 --- a/docs/zh/camera/camera_architecture.md +++ b/docs/zh/camera/camera_architecture.md @@ -89,7 +89,7 @@ Commands supported in missions, including camera commands, are shown in these me - `issue_command(_mission_item)` is called at the end of this to send the current non-waypoint command - [`MissionBlock::issue_command(const mission_item_s &item)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/mission_block.cpp#L543-L562) - Creates a vehicle command for the mission item then calls `publish_vehicle_command` to publish it (`_navigator->publish_vehicle_command(vehicle_command);`) - - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358) + - [`void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command)`](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395) - For some camera commands it sets the component ID to the camera component id (`vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA`) - All others just get published to default component ID. - The `VehicleCommand` UORB topic is published. diff --git a/docs/zh/camera/mavlink_v2_camera.md b/docs/zh/camera/mavlink_v2_camera.md index 6b58461b0b6..3282e25ecb9 100644 --- a/docs/zh/camera/mavlink_v2_camera.md +++ b/docs/zh/camera/mavlink_v2_camera.md @@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P _navigator->publish_vehicle_command(vehicle_command); Publishing command: -void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1358 +void Navigator::publish_vehicle_command(vehicle_command_s &vehicle_command) => https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp#L1395 For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA All others just get published as-is -->