Browse Source

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
QGC4.4
davidsastresas 11 months ago committed by Julian Oes
parent
commit
23dfa6570e
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 2
      src/Vehicle/Vehicle.cc
  2. 1
      src/Vehicle/Vehicle.h

2
src/Vehicle/Vehicle.cc

@ -2892,6 +2892,8 @@ void Vehicle::guidedModeROI(const QGeoCoordinate& centerCoord) @@ -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()

1
src/Vehicle/Vehicle.h

@ -1021,6 +1021,7 @@ signals: @@ -1021,6 +1021,7 @@ signals:
void mavlinkStatusChanged ();
void isROIEnabledChanged ();
void roiCoordChanged (const QGeoCoordinate& centerCoord);
void initialConnectComplete ();
void sensorsParametersResetAck (bool success);

Loading…
Cancel
Save