Camera management
class AutelBaseCamera
method setTrafficOffenceRecordListener
void setTrafficOffenceRecordListener(CallbackWithOneParam<TrafficOffenceRecord> callback);
Description: callback when set calibration format
Input parameters: callback:callback when Traffic violation
Output parameter: no
Related parameters: CallbackWithOneParam、 TrafficOffenceRecord
method setMediaModeListener
void setMediaModeListener(CallbackWithOneParam<MediaMode> callback);
Description: Sets the listener for the current media mode to monitor the real-time data.
Input parameters: callback:the listener will be cancelled when the callback is null.
Output parameter: no。
Related parameters: CallbackWithOneParam、 MediaMode
method setSDCardStateListener
void setSDCardStateListener(CallbackWithOneParam<SDCardState> callback)
Description: Sets the listener for the SD card to monitor the real-time data.
Input parameters: callback: the listener will be cancelled when the callback is null.
Output parameter: no。
Related parameters: CallbackWithOneParam、 SDCardState
method setMediaStateListener
void setMediaStateListener(CallbackWithTwoParams<MediaStatus, String>
callback);
Description: Sets the listener for the camera shooting and recording to monitor the real-time data.
Input parameters: callback: the listener will be cancelled when the callback is null.
Output parameter: no
Related parameters: CallbackWithTwoParams、 MediaStatus
method setMediaStateListener
void setMediaStateWithIdListener(CallbackWithThreeParams<MediaStatus,
String, String> callback);
Description: Sets the listener for the camera shooting and recording to monitor the real-time data.
Input parameters: callback:the listener will be cancelled when the callback is null.
Output parameter: no
Related parameters: CallbackWithThreeParams、 MediaStatus
method formatSDCard
void formatSDCard(CallbackWithNoParam callback);
Description: Sends the format SD card command to the camera。Note: first, see if the camera is in idle condition. If yes, then this operation can be continued.
Input parameters: callback:callback the callback when format the SD card。
Output parameter: no.
Related parameters: CallbackWithNoParam
method resetDefaults
void resetDefaults(CallbackWithNoParam callback);
Description: Sends the camera reset command to the camera.
Input parameters: callback:the callback when reset the camera.
Output parameter: no.
Related parameters: CallbackWithNoParam
method getWorkState
void getWorkState(CallbackWithOneParam<WorkState> callback);
Description: Gets the current camera working state.
Input parameters: callback:the callback when get the current camera working state.
Output parameter: no.
Related parameters: CallbackWithOneParam、WorkState
method getSDCardState
void getSDCardState(CallbackWithOneParam<SDCardState> callback);
Description: Gets the current SD card state.
Input parameters:
callback: the callback when get the current SD card state.
Output parameter: no.
Related parameters: CallbackWithOneParam、SDCardState
method getSDCardFreeSpace
void getSDCardFreeSpace(CallbackWithOneParam<Long> callback);
Description: Gets the free space of the SD card.Unit: Byte *
Input parameters:
callback: the callback when get the free space of the SD card.
Output parameter: no
Related parameters: CallbackWithOneParam
method getProduct
CameraProduct getProduct();
Description: Gets the camera model.
Input parameters: no.
Output parameter: CameraProduct
Related parameters: CallbackWithOneParam
method getVersion
void getVersion(CallbackWithOneParam<String> callback);
Description: Gets the current version of the camera.
Input parameters:
callback: the callback when get the current version of the camera.
Output parameter: no.
Related parameters: CallbackWithOneParam
method setMediaMode
void setMediaMode(MediaMode mediaMode, CallbackWithNoParam callback);
Description: Sets the camera media mode.
Input parameters:
mediaMode: mediaMode the media mode enum.
callback: the callback when set the camera media mode.
Output parameter: no
Related parameters: MediaMode、CallbackWithOneParam
method getMediaMode
void getMediaMode(CallbackWithOneParam<MediaMode> callback);
Description: Gets the current camera media mode.
Input parameters:
callback: the callback when get the current camera media mode.
Output parameter: no
Related parameters: MediaMode、CallbackWithOneParam
method startTakePhoto
void startTakePhoto(CallbackWithNoParam callback);
Description: Request the camera to take a photo.1. Firstly, see if the camera is in the photo shooting mode.2. See if the camera is idle in the current mode. 3.See if the SD card is in the available state (CARD_READY,LOW_SPEED_CARD are all available).
Input parameters:
callback: the callback when start taking photos.
Output parameter: no
Related parameters: CallbackWithOneParam
method stopRecordVideo
void stopRecordVideo(CallbackWithNoParam callback);
Description: Request the camera to stop recording.See if the camera is recording now.
Input parameters:
callback: the callback when stop recording videos.
Output parameter: no.
Related parameters: CallbackWithOneParam
method stopTakePhoto
void stopTakePhoto(CallbackWithNoParam callback);
Description: Request the camera to stop taking time lapse photos.
Input parameters: callback: the callback when stop taking time lapse photos.
Output parameter: no
Related parameters: CallbackWithOneParam
method getCurrentRecordTime
void getCurrentRecordTime(CallbackWithOneParam<Integer> callback);
Description: get current record time
Input parameters:
callback: callback when get the current recording time.
Output parameter: no
Related parameters: CallbackWithOneParam
method getStateInfo
void getStateInfo(CallbackWithOneParam<BaseStateInfo> callback);
Description: Gets the state information of the camera (returns R12StateInfo for R12, returns XB015StateInfo for XB015).
Input parameters:
callback: the callback when get the state information of the camera
Output parameter: no.
Related parameters: CallbackWithOneParam、BaseStateInfo
method setCameraPattern
void setCameraPattern(CameraPattern cameraPattern, CallbackWithNoParam callback);
Description: Set interface mode after camera enters
Input parameters:
cameraPattern: camera Pattern
callback: the callback when set camera pattern 。
Output parameter: no.
Related parameters: CallbackWithOneParam、CameraPattern
method lockGimbalWhenTakePhoto
void lockGimbalWhenTakePhoto(AutelSwitchState state, CallbackWithNoParam callback);
Description: Lock gimbal when taking photo
Input parameters:
state: gimbal lock state
callback: the callback when lock gimbal when taking photo。
Output parameter: no.
Related parameters: CallbackWithNoParam、AutelSwitchState
method setGpsCoordinateType
void setGpsCoordinateType(int type, CallbackWithNoParam callback);
Description: Set interface mode after camera enters
Input parameters:
type: GPS coordinate type.
callback: callback when set Set interface mode after camera enters.
Output parameter: no.
Related parameters: CallbackWithNoParam
method getGpsCoordinateType
void getGpsCoordinateType(CallbackWithOneParam<Integer> callback);
Description: get gps coordinate type
Input parameters:
callback: callback when get gps coordinate type.
Output parameter: no
Related parameters: CallbackWithOneParam
method setLiveScreenDir
void setLiveScreenDir(int type, CallbackWithNoParam callback);
Description: Set live video direction
Input parameters:
callback: callback when set the direction of the live video
Output parameter: no
Related parameters: CallbackWithNoParam
method getLiveScreenDir
void getLiveScreenDir(CallbackWithOneParam<Integer> callback);
Description: get live video direction
Input parameters:
callback: callback when get the direction of the live video
Output parameter: no
Related parameters: CallbackWithNoParam
method toRx
RxAutelBaseCamera toRx();
Description: convert to ReactiveX interface。
Input parameters: no
Output parameter: AutelBaseCamera的ReactiveX object。
method setMissionRecordWayPointListener
void setMissionRecordWayPointListener(CallbackWithOneParam<MissionRecordWaypoint> callback);
Description: Task video monitoring.
Input parameters:
callback: callback when mission videotape
Output parameter: no
Related parameters: CallbackWithNoParam、MissionRecordWaypoint
method setPanoramicMissionListener
void setPanoramicMissionListener(CallbackWithOneParam<PanoramicRealInfo> callback);
Description: Set panoramic camera monitoring
Input parameters:
callback: canback when Panoramic photography.
Output parameter: no
Related parameters: CallbackWithNoParam、PanoramicRealInfo
method setPanoramicType
void setPanoramicType(PanoramicType type, CallbackWithNoParam callback);
Description: Set panorama type.
Input parameters:
type :Photo type
callback: callback when setting panorama type
Output parameter: no
Related parameters: CallbackWithNoParam、PanoramicType
method getPanoramicType
void getPanoramicType(CallbackWithOneParam<Integer> callback);
Description: Set panorama type.
Input parameters:
callback: callback when get panorama type
Output parameter: no
Related parameters: CallbackWithNoParam
method startPanoramicShoot
void startPanoramicShoot(CallbackWithNoParam callback);
Description: start panoramic shooting.
Input parameters:
callback: The observable object that starts panoramic photography.
Output parameter: no
Related parameters: CallbackWithNoParam
method stopPanoramicShoot
void stopPanoramicShoot(CallbackWithNoParam callback);
Description: stop panoramic shooting.
Input parameters:
callback: The observable object that stops panoramic photography.
Output parameter: no
Related parameters: CallbackWithNoParam
method setDigitalZoomScale
void setDigitalZoomScale(int factor, CallbackWithNoParam callback);
Description: Sets the digital zoom scale, ranges from 100 to 200.
Input parameters:
callback: the callback when set the digital zoom scale.
Output parameter: no
Related parameters: CallbackWithNoParam
method startEncryption
void startEncryption(String encrypt, CallbackWithNoParam callback);
Description: Start Encryption.
Input parameters: encrypt:Encryption Type callback: callback when start encryption.
Output parameter: no
Related parameters: CallbackWithNoParam
method startDecryption
void startDecryption(String decrypt, CallbackWithOneParam<Integer> callback);
Description: Start decryption.
Input parameters: decrypt:Decryption Type callback: callback when start decrypt
Output parameter: no
parameters: CallbackWithOneParam
method setImageMode
void setImageMode(int mode, CallbackWithNoParam callback);
Description: set photographing mode: 0 sunny day 1 cloudy day
Input parameters:
callback: callback when set photographing mode
Output parameter: no
parameters: CallbackWithNoParam
method getImageMode
void getImageMode(CallbackWithOneParam<Integer> callback);
Description: get photographing mode: 0 sunny day 1 cloudy day
Input parameters:
callback: callback when get photographing mode
Output parameter: no
parameters: CallbackWithOneParam
method setCalibrationFormat
void setCalibrationFormat(int mode, CallbackWithNoParam callback);
Description: set calibration format
Input parameters:
callback: callback when set calibration format
Output parameter: no.
Related parameters: CallbackWithOneParam
method getCalibrationFormat
void getCalibrationFormat(CallbackWithOneParam<Integer> callback);
Description: get calibration format
Input parameters:
callback: callback when get calibration format.
Output parameter: no.
Related parameters: CallbackWithOneParam
method setZoomSlide
void setZoomSlide(int mode, CallbackWithNoParam callback);
Description: Set sliding zoom
Input parameters:
mode:0 pix4D,1 default callback: callback when setting zoom slide
Output parameter: no
parameters: CallbackWithNoParam