Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
f5a844d4
Commit
f5a844d4
authored
9 years ago
by
Andreas Antener
Browse files
Options
Downloads
Patches
Plain Diff
added field for pressure altitude to global position
parent
d9c33235
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
msg/vehicle_global_position.msg
+1
-0
1 addition, 0 deletions
msg/vehicle_global_position.msg
src/modules/mavlink/mavlink_messages.cpp
+1
-1
1 addition, 1 deletion
src/modules/mavlink/mavlink_messages.cpp
with
2 additions
and
1 deletion
msg/vehicle_global_position.msg
+
1
−
0
View file @
f5a844d4
...
...
@@ -18,3 +18,4 @@ float32 epv # Standard deviation of position vertically
float32 terrain_alt # Terrain altitude in m, WGS84
bool terrain_alt_valid # Terrain altitude estimate is valid
bool dead_reckoning # True if this position is estimated through dead-reckoning
float32 pressure_alt # Pressure altitude
This diff is collapsed.
Click to expand it.
src/modules/mavlink/mavlink_messages.cpp
+
1
−
1
View file @
f5a844d4
...
...
@@ -2602,7 +2602,7 @@ protected:
if
(
updated
)
{
mavlink_altitude_t
msg
;
msg
.
altitude_monotonic
=
global_pos
.
alt
;
msg
.
altitude_monotonic
=
global_pos
.
pressure_
alt
;
msg
.
altitude_amsl
=
global_pos
.
alt
;
msg
.
altitude_local
=
-
local_pos
.
z
;
msg
.
altitude_relative
=
home
.
alt
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment