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
25577109
Commit
25577109
authored
Mar 14, 2018
by
Gus Grubba
Browse files
Merge branch 'master' of
https://github.com/mavlink/qgroundcontrol
into firmwareUpgrade
parents
fa21b6a4
e7914214
Changes
5
Hide whitespace changes
Inline
Side-by-side
.appveyor.yml
View file @
25577109
...
...
@@ -15,7 +15,7 @@ environment:
install
:
-
git submodule update --init --recursive
-
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
-
set PATH=C:\Qt\Tools\QtCreator\bin;C:\Qt\5.9.
3
\msvc2015\bin;%PATH%
-
set PATH=C:\Qt\Tools\QtCreator\bin;C:\Qt\5.9.
4
\msvc2015\bin;%PATH%
-
mkdir %LOCALAPPDATA%\QtProject && copy test\qtlogging.ini %LOCALAPPDATA%\QtProject\
-
ps
:
|
Write-Host "Installing GStreamer..." -ForegroundColor Cyan
...
...
@@ -35,7 +35,7 @@ install:
Write-Host "Installed" -ForegroundColor Green
build_script
:
-
mkdir %SHADOW_BUILD_DIR% && cd %SHADOW_BUILD_DIR% && C:\Qt\5.9.
3
\msvc2015\bin\qmake -r CONFIG-=debug_and_release CONFIG+=%CONFIG% CONFIG+=WarningsAsErrorsOn %APPVEYOR_BUILD_FOLDER%\qgroundcontrol.pro
-
mkdir %SHADOW_BUILD_DIR% && cd %SHADOW_BUILD_DIR% && C:\Qt\5.9.
4
\msvc2015\bin\qmake -r CONFIG-=debug_and_release CONFIG+=%CONFIG% CONFIG+=WarningsAsErrorsOn %APPVEYOR_BUILD_FOLDER%\qgroundcontrol.pro
-
cd %SHADOW_BUILD_DIR% && jom
-
if "%CONFIG%" EQU "installer" ( copy %SHADOW_BUILD_DIR%\release\QGroundControl-installer.exe %APPVEYOR_BUILD_FOLDER%\QGroundControl-installer.exe )
# Generate the source server information to embed in the PDB
...
...
src/Joystick/Joystick.cc
View file @
25577109
...
...
@@ -32,6 +32,11 @@ const char* Joystick::_roverTXModeSettingsKey = "TXMode_Rover";
const
char
*
Joystick
::
_vtolTXModeSettingsKey
=
"TXMode_VTOL"
;
const
char
*
Joystick
::
_submarineTXModeSettingsKey
=
"TXMode_Submarine"
;
const
char
*
Joystick
::
_buttonActionArm
=
QT_TR_NOOP
(
"Arm"
);
const
char
*
Joystick
::
_buttonActionDisarm
=
QT_TR_NOOP
(
"Disarm"
);
const
char
*
Joystick
::
_buttonActionVTOLFixedWing
=
QT_TR_NOOP
(
"VTOL: Fixed Wing"
);
const
char
*
Joystick
::
_buttonActionVTOLMultiRotor
=
QT_TR_NOOP
(
"VTOL: Multi-Rotor"
);
const
char
*
Joystick
::
_rgFunctionSettingsKey
[
Joystick
::
maxFunction
]
=
{
"RollAxis"
,
"PitchAxis"
,
...
...
@@ -84,6 +89,10 @@ Joystick::Joystick(const QString& name, int axisCount, int buttonCount, int hatC
Joystick
::~
Joystick
()
{
// Crash out of the thread if it is still running
terminate
();
wait
();
delete
[]
_rgAxisValues
;
delete
[]
_rgCalibration
;
delete
[]
_rgButtonValues
;
...
...
@@ -638,11 +647,12 @@ QStringList Joystick::actions(void)
{
QStringList
list
;
list
<<
"
Arm
"
<<
"
Disarm
"
;
list
<<
_buttonAction
Arm
<<
_buttonAction
Disarm
;
if
(
_activeVehicle
)
{
list
<<
_activeVehicle
->
flightModes
();
}
list
<<
_buttonActionVTOLFixedWing
<<
_buttonActionVTOLMultiRotor
;
return
list
;
}
...
...
@@ -787,10 +797,14 @@ void Joystick::_buttonAction(const QString& action)
return
;
}
if
(
action
==
"
Arm
"
)
{
if
(
action
==
_buttonAction
Arm
)
{
_activeVehicle
->
setArmed
(
true
);
}
else
if
(
action
==
"
Disarm
"
)
{
}
else
if
(
action
==
_buttonAction
Disarm
)
{
_activeVehicle
->
setArmed
(
false
);
}
else
if
(
action
==
_buttonActionVTOLFixedWing
)
{
_activeVehicle
->
setVtolInFwdFlight
(
true
);
}
else
if
(
action
==
_buttonActionVTOLMultiRotor
)
{
_activeVehicle
->
setVtolInFwdFlight
(
false
);
}
else
if
(
_activeVehicle
->
flightModes
().
contains
(
action
))
{
_activeVehicle
->
setFlightMode
(
action
);
}
else
{
...
...
src/Joystick/Joystick.h
View file @
25577109
...
...
@@ -236,6 +236,11 @@ private:
static
const
char
*
_vtolTXModeSettingsKey
;
static
const
char
*
_submarineTXModeSettingsKey
;
static
const
char
*
_buttonActionArm
;
static
const
char
*
_buttonActionDisarm
;
static
const
char
*
_buttonActionVTOLFixedWing
;
static
const
char
*
_buttonActionVTOLMultiRotor
;
private
slots
:
void
_activeVehicleChanged
(
Vehicle
*
activeVehicle
);
};
...
...
src/QmlControls/QGCButton.qml
View file @
25577109
...
...
@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
ScreenTools
1.0
Button
{
activeFocusOnPress
:
true
property
bool
primary
:
false
///< primary button for a group of buttons
property
real
pointSize
:
ScreenTools
.
defaultFontPointSize
///< Point size for button text
...
...
src/QmlControls/QGCCheckBox.qml
View file @
25577109
...
...
@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
ScreenTools
1.0
CheckBox
{
activeFocusOnPress
:
true
property
var
__qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
style
:
CheckBoxStyle
{
...
...
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