Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
39eabe5f
Commit
39eabe5f
authored
Jan 04, 2011
by
Bryan Godbolt
Browse files
fixed yaw offset
parent
df9f8d8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/HUD.cc
View file @
39eabe5f
...
...
@@ -721,7 +721,8 @@ void HUD::paintHUD()
painter
.
drawRoundedRect
(
compassRect
,
2
,
2
);
QString
yawAngle
;
const
float
yawDeg
=
((
values
.
value
(
"yaw"
,
0.0
f
)
/
M_PI
)
*
180.0
f
)
+
180.
f
;
// const float yawDeg = ((values.value("yaw", 0.0f)/M_PI)*180.0f)+180.f;
const
float
yawDeg
=
((
values
.
value
(
"yaw"
,
0.0
f
)
/
M_PI
)
*
180.0
f
);
//qDebug() << "YAW: " << yawDeg;
yawAngle
.
sprintf
(
"%03d"
,
(
int
)
yawDeg
);
paintText
(
yawAngle
,
defaultColor
,
3.5
f
,
-
3.7
f
,
compassY
+
0.9
f
,
&
painter
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment