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
3c0e3383
Commit
3c0e3383
authored
May 23, 2017
by
Jacob Walser
Committed by
Willian Galvani
Oct 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vehicle: update interface for Motortest
parent
d3dcf3f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Vehicle.cc
src/Vehicle/Vehicle.cc
+2
-2
Vehicle.h
src/Vehicle/Vehicle.h
+1
-2
No files found.
src/Vehicle/Vehicle.cc
View file @
3c0e3383
...
...
@@ -3290,9 +3290,9 @@ void Vehicle::setSoloFirmware(bool soloFirmware)
}
}
void
Vehicle
::
motorTest
(
int
motor
,
int
percent
,
int
timeoutSecs
)
void
Vehicle
::
motorTest
(
int
motor
,
int
percent
)
{
sendMavCommand
(
_defaultComponentId
,
MAV_CMD_DO_MOTOR_TEST
,
motor
,
MOTOR_TEST_THROTTLE_PERCENT
,
percent
,
timeoutSecs
);
sendMavCommand
(
_defaultComponentId
,
MAV_CMD_DO_MOTOR_TEST
,
true
,
motor
,
MOTOR_TEST_THROTTLE_PERCENT
,
percent
,
0
,
0
,
MOTOR_TEST_ORDER_BOARD
);
}
QString
Vehicle
::
brandImageIndoor
(
void
)
const
...
...
src/Vehicle/Vehicle.h
View file @
3c0e3383
...
...
@@ -747,8 +747,7 @@ public:
/// Test motor
/// @param motor Motor number, 1-based
/// @param percent 0-no power, 100-full power
/// @param timeoutSecs Number of seconds for motor to run
Q_INVOKABLE
void
motorTest
(
int
motor
,
int
percent
,
int
timeoutSecs
);
Q_INVOKABLE
void
motorTest
(
int
motor
,
int
percent
);
bool
guidedModeSupported
(
void
)
const
;
bool
pauseVehicleSupported
(
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