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
c284d8ac
Commit
c284d8ac
authored
Dec 11, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the indicator in the proper order
parent
1ef10a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+8
-17
No files found.
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
c284d8ac
...
...
@@ -271,18 +271,15 @@ void FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordina
qgcApp
()
->
showMessage
(
guided_mode_not_supported_by_vehicle
);
}
void
FirmwarePlugin
::
guidedModeChangeAltitude
(
Vehicle
*
vehicle
,
double
altitudeRel
)
void
FirmwarePlugin
::
guidedModeChangeAltitude
(
Vehicle
*
,
double
)
{
// Not supported by generic vehicle
Q_UNUSED
(
vehicle
);
Q_UNUSED
(
altitudeRel
);
qgcApp
()
->
showMessage
(
guided_mode_not_supported_by_vehicle
);
}
void
FirmwarePlugin
::
startMission
(
Vehicle
*
vehicle
)
void
FirmwarePlugin
::
startMission
(
Vehicle
*
)
{
// Not supported by generic vehicle
Q_UNUSED
(
vehicle
);
qgcApp
()
->
showMessage
(
guided_mode_not_supported_by_vehicle
);
}
...
...
@@ -293,31 +290,27 @@ const FirmwarePlugin::remapParamNameMajorVersionMap_t& FirmwarePlugin::paramName
return
remap
;
}
int
FirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
int
FirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
)
const
{
Q_UNUSED
(
majorVersionNumber
);
return
0
;
}
QString
FirmwarePlugin
::
vehicleImageOpaque
(
const
Vehicle
*
vehicle
)
const
QString
FirmwarePlugin
::
vehicleImageOpaque
(
const
Vehicle
*
)
const
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
"/qmlimages/vehicleArrowOpaque.svg"
);
}
QString
FirmwarePlugin
::
vehicleImageOutline
(
const
Vehicle
*
vehicle
)
const
QString
FirmwarePlugin
::
vehicleImageOutline
(
const
Vehicle
*
)
const
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
"/qmlimages/vehicleArrowOutline.svg"
);
}
QString
FirmwarePlugin
::
vehicleImageCompass
(
const
Vehicle
*
vehicle
)
const
QString
FirmwarePlugin
::
vehicleImageCompass
(
const
Vehicle
*
)
const
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
"/qmlimages/compassInstrumentArrow.svg"
);
}
const
QVariantList
&
FirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
vehicle
)
const
QVariantList
&
FirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
)
{
//-- Default list of indicators for all vehicles.
if
(
_toolBarIndicatorList
.
size
()
==
0
)
{
...
...
@@ -328,15 +321,13 @@ const QVariantList &FirmwarePlugin::toolBarIndicators(const Vehicle* vehicle)
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/RCRSSIIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/BatteryIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/GPSRTKIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ROIIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ArmedIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ModeIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/VTOLModeIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/MultiVehicleSelector.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/LinkIndicator.qml"
)),
});
if
(
vehicle
->
roiModeSupported
())
{
_toolBarIndicatorList
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ROIIndicator.qml"
)));
}
}
return
_toolBarIndicatorList
;
}
...
...
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