Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f48b6c3b
Commit
f48b6c3b
authored
Feb 14, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 2 kPA offset to pressure measurements to get HIL closer to real conditions
parent
b7edee79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
MAVLinkSimulationLink.h
src/comm/MAVLinkSimulationLink.h
+2
-1
QGCXPlaneLink.cc
src/comm/QGCXPlaneLink.cc
+2
-2
No files found.
src/comm/MAVLinkSimulationLink.h
View file @
f48b6c3b
...
...
@@ -123,9 +123,10 @@ protected:
void
enqueue
(
uint8_t
*
stream
,
uint8_t
*
index
,
mavlink_message_t
*
msg
);
static
const
u
int8_t
systemId
=
220
;
static
const
int8_t
systemId
=
220
;
static
const
uint8_t
componentId
=
200
;
static
const
uint16_t
version
=
1000
;
static
const
unsigned
int
barometerOffsetkPa
=
2
;
signals:
void
valueChanged
(
int
uasId
,
QString
curve
,
double
value
,
quint64
usec
);
...
...
src/comm/QGCXPlaneLink.cc
View file @
f48b6c3b
...
...
@@ -667,8 +667,8 @@ void QGCXPlaneLink::readBytes()
/* current pressure at MSL in kPa */
double
p1
=
1013.25
/
10.0
;
/* measured pressure in hPa */
double
p
=
abs_pressure
/
10.0
;
/* measured pressure in hPa
, plus offset to simulate weather effects / offsets
*/
double
p
=
abs_pressure
/
10.0
+
barometerOffsetkPa
;
/*
* Solve:
...
...
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