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
e18b11cd
Commit
e18b11cd
authored
Feb 03, 2011
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed build
name element of mavlink_named_value is uint8_t
parent
3466d9f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
MAVLinkSimulationMAV.cc
src/comm/MAVLinkSimulationMAV.cc
+2
-2
UAS.cc
src/uas/UAS.cc
+2
-2
No files found.
src/comm/MAVLinkSimulationMAV.cc
View file @
e18b11cd
...
...
@@ -167,7 +167,7 @@ void MAVLinkSimulationMAV::mainloop()
// Name of the value, maximum 10 characters
// see full message specs at:
// http://pixhawk.ethz.ch/wiki/mavlink/
strcpy
(
val
.
name
,
"FLOAT"
);
strcpy
(
(
char
*
)
val
.
name
,
"FLOAT"
);
// Value, in this case 0.5
val
.
value
=
0.5
f
;
...
...
@@ -195,7 +195,7 @@ void MAVLinkSimulationMAV::mainloop()
// Name of the value, maximum 10 characters
// see full message specs at:
// http://pixhawk.ethz.ch/wiki/mavlink/
strcpy
(
valint
.
name
,
"INTEGER"
);
strcpy
(
(
char
*
)
valint
.
name
,
"INTEGER"
);
// Value, in this case 18000
valint
.
value
=
18000
;
...
...
src/uas/UAS.cc
View file @
e18b11cd
...
...
@@ -170,13 +170,13 @@ void UAS::receiveMessageNamedValue(const mavlink_message_t& message)
{
mavlink_named_value_float_t
val
;
mavlink_msg_named_value_float_decode
(
&
message
,
&
val
);
emit
valueChanged
(
this
->
getUASID
(),
QString
(
val
.
name
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
(
0
));
emit
valueChanged
(
this
->
getUASID
(),
QString
(
(
char
*
)
val
.
name
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
(
0
));
}
else
if
(
message
.
msgid
==
MAVLINK_MSG_ID_NAMED_VALUE_INT
)
{
mavlink_named_value_int_t
val
;
mavlink_msg_named_value_int_decode
(
&
message
,
&
val
);
emit
valueChanged
(
this
->
getUASID
(),
QString
(
val
.
name
),
tr
(
"raw"
),
(
float
)
val
.
value
,
getUnixTime
(
0
));
emit
valueChanged
(
this
->
getUASID
(),
QString
(
(
char
*
)
val
.
name
),
tr
(
"raw"
),
(
float
)
val
.
value
,
getUnixTime
(
0
));
}
}
...
...
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