add message code hpp file
This commit is contained in:
@@ -27,6 +27,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
|
||||
"srv/SetAttitude.srv"
|
||||
)
|
||||
|
||||
include_directories(include)
|
||||
add_executable(heartbeat src/heartbeat.cpp)
|
||||
ament_target_dependencies(
|
||||
heartbeat
|
||||
|
||||
8
src/px4_connection/include/attitude_msg_code.hpp
Normal file
8
src/px4_connection/include/attitude_msg_code.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef ATTITUDE_MSG_CODE_HPP
|
||||
#define ATTITUDE_MSG_CODE_HPP
|
||||
|
||||
#define ATTITUDE_STATUS_OK 0
|
||||
#define ATTITUDE_STATUS_ERROR 1
|
||||
|
||||
|
||||
#endif
|
||||
@@ -11,6 +11,7 @@ https://discuss.px4.io/t/cannot-arm-drone-with-companion-computer-arming-denied-
|
||||
#include <math.h>
|
||||
|
||||
#include "rclcpp/rclcpp.hpp"
|
||||
#include "attitude_msg_code.hpp"
|
||||
|
||||
#include <px4_msgs/msg/vehicle_attitude_setpoint.hpp>
|
||||
#include <px4_msgs/msg/trajectory_setpoint.hpp>
|
||||
|
||||
Reference in New Issue
Block a user