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
5a2a5dc5
Unverified
Commit
5a2a5dc5
authored
Jan 20, 2018
by
Don Gagne
Committed by
GitHub
Jan 20, 2018
Browse files
Merge pull request #6054 from DonLakeFlyer/InsertROI
Insert ROI command which is supported by firmware
parents
5b94043d
1d2b4e3c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/MissionManager/MissionController.cc
View file @
5a2a5dc5
...
...
@@ -364,10 +364,12 @@ int MissionController::insertROIMissionItem(QGeoCoordinate coordinate, int i)
int
sequenceNumber
=
_nextSequenceNumber
();
SimpleMissionItem
*
newItem
=
new
SimpleMissionItem
(
_controllerVehicle
,
this
);
newItem
->
setSequenceNumber
(
sequenceNumber
);
newItem
->
setCoordinate
(
coordinate
);
newItem
->
setCommand
(
MavlinkQmlSingleton
::
MAV_CMD_DO_SET_ROI
);
newItem
->
setCommand
((
MavlinkQmlSingleton
::
Qml_MAV_CMD
)(
_controllerVehicle
->
firmwarePlugin
()
->
supportedMissionCommands
().
contains
((
MAV_CMD
)
MAV_CMD_DO_SET_ROI_LOCATION
)
?
MAV_CMD_DO_SET_ROI_LOCATION
:
MAV_CMD_DO_SET_ROI
));
_initVisualItem
(
newItem
);
newItem
->
setDefaultsForCommand
();
newItem
->
setCoordinate
(
coordinate
);
double
prevAltitude
;
MAV_FRAME
prevFrame
;
...
...
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