Skip to content

Retrieving spline grid from SplineSurvey #467

@leofarage

Description

@leofarage

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions