Skip to content

Commit

Permalink
Vehicle: add roiCoordChanged signal:
Browse files Browse the repository at this point in the history
this allows for ROI commanded elsewhere than clicking on map
( like gimbal panel point home action ) to show the ROI indicator
on map
  • Loading branch information
Davidsastresas authored and julianoes committed Apr 11, 2024
1 parent 02370de commit 23dfa65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Vehicle/Vehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2892,6 +2892,8 @@ void Vehicle::guidedModeROI(const QGeoCoordinate& centerCoord)
static_cast<float>(centerCoord.longitude()),
static_cast<float>(centerCoord.altitude()));
}
// This is picked by qml to display coordinate over map
emit roiCoordChanged(centerCoord);
}

void Vehicle::stopGuidedModeROI()
Expand Down
1 change: 1 addition & 0 deletions src/Vehicle/Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@ public slots:
void mavlinkStatusChanged ();

void isROIEnabledChanged ();
void roiCoordChanged (const QGeoCoordinate& centerCoord);
void initialConnectComplete ();

void sensorsParametersResetAck (bool success);
Expand Down

0 comments on commit 23dfa65

Please sign in to comment.