Hi, I've been trying to follow Tower's app on how to generate a SplineSurvey's grid, but I've yet to retrieve a spline grid (it returns just a Grid with 90º curves).
Here's a snippet of what I'm doing.
Survey currentSurvey = new SplineSurvey();
final SurveyDetail surveyDetail = new SurveyDetail(currentSurvey.getSurveyDetail());
surveyDetail.setAngle(angle);
surveyDetail.setSidelap(75);
surveyDetail.setOverlap(85);
CameraProxy camera = mDrone.getAttribute(AttributeType.CAMERA);
if(camera != null) {
// Load the available cameras
List<CameraDetail> cameraDetails = camera.getAvailableCameraInfos();
if(!cameraDetails.isEmpty()){
surveyDetail.setCameraDetail(cameraDetails.get(0));
}
}
currentSurvey.setSurveyDetail(surveyDetail);
currentSurvey.setPolygonPoints(positions);
currentSurvey.setCameraLocations(positions);
currentSurvey = CommonApiUtils.buildSplineSurvey(null, currentSurvey);
presentSurvey(currentSurvey.getGridPoints());
I haven't been able to initialize an instance of MavLinkDrone as well, thus why I'm passing null as the first parameter of CommonApiUtils.buildSplineSurvey
Any light is welcome. Thank you!
Hi, I've been trying to follow Tower's app on how to generate a SplineSurvey's grid, but I've yet to retrieve a spline grid (it returns just a Grid with 90º curves).
Here's a snippet of what I'm doing.
I haven't been able to initialize an instance of
MavLinkDroneas well, thus why I'm passingnullas the first parameter ofCommonApiUtils.buildSplineSurveyAny light is welcome. Thank you!