OnboardTracker

interface OnboardTracker : Peripheral

Onboard tracker peripheral for drones.

This peripheral can be obtained from a drone using:

drone.getPeripheral(OnboardTracker.class)

See also

com.parrot.drone.groundsdk.device.peripheral.Peripheral.Provider

Types

Link copied to clipboard
enum RequestStatus
Request status returned by the drone in response to a tracking request.
Link copied to clipboard
interface Target
Details on a tracked target.
Link copied to clipboard
enum TrackingEngineState
Tracking engine state.
Link copied to clipboard
interface TrackingRequest
Request for target tracking.

Functions

Link copied to clipboard
abstract fun addNewTarget(@NonNull request: OnboardTracker.TrackingRequest)
Adds a new target to track.
Link copied to clipboard
abstract fun getRequestStatus(): OnboardTracker.RequestStatus
Gets the latest request status returned by the drone in response to a tracking request.
Link copied to clipboard
abstract fun getTargets(): Map<Integer, OnboardTracker.Target>
Gets the targets currently managed by the drone.
Link copied to clipboard
abstract fun getTrackingEngineState(): OnboardTracker.TrackingEngineState
Gets the tracking engine state.
Link copied to clipboard
abstract fun isAvailable(): Boolean
Tells if tracking feature is available.
Link copied to clipboard
abstract fun removeAllTargets()
Removes all targets.
Link copied to clipboard
abstract fun removeTarget(targetId: Int)
Removes specific target from tracking.
Link copied to clipboard
abstract fun replaceAllTargetsBy(@NonNull request: OnboardTracker.TrackingRequest)
Replaces current targets by a new target.
Link copied to clipboard
abstract fun startTrackingEngine(withBoxProposals: Boolean)
Starts the tracking engine.
Link copied to clipboard
abstract fun stopTrackingEngine()
Stops the tracking engine.