navigator: use reference instead of pointer to pass the vehicle command to publish

This commit is contained in:
Matthias Grob
2025-04-25 15:32:47 +02:00
committed by Silvan Fuhrer
parent 672d228d79
commit dfed3970d4
13 changed files with 70 additions and 70 deletions
+2 -2
View File
@@ -86,8 +86,8 @@ 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
For camera commands set to vehicle_command->target_component = 100; // MAV_COMP_ID_CAMERA
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
For camera commands set to vehicle_command.target_component = 100; // MAV_COMP_ID_CAMERA
All others just get published as-is
-->