mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
docs: update link to navigator's publish_vehicle_command function
This commit is contained in:
committed by
Silvan Fuhrer
parent
dfed3970d4
commit
8e89906b9a
@@ -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
|
- `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)
|
- [`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);`)
|
- 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`)
|
- 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.
|
- All others just get published to default component ID.
|
||||||
- The `VehicleCommand` UORB topic is published.
|
- The `VehicleCommand` UORB topic is published.
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P
|
|||||||
_navigator.publish_vehicle_command(vehicle_command);
|
_navigator.publish_vehicle_command(vehicle_command);
|
||||||
|
|
||||||
Publishing 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
|
For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA
|
||||||
All others just get published as-is
|
All others just get published as-is
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -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
|
- `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)
|
- [`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);`)
|
- 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`)
|
- 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.
|
- All others just get published to default component ID.
|
||||||
- The `VehicleCommand` UORB topic is published.
|
- The `VehicleCommand` UORB topic is published.
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P
|
|||||||
_navigator->publish_vehicle_command(vehicle_command);
|
_navigator->publish_vehicle_command(vehicle_command);
|
||||||
|
|
||||||
Publishing 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
|
For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA
|
||||||
All others just get published as-is
|
All others just get published as-is
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ PX4 повторно видає пункти камери, знайдені в
|
|||||||
- `issue_command(_mission_item)` викликається в кінці цього, щоб відправити поточну непунктову команду
|
- `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)
|
- [`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);`)
|
- Створює команду для місії транспортного засобу, а потім викликає `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`)
|
- Для деяких команд камери це встановлює ідентифікатор компонента на ідентифікатор компонента камери (`vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA`)
|
||||||
- Усі інші просто публікуються під стандартний компонент ID.
|
- Усі інші просто публікуються під стандартний компонент ID.
|
||||||
- Тема UORB `VehicleCommand` публікується.
|
- Тема UORB `VehicleCommand` публікується.
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P
|
|||||||
_navigator->publish_vehicle_command(&vehicle_command);
|
_navigator->publish_vehicle_command(&vehicle_command);
|
||||||
|
|
||||||
Publishing 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
|
For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA
|
||||||
All others just get published as-is
|
All others just get published as-is
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -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
|
- `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)
|
- [`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);`)
|
- 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`)
|
- 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.
|
- All others just get published to default component ID.
|
||||||
- The `VehicleCommand` UORB topic is published.
|
- The `VehicleCommand` UORB topic is published.
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ MissionBlock::issue_command(const mission_item_s &item) => https://github.com/P
|
|||||||
_navigator->publish_vehicle_command(vehicle_command);
|
_navigator->publish_vehicle_command(vehicle_command);
|
||||||
|
|
||||||
Publishing 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
|
For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA
|
||||||
All others just get published as-is
|
All others just get published as-is
|
||||||
-->
|
-->
|
||||||
|
|||||||
Reference in New Issue
Block a user