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
ddc1fa61
Commit
ddc1fa61
authored
Mar 23, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
b2b422c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+13
-0
Vehicle.h
src/Vehicle/Vehicle.h
+4
-0
No files found.
src/Vehicle/Vehicle.cc
View file @
ddc1fa61
...
...
@@ -3849,6 +3849,19 @@ int Vehicle::versionCompare(int major, int minor, int patch)
return
_firmwarePlugin
->
versionCompare
(
this
,
major
,
minor
,
patch
);
}
#if !defined(NO_ARDUPILOT_DIALECT)
void
Vehicle
::
flashBootloader
(
void
)
{
sendMavCommand
(
defaultComponentId
(),
MAV_CMD_FLASH_BOOTLOADER
,
true
,
// show error
0
,
0
,
0
,
0
,
// param 1-4 not used
290876
);
// magic number
}
#endif
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
...
src/Vehicle/Vehicle.h
View file @
ddc1fa61
...
...
@@ -756,6 +756,10 @@ public:
/// @param percent 0-no power, 100-full power
Q_INVOKABLE
void
motorTest
(
int
motor
,
int
percent
);
#if !defined(NO_ARDUPILOT_DIALECT)
Q_INVOKABLE
void
flashBootloader
(
void
);
#endif
bool
guidedModeSupported
(
void
)
const
;
bool
pauseVehicleSupported
(
void
)
const
;
bool
orbitModeSupported
(
void
)
const
;
...
...
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