Skip to content

Commit 4efa972

Browse files
committed
firmware sends message back immediately after receiving it
1 parent 431d078 commit 4efa972

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

comms/mavlink/mavlink.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ void Mavlink::handle_msg_timesync(const mavlink_message_t * const msg)
445445

446446
void Mavlink::handle_msg_offboard_control(const mavlink_message_t * const msg)
447447
{
448+
send_message(*msg);
449+
448450
mavlink_offboard_control_t ctrl;
449451
mavlink_msg_offboard_control_decode(msg, &ctrl);
450452

@@ -480,8 +482,8 @@ void Mavlink::handle_msg_offboard_control(const mavlink_message_t * const msg)
480482

481483
if (listener_ != nullptr) { listener_->offboard_control_callback(control); }
482484

483-
received_offboard_ctrl_ = true;
484-
prev_offboard_msg_ = *msg;
485+
// received_offboard_ctrl_ = true;
486+
// prev_offboard_msg_ = *msg;
485487
}
486488

487489
void Mavlink::send_previous_offboard_control()

src/comm_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ void CommManager::stream(got_flags got)
509509
send_next_param();
510510

511511
send_buffered_log_messages();
512-
513-
comm_link_.send_previous_offboard_control();
512+
//
513+
// comm_link_.send_previous_offboard_control();
514514
}
515515

516516
void CommManager::send_next_param(void)

0 commit comments

Comments
 (0)