Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ endif()
# Python ##
###########

# Install Python modules
# Install Python modules in px4_ros_com/ (the Python package folder)
ament_python_install_package(${PROJECT_NAME})

# Install Python executables
# Install Python executable with a non-conflicting name
# (requires the script to have a shebang and executable bit)
install(PROGRAMS
src/examples/offboard_py/offboard_control.py
DESTINATION lib/${PROJECT_NAME}
RENAME offboard_control_py
)

ament_package()
2 changes: 1 addition & 1 deletion src/examples/offboard_py/offboard_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self) -> None:
self.vehicle_local_position_subscriber = self.create_subscription(
VehicleLocalPosition, '/fmu/out/vehicle_local_position', self.vehicle_local_position_callback, qos_profile)
self.vehicle_status_subscriber = self.create_subscription(
VehicleStatus, '/fmu/out/vehicle_status', self.vehicle_status_callback, qos_profile)
VehicleStatus, '/fmu/out/vehicle_status_v1', self.vehicle_status_callback, qos_profile)

# Initialize variables
self.offboard_setpoint_counter = 0
Expand Down