EVO gimbal parameter and data API class
class EvoGimbal
method setAngleListener
void setAngleListener(CallbackWithOneParam<EvoAngleInfo> listener);
Description: Sets the listener for the gimbal pitch angle so as to monitor data in real time.
Input parameter: callback of the gimbal pitch angle. If this parameter is left empty, the listener will stop monitoring the gimbal angle data. The unit of the returned value is degree.
Output parameter: none.
Relevant parameter none.
method setGimbalAngle
void setGimbalAngle(float pitchAngle, float yaw, float roll);
Description: Sets the gimbal pitch angle.
Input parameter:
*@param-pitchAngle: gimbal pitch angel, ranging from 0° to 90°.
*@param-yaw: gimbal yaw angle, ranging from -30° to 30°.
*@param-roll: gimbal roll angle, ranging from -40° to 40°.
Output parameter: none.
Relevant parameter none.
method setGimbalAngleWithSpeed
void setGimbalAngleWithSpeed(float speed);
Description: Sets the shifting velocity of the gimbal pitch.
Input parameter: the shifting velocity.
Output parameter: none.
Relevant parameter none.
method getParameterRangeManager
EvoGimbalParameterRangeManager getParameterRangeManager();
Description: Returns the ParameterRangeManager of the gimbal.
Input parameter: none.
** Output parameter:* ParameterRangeManager of the gimbal.
Relevant parameter none.
method resetGimbalAngle
void resetGimbalAngle(GimbalAxisType gimbalRoller, CallbackWithNoParam callback);
Description: Resets the gimbal angle.
Input parameter: gimbalRoller (the gimbal roll axis), callback (callback when resetting the gimbal angle).
Output parameter: none.
Relevant parameter none.
method setRollAdjustData
void setRollAdjustData(float value, CallbackWithNoParam callback);
Description: Adjusts the roll axis of the gimbal.
Input parameter: value (the roll angle ranges from -10° to 10°) callback: callback when adjusting the roll axis.
Output parameter: none.
Relevant parameter none.
method getRollAdjustData
void getRollAdjustData(CallbackWithOneParam<Double> callback);
Description: Obtains the adjusted roll angle of the gimbal.
Input parameter: callback: callback when obtaining the adjusted roll angle of the gimbal.
Output parameter: none.
Relevant parameter none.
method getAdjustGimbalAngelData
void getAdjustGimbalAngelData(CallbackWithOneParam<GimbalAdjustmentAngle>
callback);
Description: Obtains the adjusted roll angle of the gimbal.
Input parameter: callback: callback when obtaining the adjusted roll angle of the gimbal.
Output parameter: none.
Relevant parameter none.
method setYawAdjustData
void setYawAdjustData(float value, CallbackWithNoParam callback);
Description: Adjusts the yaw angle of the gimbal.
Input parameter: value (the yaw angle ranges from -10° to 10°) callback (callback when adjusting the yaw angle)
Output parameter: none.
Relevant parameter none.
method getYawAdjustData
void getYawAdjustData(CallbackWithOneParam<Double> callback);
Description: Obtains the adjusted yaw angle of the gimbal.
Input parameter: callback (callback when obtaining the adjusted yaw angle of the gimbal)
Output parameter: none.
Relevant parameter none.
method setPitchAdjustData
void setPitchAdjustData(float value, CallbackWithNoParam callback);
Description: Adjusts the pitch angle of the gimbal.
Input parameter: @param the value of the pitch angle ranges from -10° to 10°.
@param callback: callback when adjusting the pitch angle.
Output parameter: none.
Relevant parameter none.
method getPitchAdjustData
void getPitchAdjustData(CallbackWithOneParam<Double> callback);
Description: Obtains the adjusted pitch angle of the gimbal.
Input parameter: @param callback: callback when obtaining the adjusted pitch angle of the gimbal.
Output parameter: none.
Relevant parameter none.
method setSaveParams
void setSaveParams(CallbackWithNoParam callback);
Description: Saves the gimbal adjustment parameters.
Input parameter: @param callback: callback when obtaining the adjusted pitch angle of the gimbal.
Output parameter: none.
Relevant parameter none.
method setGimbalCalibration
void setGimbalCalibration(CallbackWithNoParam callback);
Description: Enables the gimbal calibration.
Input parameter: @param callback: callback when enabling the gimbal calibration.
Output parameter: none.
Relevant parameter none.
/**
* This interface is used to provide gimbal parameters and data.
*/
class AutelGimbal
method setGimbalLimitUpward
void setGimbalLimitUpward(boolean isOpen, CallbackWithNoParam callback);
Description: Indicates whether to enable the functionality of tilting up the gimbal.
Input parameter: @param isOpen
Output parameter: none.
Relevant parameter none.
method getGimbalLimitUpward
void getGimbalLimitUpward(CallbackWithOneParam<Boolean> callback);
Description: Obtains the functionality of tilting up the gimbal.
Input parameter: @param callback (callback when getting the result of whether the gimbal tilting functionality is enabled)
Output parameter: none.
Relevant parameter none.
method setGimbalWorkMode
void setGimbalWorkMode(GimbalWorkMode mode, CallbackWithNoParam callback);
Description: Sets the gimbal work mode.
Input parameter: @param mode (enumerated values of the gimbal work mode)
@param callback (callback when setting the gimbal work mode)
Output parameter: none.
Relevant parameter none.
method getGimbalWorkMode
void getGimbalWorkMode(CallbackWithOneParam<GimbalWorkMode> callback);
Description: Obtains the gimbal work mode.
Input parameter: @param callback (callback when obtaining the gimbal work mode)
Output parameter: none.
Relevant parameter none.
method getVersionInfo
void getVersionInfo(CallbackWithOneParam<GimbalVersionInfo> callback);
Description: Obtains the gimbal version.
Input parameter: @param callback (callback when obtaining the gimbal version)
Output parameter: none.
Relevant parameter none.
method getParameterRangeManager
GimbalParameterRangeManager getParameterRangeManager();
Description: Obtains the ParameterRangeManager.
Input parameter: none.
** Output parameter:* ParameterRangeManager of the gimbal.
Relevant parameter none.
method toRx
RxAutelGimbal toRx();
Description: Converts into an ReactiveX API.
Input parameter: none.
Output parameter: ReactiveX API.
Relevant parameter none.