From fd2ace29ced2a85d4901a4ba84ba249508b4d7a2 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Tue, 25 Apr 2023 16:54:57 +0200 Subject: [PATCH] typo --- src/px4_connection/src/px4_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/px4_connection/src/px4_controller.cpp b/src/px4_connection/src/px4_controller.cpp index 64ed0358..8e0a80f4 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -25,13 +25,13 @@ public: { // create a publisher on the vehicle attitude setpoint topic vehicle_setpoint_publisher_ = this->create_publisher("/fmu/in/vehicle_attitude_setpoint", 10); - vehicle_command_publisher_ = this->create_publisher("/fmu/in/vehicle_command", 10); + vehicle_command_publisher_ = this->create_publisher("/fmu/in/vehicle_command", 10); // set to offboard mode this->publish_vehicle_command(px4_msgs::msg::VehicleCommand::VEHICLE_CMD_DO_SET_MODE, 1, 6); RCLCPP_INFO(this->get_logger(), "Set to offboard mode"); // arm the drone - publish_vehicle_command(VehicleCommand::VEHICLE_CMD_COMPONENT_ARM_DISARM, 1.0); + publish_vehicle_command(px4_msgs::msg::VehicleCommand::VEHICLE_CMD_COMPONENT_ARM_DISARM, 1.0); RCLCPP_INFO(this->get_logger(), "Arm command sent");