This commit is contained in:
Sem van der Hoeven
2023-05-02 11:24:06 +02:00
parent 0b5d4c2c4f
commit f23415f60d

View File

@@ -22,7 +22,7 @@ public:
HeartBeat() : Node("setpoint_sender")
{
// create a publisher on the offboard control mode topic
offboard_control_mode_publisher_ = this->create_publisher<px4_msgs::msg::OffboardControlMode>("/fmu/in/offboard_control_mode", 10);
// offboard_control_mode_publisher_ = this->create_publisher<px4_msgs::msg::OffboardControlMode>("/fmu/in/offboard_control_mode", 10);
// create timer to send heartbeat messages (offboard control) every 100ms
timer_ = this->create_wall_timer(100ms, std::bind(&HeartBeat::send_heartbeat, this));
start_time = this->get_clock()->now().seconds();