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
faaa44d9
Commit
faaa44d9
authored
Mar 30, 2018
by
nanthony21
Browse files
Fixed an apparent bug that prevented the checkbox from accurately
representing the active state of the joystick after calibration
parent
de17dbb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VehicleSetup/JoystickConfig.qml
View file @
faaa44d9
...
...
@@ -366,8 +366,16 @@ SetupPage {
id
:
enabledCheckBox
enabled
:
_activeJoystick
?
_activeJoystick
.
calibrated
:
false
text
:
_activeJoystick
?
_activeJoystick
.
calibrated
?
qsTr
(
"
Enable joystick input
"
)
:
qsTr
(
"
Enable not allowed (Calibrate First)
"
)
:
""
checked
:
_activeVehicle
.
joystickEnabled
onClicked
:
_activeVehicle
.
joystickEnabled
=
checked
Component.onCompleted
:
checked
=
_activeVehicle
.
joystickEnabled
Connections
{
target
:
_activeVehicle
onJoystickEnabledChanged
:
{
enabledCheckBox
.
checked
=
_activeVehicle
.
joystickEnabled
}
}
Connections
{
target
:
joystickManager
...
...
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