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
17adc213
Commit
17adc213
authored
Nov 26, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added rates setpoints, improved vehicle config UI
parent
8efa76b3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
mavlink_helpers.h
libs/mavlink/include/mavlink/v1.0/mavlink_helpers.h
+4
-5
protocol.h
libs/mavlink/include/mavlink/v1.0/protocol.h
+2
-3
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+2
-2
QGCVehicleConfig.ui
src/ui/QGCVehicleConfig.ui
+3
-3
No files found.
libs/mavlink/include/mavlink/v1.0/mavlink_helpers.h
View file @
17adc213
...
...
@@ -12,15 +12,18 @@
/*
* Internal function to give access to the channel status for each channel
*/
#ifndef MAVLINK_GET_CHANNEL_STATUS
MAVLINK_HELPER
mavlink_status_t
*
mavlink_get_channel_status
(
uint8_t
chan
)
{
static
mavlink_status_t
m_mavlink_status
[
MAVLINK_COMM_NUM_BUFFERS
];
return
&
m_mavlink_status
[
chan
];
}
#endif
/*
* Internal function to give access to the channel buffer for each channel
*/
#ifndef MAVLINK_GET_CHANNEL_BUFFER
MAVLINK_HELPER
mavlink_message_t
*
mavlink_get_channel_buffer
(
uint8_t
chan
)
{
...
...
@@ -35,6 +38,7 @@ MAVLINK_HELPER mavlink_message_t* mavlink_get_channel_buffer(uint8_t chan)
#endif
return
&
m_mavlink_buffer
[
chan
];
}
#endif
/**
* @brief Reset the status of a channel.
...
...
@@ -558,8 +562,3 @@ MAVLINK_HELPER void _mavlink_send_uart(mavlink_channel_t chan, const char *buf,
#endif // MAVLINK_USE_CONVENIENCE_FUNCTIONS
#endif
/* _MAVLINK_HELPERS_H_ */
dif
}
#endif // MAVLINK_USE_CONVENIENCE_FUNCTIONS
#endif
/* _MAVLINK_HELPERS_H_ */
libs/mavlink/include/mavlink/v1.0/protocol.h
View file @
17adc213
...
...
@@ -42,7 +42,9 @@
#endif // MAVLINK_SEPARATE_HELPERS
/* always include the prototypes to ensure we don't get out of sync */
#ifndef MAVLINK_GET_CHANNEL_STATUS
MAVLINK_HELPER
mavlink_status_t
*
mavlink_get_channel_status
(
uint8_t
chan
);
#endif
MAVLINK_HELPER
void
mavlink_reset_channel_status
(
uint8_t
chan
);
#if MAVLINK_CRC_EXTRA
MAVLINK_HELPER
uint16_t
mavlink_finalize_message_chan
(
mavlink_message_t
*
msg
,
uint8_t
system_id
,
uint8_t
component_id
,
...
...
@@ -322,6 +324,3 @@ _MAV_RETURN_ARRAY(float, f)
_MAV_RETURN_ARRAY
(
double
,
d
)
#endif // _MAVLINK_PROTOCOL_H_
ble
,
d
)
#endif // _MAVLINK_PROTOCOL_H_
src/ui/QGCVehicleConfig.cc
View file @
17adc213
...
...
@@ -543,12 +543,12 @@ void QGCVehicleConfig::parameterChanged(int uas, int component, QString paramete
if
(
parameterName
.
contains
(
"RC_MAP_AUX2"
))
{
rcMapping
[
6
]
=
value
.
toInt
()
-
1
;
ui
->
aux
1
SpinBox
->
setValue
(
rcMapping
[
6
]
+
1
);
ui
->
aux
2
SpinBox
->
setValue
(
rcMapping
[
6
]
+
1
);
}
if
(
parameterName
.
contains
(
"RC_MAP_AUX3"
))
{
rcMapping
[
7
]
=
value
.
toInt
()
-
1
;
ui
->
aux
1
SpinBox
->
setValue
(
rcMapping
[
7
]
+
1
);
ui
->
aux
3
SpinBox
->
setValue
(
rcMapping
[
7
]
+
1
);
}
// Scaling
...
...
src/ui/QGCVehicleConfig.ui
View file @
17adc213
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
7
17
</width>
<width>
7
80
</width>
<height>
586
</height>
</rect>
</property>
...
...
@@ -40,7 +40,7 @@
<item
row=
"0"
column=
"0"
colspan=
"2"
>
<widget
class=
"QTabWidget"
name=
"tabWidget"
>
<property
name=
"currentIndex"
>
<number>
0
</number>
<number>
1
</number>
</property>
<widget
class=
"QWidget"
name=
"rcTab"
>
<attribute
name=
"title"
>
...
...
@@ -725,7 +725,7 @@
<attribute
name=
"title"
>
<string>
Sensor Calibration
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout_6"
columnstretch=
"
70,30
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_6"
columnstretch=
"
55,45
"
>
<property
name=
"topMargin"
>
<number>
20
</number>
</property>
...
...
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