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
0
Merge Requests
0
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
079c035e
Commit
079c035e
authored
Feb 23, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log ground speed instead of air speed
parent
760fed00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mavsdk_wrapper.cpp
mavsdk_wrapper.cpp
+3
-6
No files found.
mavsdk_wrapper.cpp
View file @
079c035e
...
@@ -146,14 +146,11 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
...
@@ -146,14 +146,11 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
log
(
"Subscribing to raw GPS..."
);
log
(
"Subscribing to raw GPS..."
);
telemetry
->
subscribe_raw_gps
([](
Telemetry
::
RawGps
gps
)
{
telemetry
->
subscribe_raw_gps
([](
Telemetry
::
RawGps
gps
)
{
std
::
ostringstream
oss
;
std
::
ostringstream
oss
;
Telemetry
::
FixedwingMetrics
metrics
=
telemetry
->
fixedwing_metrics
();
Telemetry
::
Position
position
=
telemetry
->
position
();
oss
<<
(
gps
.
timestamp_us
-
init_timestamp
)
/
1000
<<
";"
oss
<<
(
gps
.
timestamp_us
-
init_timestamp
)
/
1000
<<
";"
<<
gps
.
latitude_deg
<<
";"
<<
gps
.
longitude_deg
<<
";"
<<
gps
.
latitude_deg
<<
";"
<<
gps
.
longitude_deg
<<
";"
<<
gps
.
absolute_altitude_m
<<
";"
<<
position
.
relative_altitude_m
<<
";"
<<
gps
.
absolute_altitude_m
<<
";"
<<
telemetry
->
position
()
.
relative_altitude_m
<<
";"
<<
telemetry
->
attitude_euler
().
yaw_deg
<<
";"
<<
telemetry
->
attitude_euler
().
yaw_deg
<<
";"
<<
metrics
.
airspeed_m_s
<<
";"
<<
metrics
.
climb_rate_m_s
;
<<
gps
.
velocity_m_s
<<
";"
<<
telemetry
->
fixedwing_metrics
()
.
climb_rate_m_s
;
log
(
oss
.
str
());
log
(
oss
.
str
());
});
});
}
}
...
@@ -182,7 +179,7 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
...
@@ -182,7 +179,7 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
log
(
"MAVSDK started..."
);
log
(
"MAVSDK started..."
);
mavsdk_started
=
1
;
mavsdk_started
=
1
;
log
(
"timestamp
;latitude;longitude;AMSL (m);rel altitude (m);yaw(°);air speed (m/s);climb rate
(m/s)"
);
log
(
"timestamp
(ms);latitude (°);longitude (°);AMSL (m);rel altitude (m);yaw (°);ground speed (m/s);climb rate
(m/s)"
);
return
0
;
return
0
;
}
}
...
...
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