Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qjs-wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
qjs-wrapper
Commits
8b442812
Commit
8b442812
authored
May 18, 2022
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log telemetry before updating coordinates
parent
ce1c4016
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mavsdk_wrapper.cpp
mavsdk_wrapper.cpp
+5
-5
No files found.
mavsdk_wrapper.cpp
View file @
8b442812
...
...
@@ -160,6 +160,11 @@ int mavsdk_start(const char * url, const char * log_file, int timeout,
// Set up callback to monitor altitude while the vehicle is in flight
publish_fn
=
publishCoordinates
;
telemetry
->
subscribe_position
([](
Telemetry
::
Position
position
)
{
std
::
ostringstream
oss
;
oss
<<
drone_a
<<
" m "
<<
drone_at
<<
" m "
<<
drone_la
<<
" "
<<
drone_lo
<<
" "
;
log_telemetry
(
oss
.
str
());
drone_la
=
position
.
latitude_deg
;
drone_lo
=
position
.
longitude_deg
;
drone_a
=
position
.
absolute_altitude_m
;
...
...
@@ -175,11 +180,6 @@ int mavsdk_start(const char * url, const char * log_file, int timeout,
xy_ratio
=
std
::
cos
(
initial_drone_la_rad
);
initial_coords_set
=
true
;
}
std
::
ostringstream
oss
;
oss
<<
drone_a
<<
" m "
<<
drone_at
<<
" m "
<<
drone_la
<<
" "
<<
drone_lo
<<
" "
;
log_telemetry
(
oss
.
str
());
});
log
(
"MAVSDK started..."
);
mavsdk_started
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment