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
0c5919d3
Unverified
Commit
0c5919d3
authored
Mar 12, 2019
by
Gus Grubba
Committed by
GitHub
Mar 12, 2019
Browse files
Merge pull request #7284 from stefandunca/pr-fix_mavlink_console
Fix mavlink console
parents
291e0584
2d050eb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/AnalyzeView/AnalyzeView.qml
View file @
0c5919d3
...
@@ -42,10 +42,6 @@ Rectangle {
...
@@ -42,10 +42,6 @@ Rectangle {
LogDownloadController
{
LogDownloadController
{
id
:
logController
id
:
logController
}
MavlinkConsoleController
{
id
:
conController
}
}
QGCFlickable
{
QGCFlickable
{
...
...
src/AnalyzeView/MavlinkConsolePage.qml
View file @
0c5919d3
...
@@ -28,6 +28,10 @@ AnalyzePage {
...
@@ -28,6 +28,10 @@ AnalyzePage {
property
bool
isLoaded
:
false
property
bool
isLoaded
:
false
MavlinkConsoleController
{
id
:
conController
}
Component
{
Component
{
id
:
pageComponent
id
:
pageComponent
...
@@ -90,6 +94,7 @@ AnalyzePage {
...
@@ -90,6 +94,7 @@ AnalyzePage {
id
:
command
id
:
command
Layout.fillWidth
:
true
Layout.fillWidth
:
true
placeholderText
:
"
Enter Commands here...
"
placeholderText
:
"
Enter Commands here...
"
inputMethodHints
:
Qt
.
ImhNoAutoUppercase
function
sendCommand
()
{
function
sendCommand
()
{
conController
.
sendCommand
(
text
)
conController
.
sendCommand
(
text
)
...
@@ -98,10 +103,10 @@ AnalyzePage {
...
@@ -98,10 +103,10 @@ AnalyzePage {
onAccepted
:
sendCommand
()
onAccepted
:
sendCommand
()
Keys.onPressed
:
{
Keys.onPressed
:
{
if
(
event
.
key
==
Qt
.
Key_Up
)
{
if
(
event
.
key
==
=
Qt
.
Key_Up
)
{
text
=
conController
.
historyUp
(
text
);
text
=
conController
.
historyUp
(
text
);
event
.
accepted
=
true
;
event
.
accepted
=
true
;
}
else
if
(
event
.
key
==
Qt
.
Key_Down
)
{
}
else
if
(
event
.
key
==
=
Qt
.
Key_Down
)
{
text
=
conController
.
historyDown
(
text
);
text
=
conController
.
historyDown
(
text
);
event
.
accepted
=
true
;
event
.
accepted
=
true
;
}
}
...
...
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