Interface PointOfInterestPilotingItf

    • Method Detail

      • start

        void start​(double latitude,
                   double longitude,
                   double altitude)
        Starts a piloted Point Of Interest in locked gimbal mode.

        This is equivalent to calling start(latitude, longitude, altitude, Mode.LOCKED_GIMBAL).

        Parameters:
        latitude - latitude of the location (in degrees) to look at
        longitude - longitude of the location (in degrees) to look at
        altitude - altitude above take off point (in meters) to look at
      • start

        void start​(double latitude,
                   double longitude,
                   double altitude,
                   @NonNull
                   PointOfInterestPilotingItf.Mode mode)
        Starts a piloted Point Of Interest.
        Parameters:
        latitude - latitude of the location (in degrees) to look at
        longitude - longitude of the location (in degrees) to look at
        altitude - altitude above take off point (in meters) to look at
        mode - Point Of Interest mode
      • getCurrentPointOfInterest

        @Nullable
        PointOfInterestPilotingItf.PointOfInterest getCurrentPointOfInterest()
        Retrieves the current targeted Point Of Interest.
        Returns:
        the current target, or null if there's no piloted Point Of Interest in progress
      • setPitch

        void setPitch​(int value)
        Sets the current pitch value.

        value is expressed as a signed percentage of the max pitch/roll setting, in range [-100, 100].
        -100 corresponds to a pitch angle of max pitch/roll towards ground (copter will fly forward), 100 corresponds to a pitch angle of max pitch/roll towards sky (copter will fly backward).

        Note: value may be clamped if necessary, in order to respect the maximum supported physical tilt of the copter.

        Parameters:
        value - the new pitch value to set
        See Also:
        ManualCopterPilotingItf.getMaxPitchRoll()
      • setRoll

        void setRoll​(int value)
        Sets the current roll value.

        value is expressed as a signed percentage of the max pitch/roll setting, in range [-100, 100].
        -100 corresponds to a roll angle of max pitch/roll to the left (copter will fly left), 100 corresponds to a roll angle of max pitch/roll to the right (copter will fly right).

        Note: value may be clamped if necessary, in order to respect the maximum supported physical tilt of the copter.

        Parameters:
        value - the new pitch roll to set
        See Also:
        ManualCopterPilotingItf.getMaxPitchRoll()
      • setVerticalSpeed

        void setVerticalSpeed​(int value)
        Set the current vertical speed value.

        value is expressed as as a signed percentage of the max vertical speed setting, in range [-100, 100].
        -100 corresponds to max vertical speed towards ground,100 corresponds to max vertical speed towards sky.

        Parameters:
        value - the new vertical speed value to set
        See Also:
        ManualCopterPilotingItf.getMaxVerticalSpeed()