Skip to content

Add pure mode #1815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
follow_me: use existing ms method (drive-by)
  • Loading branch information
julianoes committed Nov 22, 2022
commit 8a91a49a67b1b4a72198b85883474e8c75e1b58b
7 changes: 1 addition & 6 deletions src/mavsdk/plugins/follow_me/follow_me_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,6 @@ void FollowMeImpl::send_target_location()
return;
}

SteadyTimePoint now = _time.steady_time();
// needed by http://mavlink.org/messages/common#FOLLOW_TARGET
uint64_t elapsed_msec =
static_cast<uint64_t>(_time.elapsed_since_s(now) * 1000); // milliseconds

std::lock_guard<std::mutex> lock(_mutex);
// LogDebug() << debug_str << "Lat: " << _target_location.latitude_deg << " Lon: " <<
// _target_location.longitude_deg <<
Expand All @@ -339,7 +334,7 @@ void FollowMeImpl::send_target_location()
_parent->get_own_system_id(),
_parent->get_own_component_id(),
&msg,
elapsed_msec,
_time.elapsed_ms(),
_estimation_capabilities,
lat_int,
lon_int,
Expand Down