add message code hpp file

This commit is contained in:
Sem van der Hoeven
2023-05-01 14:41:28 +02:00
parent 5996ac225a
commit 6129216d80
3 changed files with 10 additions and 0 deletions

View File

@@ -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

View 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

View File

@@ -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>