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
5f00eab1
Commit
5f00eab1
authored
Jan 23, 2011
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue in simulation link
parent
5dad474e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
1399 deletions
+3
-1399
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+3
-4
WaypointGlobalView.cc
src/ui/WaypointGlobalView.cc
+0
-467
WaypointGlobalView.h
src/ui/WaypointGlobalView.h
+0
-62
WaypointGlobalView.ui
src/ui/WaypointGlobalView.ui
+0
-866
No files found.
src/comm/MAVLinkSimulationLink.cc
View file @
5f00eab1
...
...
@@ -154,12 +154,12 @@ void MAVLinkSimulationLink::sendMAVLinkMessage(const mavlink_message_t* msg)
unsigned
int
bufferlength
=
mavlink_msg_to_send_buffer
(
buf
,
msg
);
// Pack to link buffer
//
readyBufferMutex.lock();
readyBufferMutex
.
lock
();
for
(
unsigned
int
i
=
0
;
i
<
bufferlength
;
i
++
)
{
readyBuffer
.
enqueue
(
*
(
buf
+
i
));
}
//
readyBufferMutex.unlock();
readyBufferMutex
.
unlock
();
}
void
MAVLinkSimulationLink
::
enqueue
(
uint8_t
*
stream
,
uint8_t
*
index
,
mavlink_message_t
*
msg
)
...
...
@@ -891,8 +891,7 @@ void MAVLinkSimulationLink::readBytes() {
readyBufferMutex
.
lock
();
const
qint64
maxLength
=
2048
;
char
data
[
maxLength
];
qint64
len
=
maxLength
;
if
(
maxLength
>
readyBuffer
.
size
())
len
=
readyBuffer
.
size
();
qint64
len
=
qMin
((
qint64
)
readyBuffer
.
size
(),
maxLength
);
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
{
...
...
src/ui/WaypointGlobalView.cc
deleted
100644 → 0
View file @
5dad474e
This diff is collapsed.
Click to expand it.
src/ui/WaypointGlobalView.h
deleted
100644 → 0
View file @
5dad474e
#ifndef WAYPOINTGLOBALVIEW_H
#define WAYPOINTGLOBALVIEW_H
#include <QWidget>
#include "Waypoint.h"
namespace
Ui
{
class
WaypointGlobalView
;
}
class
WaypointGlobalView
:
public
QWidget
{
Q_OBJECT
public:
explicit
WaypointGlobalView
(
Waypoint
*
wp
,
QWidget
*
parent
=
0
);
~
WaypointGlobalView
();
public
slots
:
void
updateValues
(
void
);
void
remove
();
QString
getLatitudString
(
float
lat
);
QString
getLongitudString
(
float
lon
);
void
getLatitudeGradoMin
(
float
lat
,
int
*
gradoLat
,
float
*
minLat
,
QString
*
dirLat
);
void
getLongitudGradoMin
(
float
lon
,
int
*
gradoLon
,
float
*
minLon
,
QString
*
dirLon
);
void
changeOrbitalState
(
int
state
);
void
updateCoordValues
(
float
lat
,
float
lon
);
//update latitude
void
updateLatitudeWP
(
int
value
);
void
updateLatitudeMinuteWP
(
double
value
);
void
changeDirectionLatitudeWP
();
//update longitude
void
updateLongitudeWP
(
int
value
);
void
updateLongitudeMinuteWP
(
double
value
);
void
changeDirectionLongitudeWP
();
signals:
void
removeWaypoint
(
Waypoint
*
);
void
changePositionWP
(
Waypoint
*
);
protected:
virtual
void
changeEvent
(
QEvent
*
e
);
Waypoint
*
wp
;
private:
Ui
::
WaypointGlobalView
*
ui
;
private
slots
:
};
#endif // WAYPOINTGLOBALVIEW_H
src/ui/WaypointGlobalView.ui
deleted
100644 → 0
View file @
5dad474e
This diff is collapsed.
Click to expand it.
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