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
40d8fa8e
Commit
40d8fa8e
authored
Oct 10, 2015
by
Lorenz Meier
Browse files
PX4 Power component: Add UAVCAN end enum button
parent
705b7be2
Changes
3
Show whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
40d8fa8e
...
...
@@ -277,9 +277,14 @@ QGCView {
}
QGCButton
{
text
:
"
Configur
e
"
text
:
"
Start
Configur
ation
"
onClicked
:
controller
.
busConfigureActuators
()
}
QGCButton
{
text
:
"
End Configuration
"
onClicked
:
controller
.
StopBusConfigureActuators
()
}
}
}
...
...
src/AutoPilotPlugins/PX4/PowerComponentController.cc
View file @
40d8fa8e
...
...
@@ -55,6 +55,12 @@ void PowerComponentController::busConfigureActuators(void)
_uas
->
startBusConfig
(
UASInterface
::
StartBusConfigActuators
);
}
void
PowerComponentController
::
stopBusConfigureActuators
(
void
)
{
disconnect
(
_uas
,
&
UASInterface
::
textMessageReceived
,
this
,
&
PowerComponentController
::
_handleUASTextMessage
);
_uas
->
startBusConfig
(
UASInterface
::
EndBusConfigActuators
);
}
void
PowerComponentController
::
_stopCalibration
(
void
)
{
disconnect
(
_uas
,
&
UASInterface
::
textMessageReceived
,
this
,
&
PowerComponentController
::
_handleUASTextMessage
);
...
...
src/AutoPilotPlugins/PX4/PowerComponentController.h
View file @
40d8fa8e
...
...
@@ -44,6 +44,7 @@ public:
Q_INVOKABLE
void
calibrateEsc
(
void
);
Q_INVOKABLE
void
busConfigureActuators
(
void
);
Q_INVOKABLE
void
stopBusConfigureActuators
(
void
);
signals:
void
oldFirmware
(
void
);
...
...
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