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
4019d95a
Commit
4019d95a
authored
Apr 26, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol
parents
fb859599
173c6eff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
UAS.cc
src/uas/UAS.cc
+1
-1
QGCRemoteControlView.cc
src/ui/QGCRemoteControlView.cc
+4
-13
No files found.
src/uas/UAS.cc
View file @
4019d95a
...
@@ -2729,7 +2729,7 @@ void UAS::enableHilXPlane(bool enable)
...
@@ -2729,7 +2729,7 @@ void UAS::enableHilXPlane(bool enable)
* @param yacc Y acceleration (mg)
* @param yacc Y acceleration (mg)
* @param zacc Z acceleration (mg)
* @param zacc Z acceleration (mg)
*/
*/
void
UAS
::
sendHilState
(
uint64_t
time_us
,
float
roll
,
float
pitch
,
float
yaw
,
float
rollspeed
,
void
UAS
::
sendHilState
(
quint64
time_us
,
float
roll
,
float
pitch
,
float
yaw
,
float
rollspeed
,
float
pitchspeed
,
float
yawspeed
,
double
lat
,
double
lon
,
double
alt
,
float
pitchspeed
,
float
yawspeed
,
double
lat
,
double
lon
,
double
alt
,
float
vx
,
float
vy
,
float
vz
,
float
xacc
,
float
yacc
,
float
zacc
)
float
vx
,
float
vy
,
float
vz
,
float
xacc
,
float
yacc
,
float
zacc
)
{
{
...
...
src/ui/QGCRemoteControlView.cc
View file @
4019d95a
...
@@ -139,10 +139,9 @@ void QGCRemoteControlView::setUASId(int id)
...
@@ -139,10 +139,9 @@ void QGCRemoteControlView::setUASId(int id)
void
QGCRemoteControlView
::
setChannelRaw
(
int
channelId
,
float
raw
)
void
QGCRemoteControlView
::
setChannelRaw
(
int
channelId
,
float
raw
)
{
{
if
(
this
->
raw
.
size
()
<=
channelId
)
{
if
(
this
->
raw
.
count
()
<=
channelId
)
{
// This is a new channel, append it
// This is a new channel, append it
this
->
raw
.
append
(
raw
);
this
->
raw
.
append
(
raw
);
//this->normalized.append(0);
appendChannelWidget
(
channelId
);
appendChannelWidget
(
channelId
);
updated
=
true
;
updated
=
true
;
}
else
{
}
else
{
...
@@ -154,7 +153,7 @@ void QGCRemoteControlView::setChannelRaw(int channelId, float raw)
...
@@ -154,7 +153,7 @@ void QGCRemoteControlView::setChannelRaw(int channelId, float raw)
void
QGCRemoteControlView
::
setChannelScaled
(
int
channelId
,
float
normalized
)
void
QGCRemoteControlView
::
setChannelScaled
(
int
channelId
,
float
normalized
)
{
{
if
(
this
->
normalized
.
size
()
<=
channelId
)
// using raw vector as size indicator
if
(
this
->
normalized
.
count
()
<=
channelId
)
// using raw vector as size indicator
{
{
// This is a new channel, append it
// This is a new channel, append it
this
->
normalized
.
append
(
normalized
);
this
->
normalized
.
append
(
normalized
);
...
@@ -200,19 +199,11 @@ void QGCRemoteControlView::redraw()
...
@@ -200,19 +199,11 @@ void QGCRemoteControlView::redraw()
{
{
if
(
isVisible
()
&&
updated
)
if
(
isVisible
()
&&
updated
)
{
{
// Update raw values
// Update percent bars and raw labels
//for(int i = 0; i < rawLabels.count(); i++)
for
(
int
i
=
0
;
(
i
<
progressBars
.
count
())
&&
(
i
<
rawLabels
.
count
())
&&
(
i
<
normalized
.
count
());
i
++
)
//{
//rawLabels.at(i)->setText(QString("%1 us").arg(raw.at(i), 4, 10, QChar('0')));
//}
// Update percent bars
for
(
int
i
=
0
;
i
<
progressBars
.
count
();
i
++
)
{
{
rawLabels
.
at
(
i
)
->
setText
(
QString
(
"%1 us"
).
arg
(
raw
.
at
(
i
),
4
,
10
,
QChar
(
'0'
)));
rawLabels
.
at
(
i
)
->
setText
(
QString
(
"%1 us"
).
arg
(
raw
.
at
(
i
),
4
,
10
,
QChar
(
'0'
)));
int
vv
=
normalized
.
at
(
i
)
*
100.0
f
;
int
vv
=
normalized
.
at
(
i
)
*
100.0
f
;
//progressBars.at(i)->setValue(vv);
// int vv = raw.at(i)*1.0f;
progressBars
.
at
(
i
)
->
setValue
(
vv
);
progressBars
.
at
(
i
)
->
setValue
(
vv
);
}
}
// Update RSSI
// Update RSSI
...
...
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