Skip to content

Commit

Permalink
AP_DDS: Add todo for handling control failures to rosout
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Aug 10, 2023
1 parent 35b31f4 commit 911c236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_DDS/AP_DDS_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,9 @@ void AP_DDS_Client::on_topic (uxrSession* uxr_session, uxrObjectId object_id, ui
float(rx_velocity_control_topic.twist.linear.x),
float(-rx_velocity_control_topic.twist.linear.z) };
const float yaw_rate = -rx_velocity_control_topic.twist.angular.z;
external_control->set_linear_velocity_and_yaw_rate(linear_velocity, yaw_rate);
if (!external_control->set_linear_velocity_and_yaw_rate(linear_velocity, yaw_rate)) {
// TODO #23430 handle velocity control failure through rosout, throttled.
}
#endif // AP_EXTERNAL_CONTROL_ENABLED
break;
}
Expand Down

0 comments on commit 911c236

Please sign in to comment.