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
220b329c
Commit
220b329c
authored
May 02, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
fa49e1bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+26
-0
Vehicle.h
src/Vehicle/Vehicle.h
+2
-0
No files found.
src/Vehicle/Vehicle.cc
View file @
220b329c
...
...
@@ -3859,6 +3859,32 @@ int Vehicle::versionCompare(int major, int minor, int patch)
return
_firmwarePlugin
->
versionCompare
(
this
,
major
,
minor
,
patch
);
}
void
Vehicle
::
setPIDTuningTelemetryMode
(
bool
pidTuning
)
{
qDebug
()
<<
"setPIDTuningTelemetryMode"
<<
pidTuning
;
QList
<
int
>
rgTelemetry
;
if
(
pidTuning
)
{
rgTelemetry
<<
MAVLINK_MSG_ID_ATTITUDE
<<
MAVLINK_MSG_ID_ATTITUDE_TARGET
;
for
(
int
telemetry
:
rgTelemetry
)
{
sendMavCommand
(
defaultComponentId
(),
MAV_CMD_SET_MESSAGE_INTERVAL
,
true
,
// show error
telemetry
,
pidTuning
?
(
1000000.0
/
30.0
)
/* Hz */
:
-
1
/* default Hz */
);
}
}
setLiveUpdates
(
pidTuning
);
_setpointFactGroup
.
setLiveUpdates
(
pidTuning
);
sendMavCommand
(
defaultComponentId
(),
MAV_CMD_GET_MESSAGE_INTERVAL
,
true
,
// show error
MAVLINK_MSG_ID_ATTITUDE
);
}
#if !defined(NO_ARDUPILOT_DIALECT)
void
Vehicle
::
flashBootloader
(
void
)
{
...
...
src/Vehicle/Vehicle.h
View file @
220b329c
...
...
@@ -758,6 +758,8 @@ public:
/// @param percent 0-no power, 100-full power
Q_INVOKABLE
void
motorTest
(
int
motor
,
int
percent
);
Q_INVOKABLE
void
setPIDTuningTelemetryMode
(
bool
pidTuning
);
#if !defined(NO_ARDUPILOT_DIALECT)
Q_INVOKABLE
void
flashBootloader
(
void
);
#endif
...
...
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