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
c868a9f7
Commit
c868a9f7
authored
Jul 27, 2011
by
LM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented out a lot of debug output, silencing the debug console mostly
parent
bfd33e10
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
30 deletions
+34
-30
Waypoint.cc
src/Waypoint.cc
+2
-2
SerialLink.cc
src/comm/SerialLink.cc
+3
-3
UDPLink.cc
src/comm/UDPLink.cc
+3
-3
JoystickInput.cc
src/input/JoystickInput.cc
+3
-3
tilecachequeue.cpp
src/libs/opmapcontrol/src/core/tilecachequeue.cpp
+4
-0
MAV2DIcon.cc
src/ui/map/MAV2DIcon.cc
+5
-5
QGCMapWidget.cc
src/ui/map/QGCMapWidget.cc
+4
-4
Waypoint2DIcon.cc
src/ui/map/Waypoint2DIcon.cc
+4
-4
UASView.cc
src/ui/uas/UASView.cc
+6
-6
No files found.
src/Waypoint.cc
View file @
c868a9f7
...
...
@@ -221,8 +221,8 @@ void Waypoint::setAcceptanceRadius(double radius)
void
Waypoint
::
setParam1
(
double
param1
)
{
qDebug
()
<<
"SENDER:"
<<
QObject
::
sender
();
qDebug
()
<<
"PARAM1 SET REQ:"
<<
param1
;
//
qDebug() << "SENDER:" << QObject::sender();
//
qDebug() << "PARAM1 SET REQ:" << param1;
if
(
this
->
param1
!=
param1
)
{
this
->
param1
=
param1
;
emit
changed
(
this
);
...
...
src/comm/SerialLink.cc
View file @
c868a9f7
...
...
@@ -300,7 +300,7 @@ bool SerialLink::hardwareConnect()
emit
connected
(
true
);
}
qDebug
()
<<
"CONNECTING LINK: "
<<
__FILE__
<<
__LINE__
<<
"with settings"
<<
port
->
portName
()
<<
getBaudRate
()
<<
getDataBits
()
<<
getParityType
()
<<
getStopBits
();
//
qDebug() << "CONNECTING LINK: " << __FILE__ << __LINE__ << "with settings" << port->portName() << getBaudRate() << getDataBits() << getParityType() << getStopBits();
writeSettings
();
...
...
@@ -627,7 +627,7 @@ bool SerialLink::setBaudRateString(const QString& rate)
bool
SerialLink
::
setBaudRate
(
int
rate
)
{
qDebug
()
<<
"BAUD RATE:"
<<
rate
;
//
qDebug() << "BAUD RATE:" << rate;
bool
reconnect
=
false
;
bool
accepted
=
true
;
// This is changed if none of the data rates matches
...
...
@@ -796,7 +796,7 @@ bool SerialLink::setParityType(int parity)
bool
SerialLink
::
setDataBits
(
int
dataBits
)
{
qDebug
()
<<
"Setting"
<<
dataBits
<<
"data bits"
;
//
qDebug() << "Setting" << dataBits << "data bits";
bool
reconnect
=
false
;
if
(
isConnected
())
reconnect
=
true
;
bool
accepted
=
true
;
...
...
src/comm/UDPLink.cc
View file @
c868a9f7
...
...
@@ -85,9 +85,9 @@ void UDPLink::setPort(int port)
*/
void
UDPLink
::
addHost
(
const
QString
&
host
)
{
qDebug
()
<<
"UDP:"
<<
"ADDING HOST:"
<<
host
;
//
qDebug() << "UDP:" << "ADDING HOST:" << host;
if
(
host
.
contains
(
":"
))
{
qDebug
()
<<
"HOST: "
<<
host
.
split
(
":"
).
first
();
//
qDebug() << "HOST: " << host.split(":").first();
QHostInfo
info
=
QHostInfo
::
fromName
(
host
.
split
(
":"
).
first
());
if
(
info
.
error
()
==
QHostInfo
::
NoError
)
{
...
...
@@ -103,7 +103,7 @@ void UDPLink::addHost(const QString& host)
}
}
hosts
.
append
(
address
);
qDebug
()
<<
"Address:"
<<
address
.
toString
();
//
qDebug() << "Address:" << address.toString();
// Set port according to user input
ports
.
append
(
host
.
split
(
":"
).
last
().
toInt
());
}
...
...
src/input/JoystickInput.cc
View file @
c868a9f7
...
...
@@ -143,7 +143,7 @@ void JoystickInput::run()
switch
(
event
.
type
)
{
case
SDL_KEYDOWN
:
/* handle keyboard stuff here */
qDebug
()
<<
"KEY PRESSED!"
;
//
qDebug() << "KEY PRESSED!";
break
;
case
SDL_QUIT
:
...
...
@@ -153,7 +153,7 @@ void JoystickInput::run()
case
SDL_JOYBUTTONDOWN
:
/* Handle Joystick Button Presses */
if
(
event
.
jbutton
.
button
==
0
)
{
qDebug
()
<<
"BUTTON PRESSED!"
;
//
qDebug() << "BUTTON PRESSED!";
}
break
;
...
...
@@ -170,7 +170,7 @@ void JoystickInput::run()
break
;
default:
qDebug
()
<<
"SDL event occured"
;
//
qDebug() << "SDL event occured";
break
;
}
}
...
...
src/libs/opmapcontrol/src/core/tilecachequeue.cpp
View file @
c868a9f7
...
...
@@ -98,7 +98,9 @@ void TileCacheQueue::run()
else
{
#ifdef DEBUG_TILECACHEQUEUE
qDebug
()
<<
"Cache engine BEGIN WAIT"
;
#endif //DEBUG_TILECACHEQUEUE
waitmutex
.
lock
();
int
tout
=
4000
;
if
(
!
waitc
.
wait
(
&
waitmutex
,
tout
))
...
...
@@ -115,7 +117,9 @@ void TileCacheQueue::run()
}
mutex
.
unlock
();
}
#ifdef DEBUG_TILECACHEQUEUE
qDebug
()
<<
"Cache Engine DID NOT TimeOut"
;
#endif //DEBUG_TILECACHEQUEUE
waitmutex
.
unlock
();
}
}
...
...
src/ui/map/MAV2DIcon.cc
View file @
c868a9f7
...
...
@@ -53,7 +53,7 @@ void MAV2DIcon::setSelectedUAS(bool selected)
*/
void
MAV2DIcon
::
setYaw
(
float
yaw
)
{
//qDebug() << "MAV2Icon" << yaw;
//
//
qDebug() << "MAV2Icon" << yaw;
float
diff
=
fabs
(
yaw
-
this
->
yaw
);
while
(
diff
>
(
float
)
M_PI
)
{
diff
-=
(
float
)
M_PI
;
...
...
@@ -111,7 +111,7 @@ void MAV2DIcon::drawAirframePolygon(int airframe, QPainter& painter, int radius,
painter
.
rotate
(
yawRotate
);
//qDebug() << "ICON SIZE:" << radius;
//
//
qDebug() << "ICON SIZE:" << radius;
float
iconSize
=
radius
*
0.9
f
;
QPolygonF
poly
(
24
);
...
...
@@ -158,7 +158,7 @@ void MAV2DIcon::drawAirframePolygon(int airframe, QPainter& painter, int radius,
painter
.
rotate
(
yawRotate
);
//qDebug() << "ICON SIZE:" << radius;
//
//
qDebug() << "ICON SIZE:" << radius;
QPointF
front
(
0
,
0.2
);
front
=
front
*
iconSize
;
...
...
@@ -199,7 +199,7 @@ void MAV2DIcon::drawAirframePolygon(int airframe, QPainter& painter, int radius,
int
yawRotate
=
static_cast
<
int
>
(
yawDeg
)
%
360
;
painter
.
rotate
(
yawRotate
);
//qDebug() << "ICON SIZE:" << radius;
//
//
qDebug() << "ICON SIZE:" << radius;
float
iconSize
=
radius
*
0.7
f
;
...
...
@@ -254,7 +254,7 @@ void MAV2DIcon::drawAirframePolygon(int airframe, QPainter& painter, int radius,
painter
.
rotate
(
yawRotate
);
//qDebug() << "ICON SIZE:" << radius;
//
//
qDebug() << "ICON SIZE:" << radius;
float
iconSize
=
radius
*
0.9
f
;
QPolygonF
poly
(
3
);
...
...
src/ui/map/QGCMapWidget.cc
View file @
c868a9f7
...
...
@@ -171,7 +171,7 @@ void QGCMapWidget::mouseDoubleClickEvent(QMouseEvent* event)
*/
void
QGCMapWidget
::
addUAS
(
UASInterface
*
uas
)
{
qDebug
()
<<
"ADDING UAS"
;
// //
qDebug() << "ADDING UAS";
connect
(
uas
,
SIGNAL
(
globalPositionChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
updateGlobalPosition
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
//connect(uas, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateAttitude(UASInterface*,double,double,double,quint64)));
connect
(
uas
,
SIGNAL
(
systemSpecsChanged
(
int
)),
this
,
SLOT
(
updateSystemSpecs
(
int
)));
...
...
@@ -390,7 +390,7 @@ void QGCMapWidget::handleMapWaypointEdit(mapcontrol::WayPointItem* waypoint)
if
(
firingWaypointChange
==
wp
)
return
;
// Not in cycle, block now from entering it
firingWaypointChange
=
wp
;
qDebug
()
<<
"UPDATING WP FROM MAP"
;
// //
qDebug() << "UPDATING WP FROM MAP";
// Update WP values
internals
::
PointLatLng
pos
=
waypoint
->
Coord
();
...
...
@@ -405,9 +405,9 @@ void QGCMapWidget::handleMapWaypointEdit(mapcontrol::WayPointItem* waypoint)
internals
::
PointLatLng
coord
=
waypoint
->
Coord
();
QString
coord_str
=
" "
+
QString
::
number
(
coord
.
Lat
(),
'f'
,
6
)
+
" "
+
QString
::
number
(
coord
.
Lng
(),
'f'
,
6
);
qDebug
()
<<
"MAP WP COORD (MAP):"
<<
coord_str
<<
__FILE__
<<
__LINE__
;
// //
qDebug() << "MAP WP COORD (MAP):" << coord_str << __FILE__ << __LINE__;
QString
wp_str
=
QString
::
number
(
wp
->
getLatitude
(),
'f'
,
6
)
+
" "
+
QString
::
number
(
wp
->
getLongitude
(),
'f'
,
6
);
qDebug
()
<<
"MAP WP COORD (WP):"
<<
wp_str
<<
__FILE__
<<
__LINE__
;
// //
qDebug() << "MAP WP COORD (WP):" << wp_str << __FILE__ << __LINE__;
firingWaypointChange
=
NULL
;
...
...
src/ui/map/Waypoint2DIcon.cc
View file @
c868a9f7
...
...
@@ -60,7 +60,7 @@ void Waypoint2DIcon::updateWaypoint()
SetHeading
(
waypoint
->
getYaw
());
SetCoord
(
internals
::
PointLatLng
(
waypoint
->
getLatitude
(),
waypoint
->
getLongitude
()));
qDebug
()
<<
"UPDATING WP:"
<<
waypoint
->
getId
()
<<
"LAT:"
<<
waypoint
->
getLatitude
()
<<
"LON:"
<<
waypoint
->
getLongitude
();
//
qDebug() << "UPDATING WP:" << waypoint->getId() << "LAT:" << waypoint->getLatitude() << "LON:" << waypoint->getLongitude();
SetDescription
(
waypoint
->
getDescription
());
SetAltitude
(
waypoint
->
getAltitude
());
...
...
@@ -68,7 +68,7 @@ void Waypoint2DIcon::updateWaypoint()
drawIcon
();
QRectF
newSize
=
boundingRect
();
qDebug
()
<<
"WIDTH"
<<
newSize
.
width
()
<<
"<"
<<
oldSize
.
width
();
//
qDebug() << "WIDTH" << newSize.width() << "<" << oldSize.width();
// If new size is smaller than old size, update surrounding
if
((
newSize
.
width
()
<=
oldSize
.
width
())
||
(
newSize
.
height
()
<=
oldSize
.
height
()))
...
...
@@ -78,8 +78,8 @@ void Waypoint2DIcon::updateWaypoint()
int
oldWidth
=
oldSize
.
width
()
+
20
;
int
oldHeight
=
oldSize
.
height
()
+
20
;
map
->
update
(
this
->
x
()
-
10
,
this
->
y
()
-
10
,
oldWidth
,
oldHeight
);
//qDebug() << "UPDATING DUE TO SMALLER SIZE";
//qDebug() << "X:" << this->x()-1 << "Y:" << this->y()-1 << "WIDTH:" << oldWidth << "HEIGHT:" << oldHeight;
//
//
qDebug() << "UPDATING DUE TO SMALLER SIZE";
//
//
qDebug() << "X:" << this->x()-1 << "Y:" << this->y()-1 << "WIDTH:" << oldWidth << "HEIGHT:" << oldHeight;
}
else
{
...
...
src/ui/uas/UASView.cc
View file @
c868a9f7
...
...
@@ -231,7 +231,7 @@ void UASView::mouseDoubleClickEvent (QMouseEvent * event)
{
Q_UNUSED
(
event
);
UASManager
::
instance
()
->
setActiveUAS
(
uas
);
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"DOUBLECLICKED"
;
//
qDebug() << __FILE__ << __LINE__ << "DOUBLECLICKED";
}
void
UASView
::
enterEvent
(
QEvent
*
event
)
...
...
@@ -242,10 +242,10 @@ void UASView::enterEvent(QEvent* event)
grabMouse
(
QCursor
(
Qt
::
PointingHandCursor
));
}
}
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"IN FOCUS"
;
//
qDebug() << __FILE__ << __LINE__ << "IN FOCUS";
if
(
event
->
type
()
==
QEvent
::
MouseButtonDblClick
)
{
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"UAS CLICKED!"
;
//
qDebug() << __FILE__ << __LINE__ << "UAS CLICKED!";
}
}
...
...
@@ -499,7 +499,7 @@ void UASView::refresh()
//repaint();
static
quint64
lastupdate
=
0
;
//qDebug() << "UASVIEW update diff: " << MG::TIME::getGroundTimeNow() - lastupdate;
//
//
qDebug() << "UASVIEW update diff: " << MG::TIME::getGroundTimeNow() - lastupdate;
lastupdate
=
MG
::
TIME
::
getGroundTimeNow
();
// FIXME
...
...
@@ -507,10 +507,10 @@ void UASView::refresh()
if
(
generalUpdateCount
==
4
)
{
#if (QGC_EVENTLOOP_DEBUG)
qDebug
()
<<
"EVENTLOOP:"
<<
__FILE__
<<
__LINE__
;
//
qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__;
#endif
generalUpdateCount
=
0
;
//qDebug() << "UPDATING EVERYTHING";
//
//
qDebug() << "UPDATING EVERYTHING";
// State
m_ui
->
stateLabel
->
setText
(
state
);
m_ui
->
statusTextLabel
->
setText
(
stateDesc
);
...
...
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