Skip to content

Commit

Permalink
AP_DDS: Removed GCS_TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianofiorenzani committed Oct 18, 2024
1 parent 6e22263 commit 8746274
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/AP_DDS/AP_DDS_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ bool AP_DDS_Client::update_topic_goal(geographic_msgs_msg_GeoPointStamped& msg)
msg.position.altitude = target_loc.alt * 1e-2;

// Check whether the goal has changed or if the topic has never been published.
const double distance_lat_lon = 1e-8;
const double distance_lat_lon = 1e-8; // One order of magnitude smaller than the target's resolution.
const double distance_alt = 1e-3;
if (abs(msg.position.latitude - prev_goal_msg.position.latitude) > distance_lat_lon ||
abs(msg.position.longitude - prev_goal_msg.position.longitude) > distance_lat_lon ||
Expand All @@ -551,7 +551,6 @@ bool AP_DDS_Client::update_topic_goal(geographic_msgs_msg_GeoPointStamped& msg)
prev_goal_msg.position.latitude = msg.position.latitude;
prev_goal_msg.position.longitude = msg.position.longitude;
prev_goal_msg.position.altitude = msg.position.altitude;
GCS_SEND_TEXT(MAV_SEVERITY_ERROR, "%s AP_DDS Sent Goal", msg_prefix);
return true;
} else {
return false;
Expand Down

0 comments on commit 8746274

Please sign in to comment.