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
d7b26227
Commit
d7b26227
authored
Jan 11, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unused formal parameter, unused local variable and a couple unreachable code changes
parent
aa4de767
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
118 additions
and
8 deletions
+118
-8
UAS.cc
src/uas/UAS.cc
+5
-0
HUD.cc
src/ui/HUD.cc
+11
-1
MainWindow.cc
src/ui/MainWindow.cc
+1
-0
PrimaryFlightDisplay.cc
src/ui/PrimaryFlightDisplay.cc
+2
-0
QGCHilConfiguration.cc
src/ui/QGCHilConfiguration.cc
+1
-1
QGCPX4VehicleConfig.cc
src/ui/QGCPX4VehicleConfig.cc
+2
-0
UASRawStatusView.cpp
src/ui/UASRawStatusView.cpp
+1
-0
AP2ConfigWidget.cc
src/ui/configuration/AP2ConfigWidget.cc
+4
-1
AccelCalibrationConfig.cc
src/ui/configuration/AccelCalibrationConfig.cc
+5
-0
AdvParameterList.cc
src/ui/configuration/AdvParameterList.cc
+3
-1
AdvancedParamConfig.cc
src/ui/configuration/AdvancedParamConfig.cc
+3
-0
AirspeedConfig.cc
src/ui/configuration/AirspeedConfig.cc
+3
-0
ApmFirmwareConfig.cc
src/ui/configuration/ApmFirmwareConfig.cc
+1
-0
ApmPlaneLevel.cc
src/ui/configuration/ApmPlaneLevel.cc
+3
-0
ArduCopterPidConfig.cc
src/ui/configuration/ArduCopterPidConfig.cc
+3
-0
ArduPlanePidConfig.cc
src/ui/configuration/ArduPlanePidConfig.cc
+3
-0
ArduRoverPidConfig.cc
src/ui/configuration/ArduRoverPidConfig.cc
+3
-0
BatteryMonitorConfig.cc
src/ui/configuration/BatteryMonitorConfig.cc
+9
-0
CameraGimbalConfig.cc
src/ui/configuration/CameraGimbalConfig.cc
+3
-0
CompassConfig.cc
src/ui/configuration/CompassConfig.cc
+3
-0
FailSafeConfig.cc
src/ui/configuration/FailSafeConfig.cc
+7
-0
FrameTypeConfig.cc
src/ui/configuration/FrameTypeConfig.cc
+3
-0
OpticalFlowConfig.cc
src/ui/configuration/OpticalFlowConfig.cc
+3
-0
ParamWidget.cc
src/ui/configuration/ParamWidget.cc
+4
-0
RadioCalibrationConfig.cc
src/ui/configuration/RadioCalibrationConfig.cc
+6
-1
SonarConfig.cc
src/ui/configuration/SonarConfig.cc
+5
-0
StandardParamConfig.cc
src/ui/configuration/StandardParamConfig.cc
+3
-0
terminalconsole.cpp
src/ui/configuration/terminalconsole.cpp
+1
-0
QGCRadioChannelDisplay.cpp
src/ui/designer/QGCRadioChannelDisplay.cpp
+2
-0
QGCToolWidget.cc
src/ui/designer/QGCToolWidget.cc
+4
-0
IncrementalPlot.h
src/ui/linechart/IncrementalPlot.h
+0
-2
UASQuickView.cc
src/ui/uas/UASQuickView.cc
+3
-0
UASQuickViewGaugeItem.cc
src/ui/uas/UASQuickViewGaugeItem.cc
+2
-0
UASQuickViewItemSelect.cc
src/ui/uas/UASQuickViewItemSelect.cc
+2
-0
UASQuickViewTextItem.cc
src/ui/uas/UASQuickViewTextItem.cc
+4
-0
UASQuickViewTextItem.h
src/ui/uas/UASQuickViewTextItem.h
+0
-1
No files found.
src/uas/UAS.cc
View file @
d7b26227
...
...
@@ -3070,6 +3070,11 @@ void UAS::sendHilGroundTruth(quint64 time_us, float roll, float pitch, float yaw
float
pitchspeed
,
float
yawspeed
,
double
lat
,
double
lon
,
double
alt
,
float
vx
,
float
vy
,
float
vz
,
float
ind_airspeed
,
float
true_airspeed
,
float
xacc
,
float
yacc
,
float
zacc
)
{
Q_UNUSED
(
time_us
);
Q_UNUSED
(
xacc
);
Q_UNUSED
(
yacc
);
Q_UNUSED
(
zacc
);
float
q
[
4
];
double
cosPhi_2
=
cos
(
double
(
roll
)
/
2.0
);
...
...
src/ui/HUD.cc
View file @
d7b26227
...
...
@@ -117,6 +117,9 @@ HUD::HUD(int width, int height, QWidget* parent)
imageRequested
(
false
),
image
(
NULL
)
{
Q_UNUSED
(
width
);
Q_UNUSED
(
height
);
// Set auto fill to false
setAutoFillBackground
(
false
);
...
...
@@ -501,11 +504,18 @@ void HUD::paintText(QString text, QColor color, float fontSize, float refX, floa
*/
void
HUD
::
setupGLView
(
float
referencePositionX
,
float
referencePositionY
,
float
referenceWidth
,
float
referenceHeight
)
{
Q_UNUSED
(
referencePositionX
);
Q_UNUSED
(
referencePositionY
);
Q_UNUSED
(
referenceWidth
);
Q_UNUSED
(
referenceHeight
);
#if 0
// code ifdef'ed out but left in to silence warnings
int pixelWidth = (int)(referenceWidth * scalingFactor);
int pixelHeight = (int)(referenceHeight * scalingFactor);
// Translate and scale the GL view in the virtual reference coordinate units on the screen
int pixelPositionX = (int)((referencePositionX * scalingFactor) + xCenterOffset);
int pixelPositionY = this->height() - (referencePositionY * scalingFactor) + yCenterOffset - pixelHeight;
#endif
}
void
HUD
::
paintRollPitchStrips
()
...
...
@@ -515,7 +525,7 @@ void HUD::paintRollPitchStrips()
void
HUD
::
paintEvent
(
QPaintEvent
*
event
)
{
Q_UNUSED
(
event
);
paintHUD
();
}
...
...
src/ui/MainWindow.cc
View file @
d7b26227
...
...
@@ -800,6 +800,7 @@ void MainWindow::loadDockWidget(const QString& name)
void
MainWindow
::
addToCentralStackedWidget
(
QWidget
*
widget
,
VIEW_SECTIONS
viewSection
,
const
QString
&
title
)
{
Q_UNUSED
(
viewSection
);
Q_UNUSED
(
title
);
Q_ASSERT
(
widget
->
objectName
().
length
()
!=
0
);
...
...
src/ui/PrimaryFlightDisplay.cc
View file @
d7b26227
...
...
@@ -606,6 +606,8 @@ void PrimaryFlightDisplay::drawPitchScale(
bool
drawNumbersRight
)
{
Q_UNUSED
(
intrusion
);
float
displayPitch
=
this
->
pitch
;
if
(
isnan
(
displayPitch
))
displayPitch
=
0
;
...
...
src/ui/QGCHilConfiguration.cc
View file @
d7b26227
...
...
@@ -48,7 +48,7 @@ QGCHilConfiguration::~QGCHilConfiguration()
void
QGCHilConfiguration
::
setVersion
(
QString
version
)
{
Q_UNUSED
(
version
);
}
void
QGCHilConfiguration
::
on_simComboBox_currentIndexChanged
(
int
index
)
...
...
src/ui/QGCPX4VehicleConfig.cc
View file @
d7b26227
...
...
@@ -355,6 +355,8 @@ void QGCPX4VehicleConfig::toggleCalibrationRC(bool enabled)
void
QGCPX4VehicleConfig
::
toggleSpektrumPairing
(
bool
enabled
)
{
Q_UNUSED
(
enabled
);
if
(
!
ui
->
dsm2RadioButton
->
isChecked
()
&&
!
ui
->
dsmxRadioButton
&&
!
ui
->
dsmx8RadioButton
)
{
// Reject
QMessageBox
warnMsgBox
;
...
...
src/ui/UASRawStatusView.cpp
View file @
d7b26227
...
...
@@ -47,6 +47,7 @@ void UASRawStatusView::valueChanged(const int uasId, const QString& name, const
}
void
UASRawStatusView
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
m_tableDirty
=
true
;
}
...
...
src/ui/configuration/AP2ConfigWidget.cc
View file @
d7b26227
...
...
@@ -25,7 +25,10 @@ void AP2ConfigWidget::activeUASSet(UASInterface *uas)
void
AP2ConfigWidget
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
Q_UNUSED
(
parameterName
);
Q_UNUSED
(
value
);
}
void
AP2ConfigWidget
::
showNullMAVErrorMessageBox
()
{
...
...
src/ui/configuration/AccelCalibrationConfig.cc
View file @
d7b26227
...
...
@@ -71,6 +71,8 @@ void AccelCalibrationConfig::calibrateButtonClicked()
}
void
AccelCalibrationConfig
::
hideEvent
(
QHideEvent
*
evt
)
{
Q_UNUSED
(
evt
);
if
(
!
m_uas
||
!
m_accelAckCount
)
{
return
;
...
...
@@ -82,6 +84,9 @@ void AccelCalibrationConfig::hideEvent(QHideEvent *evt)
}
void
AccelCalibrationConfig
::
uasTextMessageReceived
(
int
uasid
,
int
componentid
,
int
severity
,
QString
text
)
{
Q_UNUSED
(
uasid
);
Q_UNUSED
(
componentid
);
//command received: " Severity 1
//Place APM Level and press any key" severity 5
if
(
severity
==
5
)
...
...
src/ui/configuration/AdvParameterList.cc
View file @
d7b26227
...
...
@@ -25,7 +25,9 @@ void AdvParameterList::setParameterMetaData(QString name,QString humanname,QStri
void
AdvParameterList
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
!
m_paramValueMap
.
contains
(
parameterName
))
{
ui
.
tableWidget
->
setRowCount
(
ui
.
tableWidget
->
rowCount
()
+
1
);
...
...
src/ui/configuration/AdvancedParamConfig.cc
View file @
d7b26227
...
...
@@ -33,6 +33,9 @@ void AdvancedParamConfig::addCombo(QString title,QString description,QString par
}
void
AdvancedParamConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
m_paramToWidgetMap
.
contains
(
parameterName
))
{
if
(
value
.
type
()
==
QVariant
::
Double
)
...
...
src/ui/configuration/AirspeedConfig.cc
View file @
d7b26227
...
...
@@ -14,6 +14,9 @@ AirspeedConfig::~AirspeedConfig()
}
void
AirspeedConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"ARSPD_ENABLE"
)
{
if
(
value
.
toInt
()
==
0
)
...
...
src/ui/configuration/ApmFirmwareConfig.cc
View file @
d7b26227
...
...
@@ -387,6 +387,7 @@ void ApmFirmwareConfig::flashButtonClicked()
void
ApmFirmwareConfig
::
firmwareListError
(
QNetworkReply
::
NetworkError
error
)
{
Q_UNUSED
(
error
);
QNetworkReply
*
reply
=
qobject_cast
<
QNetworkReply
*>
(
sender
());
qDebug
()
<<
"Error!"
<<
reply
->
errorString
();
}
...
...
src/ui/configuration/ApmPlaneLevel.cc
View file @
d7b26227
...
...
@@ -52,6 +52,9 @@ void ApmPlaneLevel::manualCheckBoxToggled(bool checked)
}
void
ApmPlaneLevel
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"MANUAL_LEVEL"
)
{
if
(
value
.
toInt
()
==
1
)
...
...
src/ui/configuration/ArduCopterPidConfig.cc
View file @
d7b26227
...
...
@@ -139,6 +139,9 @@ ArduCopterPidConfig::~ArduCopterPidConfig()
}
void
ArduCopterPidConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
m_nameToBoxMap
.
contains
(
parameterName
))
{
m_nameToBoxMap
[
parameterName
]
->
setValue
(
value
.
toDouble
());
...
...
src/ui/configuration/ArduPlanePidConfig.cc
View file @
d7b26227
...
...
@@ -66,6 +66,9 @@ ArduPlanePidConfig::~ArduPlanePidConfig()
}
void
ArduPlanePidConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
m_nameToBoxMap
.
contains
(
parameterName
))
{
m_nameToBoxMap
[
parameterName
]
->
setValue
(
value
.
toDouble
());
...
...
src/ui/configuration/ArduRoverPidConfig.cc
View file @
d7b26227
...
...
@@ -73,6 +73,9 @@ void ArduRoverPidConfig::refreshButtonClicked()
void
ArduRoverPidConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
nameToBoxMap
.
contains
(
parameterName
))
{
nameToBoxMap
[
parameterName
]
->
setValue
(
value
.
toFloat
());
...
...
src/ui/configuration/BatteryMonitorConfig.cc
View file @
d7b26227
...
...
@@ -49,6 +49,7 @@ void BatteryMonitorConfig::activeUASSet(UASInterface *uas)
}
void
BatteryMonitorConfig
::
alertOnLowClicked
(
bool
checked
)
{
Q_UNUSED
(
checked
);
}
void
BatteryMonitorConfig
::
calcDividerSet
()
...
...
@@ -246,6 +247,11 @@ BatteryMonitorConfig::~BatteryMonitorConfig()
}
void
BatteryMonitorConfig
::
batteryChanged
(
UASInterface
*
uas
,
double
voltage
,
double
current
,
double
percent
,
int
seconds
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
current
);
Q_UNUSED
(
percent
);
Q_UNUSED
(
seconds
);
ui
.
calcVoltsLineEdit
->
setText
(
QString
::
number
(
voltage
,
'f'
,
2
));
if
(
ui
.
measuredVoltsLineEdit
->
text
()
==
""
)
{
...
...
@@ -255,6 +261,9 @@ void BatteryMonitorConfig::batteryChanged(UASInterface* uas, double voltage, dou
void
BatteryMonitorConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"VOLT_DIVIDER"
)
{
ui
.
calcDividerLineEdit
->
setText
(
QString
::
number
(
value
.
toFloat
(),
'f'
,
4
));
...
...
src/ui/configuration/CameraGimbalConfig.cc
View file @
d7b26227
...
...
@@ -265,6 +265,9 @@ CameraGimbalConfig::~CameraGimbalConfig()
void
CameraGimbalConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"MNT_ANGMIN_TIL"
)
//TILT
{
ui
.
tiltAngleMinSpinBox
->
setValue
(
value
.
toInt
()
/
100.0
);
...
...
src/ui/configuration/CompassConfig.cc
View file @
d7b26227
...
...
@@ -46,6 +46,9 @@ CompassConfig::~CompassConfig()
}
void
CompassConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"MAG_ENABLE"
)
{
if
(
value
.
toInt
()
==
0
)
...
...
src/ui/configuration/FailSafeConfig.cc
View file @
d7b26227
...
...
@@ -278,6 +278,9 @@ void FailSafeConfig::activeUASSet(UASInterface *uas)
}
void
FailSafeConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
//Arducopter
if
(
parameterName
==
"FS_THR_ENABLE"
)
{
...
...
@@ -414,6 +417,8 @@ void FailSafeConfig::remoteControlChannelRawChanges(int chan,float value)
}
void
FailSafeConfig
::
hilActuatorsChanged
(
uint64_t
time
,
float
act1
,
float
act2
,
float
act3
,
float
act4
,
float
act5
,
float
act6
,
float
act7
,
float
act8
)
{
Q_UNUSED
(
time
);
ui
.
radio1Out
->
setValue
(
act1
);
ui
.
radio2Out
->
setValue
(
act2
);
ui
.
radio3Out
->
setValue
(
act3
);
...
...
@@ -425,6 +430,8 @@ void FailSafeConfig::hilActuatorsChanged(uint64_t time, float act1, float act2,
}
void
FailSafeConfig
::
gpsStatusChanged
(
UASInterface
*
uas
,
int
fixtype
)
{
Q_UNUSED
(
uas
);
if
(
fixtype
==
0
||
fixtype
==
1
)
{
ui
.
gpsLabel
->
setText
(
"<h1>None</h1>"
);
...
...
src/ui/configuration/FrameTypeConfig.cc
View file @
d7b26227
...
...
@@ -52,6 +52,9 @@ FrameTypeConfig::~FrameTypeConfig()
}
void
FrameTypeConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"FRAME"
)
{
ui
.
xRadioButton
->
setEnabled
(
true
);
...
...
src/ui/configuration/OpticalFlowConfig.cc
View file @
d7b26227
...
...
@@ -13,6 +13,9 @@ OpticalFlowConfig::~OpticalFlowConfig()
}
void
OpticalFlowConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"FLOW_ENABLE"
)
{
if
(
value
.
toInt
()
==
0
)
...
...
src/ui/configuration/ParamWidget.cc
View file @
d7b26227
...
...
@@ -48,6 +48,8 @@ ParamWidget::~ParamWidget()
void
ParamWidget
::
setupInt
(
QString
title
,
QString
description
,
int
value
,
int
min
,
int
max
)
{
Q_UNUSED
(
value
);
type
=
INT
;
ui
.
titleLabel
->
setText
(
"<h3>"
+
title
+
"</h3>"
);
ui
.
descriptionLabel
->
setText
(
description
);
...
...
@@ -71,6 +73,8 @@ void ParamWidget::setupInt(QString title,QString description,int value,int min,i
void
ParamWidget
::
setupDouble
(
QString
title
,
QString
description
,
double
value
,
double
min
,
double
max
)
{
Q_UNUSED
(
value
);
type
=
DOUBLE
;
ui
.
titleLabel
->
setText
(
"<h3>"
+
title
+
"</h3>"
);
ui
.
descriptionLabel
->
setText
(
description
);
...
...
src/ui/configuration/RadioCalibrationConfig.cc
View file @
d7b26227
...
...
@@ -119,7 +119,10 @@ void RadioCalibrationConfig::remoteControlChannelRawChanged(int chan,float val)
void
RadioCalibrationConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
Q_UNUSED
(
parameterName
);
Q_UNUSED
(
value
);
}
void
RadioCalibrationConfig
::
guiUpdateTimerTick
()
{
...
...
@@ -153,10 +156,12 @@ void RadioCalibrationConfig::guiUpdateTimerTick()
}
void
RadioCalibrationConfig
::
showEvent
(
QShowEvent
*
event
)
{
Q_UNUSED
(
event
);
guiUpdateTimer
->
start
(
100
);
}
void
RadioCalibrationConfig
::
hideEvent
(
QHideEvent
*
event
)
{
Q_UNUSED
(
event
);
guiUpdateTimer
->
stop
();
}
void
RadioCalibrationConfig
::
calibrateButtonClicked
()
...
...
src/ui/configuration/SonarConfig.cc
View file @
d7b26227
...
...
@@ -32,6 +32,8 @@ void SonarConfig::checkBoxToggled(bool enabled)
}
void
SonarConfig
::
sonarTypeChanged
(
int
index
)
{
Q_UNUSED
(
index
);
if
(
!
m_uas
)
{
QMessageBox
::
information
(
0
,
tr
(
"Error"
),
tr
(
"Please connect to a MAV before attempting to set configuration"
));
...
...
@@ -42,6 +44,9 @@ void SonarConfig::sonarTypeChanged(int index)
void
SonarConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
parameterName
==
"SONAR_ENABLE"
)
{
if
(
value
.
toInt
()
==
0
)
...
...
src/ui/configuration/StandardParamConfig.cc
View file @
d7b26227
...
...
@@ -31,6 +31,9 @@ void StandardParamConfig::addCombo(QString title,QString description,QString par
}
void
StandardParamConfig
::
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
if
(
paramToWidgetMap
.
contains
(
parameterName
))
{
if
(
value
.
type
()
==
QVariant
::
Double
)
...
...
src/ui/configuration/terminalconsole.cpp
View file @
d7b26227
...
...
@@ -257,6 +257,7 @@ void TerminalConsole::setBaudRate(int index)
void
TerminalConsole
::
setLink
(
int
index
)
{
Q_UNUSED
(
index
);
m_settings
.
name
=
ui
->
linkComboBox
->
currentText
();
qDebug
()
<<
"Changed Link to:"
<<
m_settings
.
name
;
...
...
src/ui/designer/QGCRadioChannelDisplay.cpp
View file @
d7b26227
...
...
@@ -34,6 +34,8 @@ void QGCRadioChannelDisplay::setOrientation(Qt::Orientation orient)
void
QGCRadioChannelDisplay
::
paintEvent
(
QPaintEvent
*
event
)
{
Q_UNUSED
(
event
);
//Values range from 0-3000.
//1500 is the middle, static servo value.
QPainter
painter
(
this
);
...
...
src/ui/designer/QGCToolWidget.cc
View file @
d7b26227
...
...
@@ -192,6 +192,10 @@ QList<QString> QGCToolWidget::getParamList()
}
void
QGCToolWidget
::
setParameterValue
(
int
uas
,
int
component
,
QString
parameterName
,
const
QVariant
value
)
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
component
);
Q_UNUSED
(
value
);
QString
widgetName
=
getTitle
();
int
size
=
settingsMap
[
"count"
].
toInt
();
if
(
paramToItemMap
.
contains
(
parameterName
))
...
...
src/ui/linechart/IncrementalPlot.h
View file @
d7b26227
...
...
@@ -61,8 +61,6 @@ private:
int
d_count
;
QwtArray
<
double
>
d_x
;
QwtArray
<
double
>
d_y
;
QTimer
*
d_timer
;
int
d_timerCount
;
};
/**
...
...
src/ui/uas/UASQuickView.cc
View file @
d7b26227
...
...
@@ -190,6 +190,7 @@ void UASQuickView::sortItems(int columncount)
}
void
UASQuickView
::
resizeEvent
(
QResizeEvent
*
evt
)
{
Q_UNUSED
(
evt
);
recalculateItemTextSizing
();
}
void
UASQuickView
::
recalculateItemTextSizing
()
...
...
@@ -273,6 +274,8 @@ void UASQuickView::valueChanged(const int uasId, const QString& name, const QStr
{
Q_UNUSED
(
uasId
);
Q_UNUSED
(
unit
);
Q_UNUSED
(
msec
);
bool
ok
;
double
value
=
variant
.
toDouble
(
&
ok
);
QMetaType
::
Type
metaType
=
static_cast
<
QMetaType
::
Type
>
(
variant
.
type
());
...
...
src/ui/uas/UASQuickViewGaugeItem.cc
View file @
d7b26227
...
...
@@ -15,6 +15,8 @@ void UASQuickViewGaugeItem::setTitle(QString title)
}
void
UASQuickViewGaugeItem
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
QFont
valuefont
=
valueLabel
->
font
();
QFont
titlefont
=
titleLabel
->
font
();
valuefont
.
setPixelSize
(
this
->
height
()
/
2.0
);
...
...
src/ui/uas/UASQuickViewItemSelect.cc
View file @
d7b26227
...
...
@@ -59,6 +59,8 @@ void UASQuickViewItemSelect::addItem(QString item,bool enabled)
}
void
UASQuickViewItemSelect
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
/*for (int i=0;i<m_checkBoxList.size();i++)
{
ui.gridLayout->removeWidget(m_checkBoxList[i]);
...
...
src/ui/uas/UASQuickViewTextItem.cc
View file @
d7b26227
...
...
@@ -119,7 +119,10 @@ void UASQuickViewTextItem::setValuePixelSize(int size)
void
UASQuickViewTextItem
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
return
;
#if 0
// code ifdef'ed out to silence warnings
QFont valuefont = valueLabel->font();
QFont titlefont = titleLabel->font();
valuefont.setPixelSize(this->height());
...
...
@@ -158,4 +161,5 @@ titlefont.setPixelSize(valuefont.pixelSize() / 2.0);
valueLabel->setFont(valuefont);
titleLabel->setFont(titlefont);
update();
#endif
}
src/ui/uas/UASQuickViewTextItem.h
View file @
d7b26227
...
...
@@ -17,7 +17,6 @@ protected:
private:
QLabel
*
titleLabel
;
QLabel
*
valueLabel
;
QSpacerItem
*
spacerItem
;
};
#endif // UASQUICKVIEWTEXTITEM_H
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