Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving spline grid from SplineSurvey #467

Open
leofarage opened this issue Dec 27, 2016 · 0 comments
Open

Retrieving spline grid from SplineSurvey #467

leofarage opened this issue Dec 27, 2016 · 0 comments

Comments

@leofarage
Copy link

leofarage commented Dec 27, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant