Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
cb1e2d8c
Commit
cb1e2d8c
authored
May 12, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol into thread_test
parents
9e76f9bb
f5ef31df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
UASUnitTest.cc
src/qgcunittest/UASUnitTest.cc
+7
-2
QGCPX4VehicleConfig.cc
src/ui/QGCPX4VehicleConfig.cc
+6
-6
QGCPX4AirframeConfig.cc
src/ui/px4_configuration/QGCPX4AirframeConfig.cc
+1
-0
No files found.
src/qgcunittest/UASUnitTest.cc
View file @
cb1e2d8c
...
...
@@ -73,15 +73,20 @@ void UASUnitTest::getCommunicationStatus_test()
void
UASUnitTest
::
filterVoltage_test
()
{
float
verificar
=
uas
->
filterVoltage
(
0.4
f
);
// Verify that upon construction the Comm status is disconnected
QCOMPARE
(
verificar
,
8.52
f
);
// We allow the voltage returned to be within a small delta
const
float
allowedDelta
=
0.05
f
;
const
float
desiredVoltage
=
7.36
f
;
QVERIFY
(
verificar
>
(
desiredVoltage
-
allowedDelta
)
&&
verificar
<
(
desiredVoltage
+
allowedDelta
));
}
void
UASUnitTest
::
getAutopilotType_test
()
{
int
type
=
uas
->
getAutopilotType
();
// Verify that upon construction the autopilot is set to -1
QCOMPARE
(
type
,
-
1
);
}
void
UASUnitTest
::
setAutopilotType_test
()
{
uas
->
setAutopilotType
(
2
);
...
...
src/ui/QGCPX4VehicleConfig.cc
View file @
cb1e2d8c
...
...
@@ -492,8 +492,8 @@ void QGCPX4VehicleConfig::detectChannelInversion(int aert_index)
instructions
<<
"YAW: Move stick left"
;
instructions
<<
"THROTTLE: Move stick down"
;
instructions
<<
"MODE SWITCH: Push down / towards you"
;
instructions
<<
"
ASSISTED
SWITCH: Push down / towards you"
;
instructions
<<
"
MISSION
SWITCH: Push down / towards you"
;
instructions
<<
"
POSITION CONTROL
SWITCH: Push down / towards you"
;
instructions
<<
"
LOITER
SWITCH: Push down / towards you"
;
instructions
<<
"RETURN SWITCH: Push down / towards you"
;
instructions
<<
"FLAPS: Push down / towards you or turn dial to the leftmost position"
;
instructions
<<
"AUX1: Push down / towards you or turn dial to the leftmost position"
;
...
...
@@ -1315,8 +1315,8 @@ void QGCPX4VehicleConfig::writeCalibrationRC()
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_YAW"
,
(
int32_t
)(
rcMapping
[
2
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_THROTTLE"
,
(
int32_t
)(
rcMapping
[
3
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_MODE_SW"
,
(
int32_t
)(
rcMapping
[
4
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_
ASSIST
_SW"
,
(
int32_t
)(
rcMapping
[
5
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_
MISSIO
_SW"
,
(
int32_t
)(
rcMapping
[
6
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_
POSCTL
_SW"
,
(
int32_t
)(
rcMapping
[
5
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_
LOITER
_SW"
,
(
int32_t
)(
rcMapping
[
6
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_RETURN_SW"
,
(
int32_t
)(
rcMapping
[
7
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_FLAPS"
,
(
int32_t
)(
rcMapping
[
8
]
+
1
));
paramMgr
->
setPendingParam
(
0
,
"RC_MAP_AUX1"
,
(
int32_t
)(
rcMapping
[
9
]
+
1
));
...
...
@@ -1690,12 +1690,12 @@ void QGCPX4VehicleConfig::handleRcParameterChange(QString parameterName, QVarian
ui
->
modeSpinBox
->
setValue
(
rcMapping
[
4
]
+
1
);
ui
->
modeSpinBox
->
setEnabled
(
true
);
}
else
if
(
parameterName
.
startsWith
(
"RC_MAP_
ASSIST
_SW"
))
{
else
if
(
parameterName
.
startsWith
(
"RC_MAP_
POSCTL
_SW"
))
{
setChannelToFunctionMapping
(
5
,
intValue
);
ui
->
assistSwSpinBox
->
setValue
(
rcMapping
[
5
]
+
1
);
ui
->
assistSwSpinBox
->
setEnabled
(
true
);
}
else
if
(
parameterName
.
startsWith
(
"RC_MAP_
MISSIO
_SW"
))
{
else
if
(
parameterName
.
startsWith
(
"RC_MAP_
LOITER
_SW"
))
{
setChannelToFunctionMapping
(
6
,
intValue
);
ui
->
missionSwSpinBox
->
setValue
(
rcMapping
[
6
]
+
1
);
ui
->
missionSwSpinBox
->
setEnabled
(
true
);
...
...
src/ui/px4_configuration/QGCPX4AirframeConfig.cc
View file @
cb1e2d8c
...
...
@@ -99,6 +99,7 @@ QGCPX4AirframeConfig::QGCPX4AirframeConfig(QWidget *parent) :
ui
->
hComboBox
->
addItem
(
tr
(
"3DR Iris"
),
10016
);
ui
->
hComboBox
->
addItem
(
tr
(
"TBS Discovery"
),
10015
);
ui
->
hComboBox
->
addItem
(
tr
(
"SteadiDrone QU4D"
),
10017
);
connect
(
ui
->
hPushButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
hSelected
()));
connect
(
ui
->
hComboBox
,
SIGNAL
(
activated
(
int
)),
this
,
SLOT
(
hSelected
(
int
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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