Git Product home page Git Product logo

Comments (5)

dji-dev avatar dji-dev commented on July 28, 2024

Public comment from Hummels Lei in Zendesk ticket #29206:

Hi, you say "The code used is the one that successfully executed Waypoint Mission in MAVIC 2 ENTERPRISE". Do you mean this code doesn't work well in Mavic air and Mavic 2 ZOOM? Can you provide more information about waypoint parameters?

from windows-sdk.

ajy720 avatar ajy720 commented on July 28, 2024

Yes. That's right.
Above code doesn't work in Mavic air and Mavic 2 ZOOM.

Here is my Waypoint Mission parameters.
And I tested it both in the simulator at DJI Assistant 2 for Mavic and in the real world.

        private void Init_Mission(object sender, RoutedEventArgs e)
        {
            double nowLat = Convert.ToDouble(DD.Location().Latitude());
            double nowLng = Convert.ToDouble(DD.Location().Longitude());

            WaypointMission = new WaypointMission()
            {
                waypointCount = 3,
                maxFlightSpeed = 15,
                autoFlightSpeed = 10,
                finishedAction = WaypointMissionFinishedAction.NO_ACTION,
                headingMode = WaypointMissionHeadingMode.AUTO,
                flightPathMode = WaypointMissionFlightPathMode.NORMAL,
                gotoFirstWaypointMode = WaypointMissionGotoFirstWaypointMode.SAFELY,
                exitMissionOnRCSignalLostEnabled = false,
                pointOfInterest = new LocationCoordinate2D()
                {
                    latitude = 0,
                    longitude = 0
                },
                gimbalPitchRotationEnabled = true,
                repeatTimes = 0,
                missionID = 0,
                waypoints = new List<Waypoint>()
                            {
                                InitDumpWaypoint(nowLat+0.001, nowLng+0.0015),
                                InitDumpWaypoint(nowLat+0.001, nowLng-0.0015)/*,
                                InitDumpWaypoint(nowLat-0.001, nowLng-0.0015),
                                InitDumpWaypoint(nowLat-0.001, nowLng+0.0015)*/
                            }
            };
        }

        private Waypoint InitDumpWaypoint(double latitude, double longitude)
        {
            Waypoint waypoint = new Waypoint()
            {
                location = new LocationCoordinate2D() { latitude = latitude, longitude = longitude },
                altitude = 20,
                turnMode = WaypointTurnMode.CLOCKWISE,
                heading = 0,
                gimbalPitch = -30,
                actionRepeatTimes = 1,
                actionTimeoutInSeconds = 60,
                cornerRadiusInMeters = 0.2,
                speed = 0,
                shootPhotoTimeInterval = -1,
                shootPhotoDistanceInterval = -1,
                waypointActions = new List<WaypointAction>()
                {
                    InitDumpWaypointAction(1000, WaypointActionType.STAY)
                }
            };
            return waypoint;
        }

        private WaypointAction InitDumpWaypointAction(int Param, WaypointActionType actiontype)
        {
            WaypointAction action = new WaypointAction()
            {
                actionType = actiontype,
                actionParam = Param
            };
            return action;
        }

Thank you for reply.

from windows-sdk.

dji-dev avatar dji-dev commented on July 28, 2024

Public comment from Hummels Lei in Zendesk ticket #29206:

Hi, Mavic air and Mavic 2 ZOOM can't execute a waypoint mission. I want to know if you can see the FPV image of Mavic air and Mavic 2 ZOOM on windows SDK program.

from windows-sdk.

ajy720 avatar ajy720 commented on July 28, 2024

Yes, I can't see the FPV image of Mavic 2 ZOOM on windows SDK program.
What should I do?

from windows-sdk.

dji-dev avatar dji-dev commented on July 28, 2024

Public comment from Hummels Lei in Zendesk ticket #29206:

Hi please check:
1 You are using the latest version of the Windows SDK(0.3.2).
2 The remote control you are using is not Smart Controller(https://www.dji.com/smart-controller?site=brandsite&from=insite_search).
3 You have already installed the driver follow the instructions on https://developer.dji.com/windows-sdk/documentation/connection/Mavic2.html.

And I think this issue(#32) may help you.

from windows-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.