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
69b507a7
Commit
69b507a7
authored
Jun 20, 2015
by
Lorenz Meier
Browse files
Merge pull request #1670 from dogmaphobic/simpleT2SFix
Adding a few more speech fixes.
parents
cc3cf383
05cc4466
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/audio/QGCAudioWorker.cpp
View file @
69b507a7
...
...
@@ -213,6 +213,18 @@ QString QGCAudioWorker::_fixTextMessageForAudio(const QString& string) {
if
(
result
.
contains
(
"RC_MAP_MODE_SW"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"RC_MAP_MODE_SW"
,
"RC mode switch"
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"REJ."
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"REJ."
,
"Rejected"
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"WP"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"WP"
,
"way point"
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"CMD"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"CMD"
,
"command"
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
" id "
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
" id "
,
" eye dee "
,
Qt
::
CaseInsensitive
);
}
int
number
;
if
(
_getMillisecondString
(
string
,
match
,
number
)
&&
number
>
1000
)
{
if
(
number
<
60000
)
{
...
...
@@ -229,5 +241,6 @@ QString QGCAudioWorker::_fixTextMessageForAudio(const QString& string) {
}
result
.
replace
(
match
,
newNumber
);
}
// qDebug() << "Speech: " << result;
return
result
;
}
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