Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a1fc7af1
Commit
a1fc7af1
authored
Aug 15, 2017
by
DonLakeFlyer
Browse files
Send COMMAND_LONG from Qml
parent
47274448
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.h
View file @
a1fc7af1
...
...
@@ -637,6 +637,10 @@ public:
/// Signals: mavCommandResult on success or failure
void
sendMavCommand
(
int
component
,
MAV_CMD
command
,
bool
showError
,
float
param1
=
0.0
f
,
float
param2
=
0.0
f
,
float
param3
=
0.0
f
,
float
param4
=
0.0
f
,
float
param5
=
0.0
f
,
float
param6
=
0.0
f
,
float
param7
=
0.0
f
);
/// Same as sendMavCommand but available from Qml.
Q_INVOKABLE
void
sendCommand
(
int
component
,
int
command
,
bool
showError
,
double
param1
=
0.0
f
,
double
param2
=
0.0
f
,
double
param3
=
0.0
f
,
double
param4
=
0.0
f
,
double
param5
=
0.0
f
,
double
param6
=
0.0
f
,
double
param7
=
0.0
f
)
{
sendMavCommand
(
component
,
(
MAV_CMD
)
command
,
showError
,
param1
,
param2
,
param3
,
param4
,
param5
,
param6
,
param7
);
}
int
firmwareMajorVersion
(
void
)
const
{
return
_firmwareMajorVersion
;
}
int
firmwareMinorVersion
(
void
)
const
{
return
_firmwareMinorVersion
;
}
int
firmwarePatchVersion
(
void
)
const
{
return
_firmwarePatchVersion
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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