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
0482f9ee
Unverified
Commit
0482f9ee
authored
Jun 12, 2020
by
Don Gagne
Committed by
GitHub
Jun 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8833 from DonLakeFlyer/CITest
CI Test Run
parents
719cfa68
78a3e10a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
38 deletions
+8
-38
qgroundcontrol.pro
qgroundcontrol.pro
+1
-1
FactMetaData.h
src/FactSystem/FactMetaData.h
+3
-35
Vehicle.cc
src/Vehicle/Vehicle.cc
+4
-2
No files found.
qgroundcontrol.pro
View file @
0482f9ee
...
...
@@ -7,7 +7,7 @@
#
License
terms
set
in
COPYING
.
md
#
-------------------------------------------------
QMAKE_PROJECT_DEPTH
=
0
#
undocumented
qmake
flag
to
force
absolute
paths
in
make
files
QMAKE_PROJECT_DEPTH
=
0
#
undocumented
qmake
flag
to
force
absolute
paths
in
makefiles
#
These
are
disabled
until
proven
correct
DEFINES
+=
QGC_GST_TAISYNC_DISABLED
...
...
src/FactSystem/FactMetaData.h
View file @
0482f9ee
...
...
@@ -201,12 +201,7 @@ private:
void
_setAppSettingsTranslators
(
void
);
/**
* @brief Clamp a value based in the cookedMin and CookedMax values
*
* @tparam T
* @param variantValue
*/
/// Clamp a value to be within cookedMin and cookedMax
template
<
class
T
>
void
clamp
(
QVariant
&
variantValue
)
const
{
if
(
cookedMin
().
value
<
T
>
()
>
variantValue
.
value
<
T
>
())
{
...
...
@@ -216,44 +211,17 @@ private:
}
}
/**
* @brief Check if value is inside cooked limits
*
* @tparam T
* @param variantValue
*/
template
<
class
T
>
bool
isInCookedLimit
(
const
QVariant
&
variantValue
)
const
{
return
cookedMin
().
value
<
T
>
()
<
variantValue
.
value
<
T
>
()
&&
variantValue
.
value
<
T
>
()
<
cookedMax
().
value
<
T
>
();
return
cookedMin
().
value
<
T
>
()
<
=
variantValue
.
value
<
T
>
()
&&
variantValue
.
value
<
T
>
()
<=
cookedMax
().
value
<
T
>
();
}
/**
* @brief Check if value is inside raw limits
*
* @tparam T
* @param variantValue
*/
template
<
class
T
>
bool
isInRawLimit
(
const
QVariant
&
variantValue
)
const
{
return
rawMin
().
value
<
T
>
()
<=
variantValue
.
value
<
T
>
()
&&
variantValue
.
value
<
T
>
()
<
rawMax
().
value
<
T
>
();
return
rawMin
().
value
<
T
>
()
<=
variantValue
.
value
<
T
>
()
&&
variantValue
.
value
<
T
>
()
<
=
rawMax
().
value
<
T
>
();
}
/**
* @brief Check if value if over min limit
*
* @param variantValue
* @return true
* @return false
*/
bool
isInRawMinLimit
(
const
QVariant
&
variantValue
)
const
;
/**
* @brief Check if value is lower than upper limit
*
* @param variantValue
* @return true
* @return false
*/
bool
isInRawMaxLimit
(
const
QVariant
&
variantValue
)
const
;
// Built in translators
...
...
src/Vehicle/Vehicle.cc
View file @
0482f9ee
...
...
@@ -428,11 +428,13 @@ Vehicle::Vehicle(MAV_AUTOPILOT firmwareType,
,
_clockFactGroup
(
this
)
,
_distanceSensorFactGroup
(
this
)
{
_commonInit
();
// This will also set the settings based firmware/vehicle types. So it needs to happen first.
if
(
_firmwareType
==
MAV_AUTOPILOT_TRACK
)
{
trackFirmwareVehicleTypeChanges
();
}
_commonInit
();
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingCruiseSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineCruiseSpeedSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingHoverSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineHoverSpeedSettingChanged
);
...
...
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