Skip to content

Commit 8d5df9a

Browse files
Vehicle: add roiCoordChanged signal:
this allows for ROI commanded elsewhere than clicking on map ( like gimbal panel point home action ) to show the ROI indicator on map
1 parent 9396e55 commit 8d5df9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Vehicle/Vehicle.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,6 +2887,8 @@ void Vehicle::guidedModeROI(const QGeoCoordinate& centerCoord)
28872887
static_cast<float>(centerCoord.longitude()),
28882888
static_cast<float>(centerCoord.altitude()));
28892889
}
2890+
// This is picked by qml to display coordinate over map
2891+
emit roiCoordChanged(centerCoord);
28902892
}
28912893

28922894
void Vehicle::stopGuidedModeROI()

src/Vehicle/Vehicle.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ public slots:
10121012
void mavlinkStatusChanged ();
10131013

10141014
void isROIEnabledChanged ();
1015+
void roiCoordChanged (const QGeoCoordinate& centerCoord);
10151016
void initialConnectComplete ();
10161017

10171018
void sensorsParametersResetAck (bool success);

0 commit comments

Comments
 (0)