dji-sdk / mobile-sdk-android-v5 Goto Github PK
View Code? Open in Web Editor NEWMSDK V5 Sample
License: Other
MSDK V5 Sample
License: Other
Steps-to-reproduce:
With the correct ComponentIndexType
and CameraLensType.CAMERA_LENS_THERMAL
use CameraKey.KeyThermalDigitalZoomFactor.set(…)
with ThermalDigitalZoomFactor
other than FACTOR_X2
.
Expected:
IR camera zooms in or out.
Actual:
There is no error with other ThermalDigitalZoomFactor
but the camera does not zoom at all. Perhaps this is due to the fact that the M30T zoom levels are 2×, 5×, 10×, 20×; which do not have corresponding ThermalDigitalZoomFactor
enum values.
DJI FPV SDK. Please, I really need it
SDK Version: 5.1
I am currently integrating obstacle avoidance reporting and would like clarification on the unit of the values being returned. Normally, any distance value is returned in meters. However, I have previously integrated FlightControllerKey.KeyUltrasonicHeight
which explicitly returns it's values in decimeters (10 decimeters = 1 meter for those unaware). The keys I'm specifically curious about are FlightAssistantKey.KeyUpwardsAvoidanceDistance
and FlightAssistantKey.KeyDownwardsAvoidanceDistance
.
Normally I'd check the docs but FlightAssistantKey
does not appear to be documented yet.
我按文档要求一步步集成了sdk
但是在推流RTMP和AGORA的时候发现失败
ErrorImp{errorType='LIVESTREAM', errorCode='UNKNOWN', innerCode='null', description='未知直播错误', hint='Live Stream error is unknown'}
然后以为是surfaceview的问题,并单独创建了一个,也集成了
if (videoDecoder == null) {
videoDecoder = VideoDecoder(
this,
LiveStreamManager.getInstance().videoChannelType,
DecoderOutputMode.SURFACE_MODE,
mDatabind.liveStreamSurfaceView.holder,
-1,
-1,
true
)
} else if (videoDecoder?.decoderStatus == DecoderState.PAUSED) {
videoDecoder?.onResume()
}
但是还是失败,日志中
MRTCController - Couldn't load lib
LOG_JNI - [MRTC-E mrtc_core_init: 93]: : mrtc_core_init file path: /data/app/~~aFa4X5Y21O_pb1sOZU6olQ==/com.ws.packagename-2QtZ4euC7N9DGrMgDbWSTw==/lib/arm64
LOG_JNI - [MRTC-E find_dl_handle_node_by_prot_name: 70]: : can't find dl_node by prot_name dji,agora
LOG_JNI - [MRTC-E mrtc_agent_init: 190]: : can't find dl_handle_node in lib handle list
MRTCLiveShare - init agent error,code = 420478983
MRTCLiveShare - initMrtcAgent error,code = 420478983
这两个code = 420478983
无从查起,不知道是啥意思
然后发现在apk中是有so库的,但是在/data/app/packagename-1/lib
下并没有写入任何的so库文件,是不是因此导致Couldn't load lib
?
在sample中是可以的,并且新开了一个项目(有且只有依赖了库,项目逻辑代码只有如下,也并没有surface的创建,虽然知道并不会成功,只是想看看是否能完成so的加载),居然也可以。
TestProject:
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
SDKManager.getInstance().init(this, object : SDKManagerCallback {
override fun onRegisterSuccess() {}
override fun onRegisterFailure(error: IDJIError?) {}
override fun onProductDisconnect(product: Int) {}
override fun onProductConnect(product: Int) {}
override fun onProductChanged(product: Int) {}
override fun onInitProcess(event: DJISDKInitEvent?, totalProcess: Int) {}
override fun onDatabaseDownloadProgress(current: Long, total: Long) {}
})
findViewById<Button>(R.id.btn).setOnClickListener{
val settings = LiveStreamSettings.Builder()
.setLiveStreamType(LiveStreamType.AGORA)
.setAgoraSettings(AgoraSettings.Builder()
.setChannelId("test")
.setToken("really token from Agora")
.setUid("50000")
.setEnableSafety(false)
.build()).build()
LiveStreamManager.getInstance().liveStreamSettings = settings
LiveStreamManager.getInstance().startStream(object : CommonCallbacks.CompletionCallback{
override fun onSuccess() {
Log.e("apex","stream ok")
}
override fun onFailure(error: IDJIError) {
Log.e("apex","stream failed :${error.description()}")
}
})
}
}
}
class App : Application(){
override fun attachBaseContext(base: Context?) {
super.attachBaseContext(base)
com.secneo.sdk.Helper.install(this)
}
}
这个问题倒腾了两三天了,希望务必能帮忙看一下!
After i resolve all the conflicts i am left with:
Duplicate class com.secneo.sdk.Helper found in modules dji-sdk-v5-all-5.0.0-runtime.jar (com.dji:dji-sdk-v5-all:5.0.0) and jetified-dji-sdk-4.16.1-runtime.jar (com.dji:dji-sdk:4.16.1)
how do i fix that?
M30 drone is not recognised with 5.1 sdk
Hello,
I developed an application using MSDK v4.16. For live video stream, the MSDK uses RTMP protocol which has latency.
Does MSDK v5 support WebRTC for live video streaming?
Thanks
base_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
Hello. I'm running the app out of the box as it is and I can't get an image from the drone (the api key is of course installed). The registration of the application is successful, all indicators are read from the drone, but there is no image. I also tried to build from SDK 5.0, but the application crashes there immediately after registration, nothing can be done. Please tell me what I should pay attention to. I have removed all third-party applications (official dji), nothing interferes with the work.
Mavic 3
Thanks
when I build the app through tutorials from the https://developer.dji.com/doc/mobile-sdk-tutorial/en/quick-start/user-project-caution.html#modify-the-androidmanifest-xml-file
2022-09-01 11:12:39.194 29086-29086/com.dji.myapplication I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2022-09-01 11:12:39.194 29086-29086/com.dji.myapplication I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2022-09-01 11:12:39.207 29086-29086/com.dji.myapplication E/libc: Access denied finding property "ro.odm.prev.product.name"
2022-09-01 11:12:39.245 29086-29086/com.dji.myapplication I/Perf: Connecting to perf service.
2022-09-01 11:12:39.253 29086-29086/com.dji.myapplication E/Perf: perftest packageName : com.dji.myapplication App is allowed to use Hide APIs
2022-09-01 11:12:39.261 29086-29086/com.dji.myapplication D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-09-01 11:12:39.262 29086-29086/com.dji.myapplication D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-09-01 11:12:39.318 29086-29086/com.dji.myapplication W/i.myapplicatio: Accessing hidden field Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; (greylist, reflection, allowed)
2022-09-01 11:12:39.318 29086-29086/com.dji.myapplication W/i.myapplicatio: Accessing hidden method Ldalvik/system/DexPathList;->makeInMemoryDexElements([Ljava/nio/ByteBuffer;Ljava/util/List;)[Ldalvik/system/DexPathList$Element; (greylist, JNI, allowed)
2022-09-01 11:12:39.451 29086-29086/com.dji.myapplication W/i.myapplicatio: Accessing hidden field Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; (greylist, reflection, allowed)
2022-09-01 11:12:39.516 29086-29215/com.dji.myapplication E/libEGL: Invalid file path for libcolorx-loader.so
2022-09-01 11:12:39.575 29086-29086/com.dji.myapplication I/oplus.android.OplusFrameworkFactoryImpl: getOplusRedPacketManager
2022-09-01 11:12:39.687 29086-29086/com.dji.myapplication W/i.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2022-09-01 11:12:39.688 29086-29086/com.dji.myapplication W/i.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2022-09-01 11:12:39.692 29086-29086/com.dji.myapplication E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
2022-09-01 11:12:39.771 29086-29086/com.dji.myapplication D/AndroidRuntime: Shutting down VM
--------- beginning of crash
2022-09-01 11:12:39.773 29086-29086/com.dji.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dji.myapplication, PID: 29086
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/aspectj/runtime/reflect/Factory;
at dji.v5.manager.SDKManager.co_a(SDKManager.java:1)
at dji.v5.manager.SDKManager.<clinit>(SDKManager.java:1)
at dji.v5.manager.SDKManager.getInstance(SDKManager.java:1)
at com.dji.myapplication.MainActivity.registerApp(MainActivity.java:22)
at com.dji.myapplication.MainActivity.onCreate(MainActivity.java:18)
at android.app.Activity.performCreate(Activity.java:8153)
at android.app.Activity.performCreate(Activity.java:8137)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3698)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3896)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2326)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:263)
at android.app.ActivityThread.main(ActivityThread.java:8296)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.aspectj.runtime.reflect.Factory" on path: DexPathList[[zip file "/data/app/~~je4iu7K2dlWXHv2FRw7Tsw==/com.dji.myapplication-RsqSjjmPHmHFqbn3YL55-A==/base.apk", dex file "InMemoryDexFile[cookie=[0, 478291117312]]"],nativeLibraryDirectories=[/data/app/~~je4iu7K2dlWXHv2FRw7Tsw==/com.dji.myapplication-RsqSjjmPHmHFqbn3YL55-A==/lib/arm64, /data/app/~~je4iu7K2dlWXHv2FRw7Tsw==/com.dji.myapplication-RsqSjjmPHmHFqbn3YL55-A==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64, /vendor/lib64, /odm/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at dji.v5.manager.SDKManager.co_a(SDKManager.java:1)
at dji.v5.manager.SDKManager.<clinit>(SDKManager.java:1)
at dji.v5.manager.SDKManager.getInstance(SDKManager.java:1)
at com.dji.myapplication.MainActivity.registerApp(MainActivity.java:22)
at com.dji.myapplication.MainActivity.onCreate(MainActivity.java:18)
at android.app.Activity.performCreate(Activity.java:8153)
at android.app.Activity.performCreate(Activity.java:8137)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3698)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3896)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2326)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:263)
at android.app.ActivityThread.main(ActivityThread.java:8296)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
2022-09-01 11:12:40.037 29086-29086/com.dji.myapplication I/Process: Sending signal. PID: 29086 SIG: 9
app:uxsdk_sourceCameraSideVisibility="false" does not set according to property. Side is always displayed.
Our apps specifically used the ability to read the point's value to calculate center lines and such as points are manipulated. Will this be returning, or do I need to create abstractions for missing properties needed?
Specifically, just reading point's list
V4:
public interface DJIPolyline {
void remove();
void setWidth(float var1);
float getWidth();
void setPoints(List<DJILatLng> var1);
List<DJILatLng> getPoints();
void setColor(@ColorInt int var1);
@ColorInt
int getColor();
void setZIndex(float var1);
float getZIndex();
}
V5:
public interface DJIPolyline {
void remove();
void setWidth(float var1);
void setPoints(List<DJILatLng> var1);
void setColor(int var1);
}
For the mavic 3 enterprise and its thermal equivalent, the documentation doesn't explicitly specify the required information for the <wpml:droneInfo>
and <wpml:payloadInfo>
elements.
Do the mavic 3 enterprise and mavic 3 thermal support flight planning? If so, then what values should be set for the droneEnumValue
,droneSubEnumValue
, payloadEnumValue
, payloadSubEnumValue
, and payloadPositionIndex
?
<wpml:droneInfo>
<wpml:droneEnumValue>67</wpml:droneEnumValue>
<wpml:droneSubEnumValue>0</wpml:droneSubEnumValue>
</wpml:droneInfo>
<wpml:payloadInfo>
<wpml:payloadEnumValue>52</wpml:payloadEnumValue>
<wpml:payloadSubEnumValue>0</wpml:payloadSubEnumValue>
<wpml:payloadPositionIndex>0</wpml:payloadPositionIndex>
</wpml:payloadInfo>
```
2022-09-02 09:47:32.855 11586-11586/com.dji.myapplication E/libc: Access denied finding property "ro.odm.prev.product.name"
2022-09-02 09:47:32.903 11586-11586/com.dji.myapplication E/Perf: perftest packageName : com.dji.myapplication App is allowed to use Hide APIs
2022-09-02 09:47:33.093 11586-11613/com.dji.myapplication E/libEGL: Invalid file path for libcolorx-loader.so
2022-09-02 09:47:33.235 11586-11586/com.dji.myapplication E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
2022-09-02 09:47:33.286 11586-11586/com.dji.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dji.myapplication, PID: 11586
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/aspectj/runtime/reflect/Factory;
at dji.v5.manager.SDKManager.co_a(SDKManager.java:1)
at dji.v5.manager.SDKManager.(SDKManager.java:1)
at dji.v5.manager.SDKManager.getInstance(SDKManager.java:1)
at com.dji.myapplication.MainActivity.J(:24)
at com.dji.myapplication.MainActivity.onCreate(:20)
at android.app.Activity.performCreate(Activity.java:8153)
at android.app.Activity.performCreate(Activity.java:8137)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3698)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3896)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2326)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:263)
at android.app.ActivityThread.main(ActivityThread.java:8296)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.aspectj.runtime.reflect.Factory" on path: DexPathList[[zip file "/data/app/~~pbIfVAeDF_HZ0L7Ra3GJzg==/com.dji.myapplication-qpH91B55qUn1BNnozgRmUA==/base.apk", dex file "InMemoryDexFile[cookie=[0, 534337731008]]"],nativeLibraryDirectories=[/data/app/~~pbIfVAeDF_HZ0L7Ra3GJzg==/com.dji.myapplication-qpH91B55qUn1BNnozgRmUA==/lib/arm64, /data/app/~~pbIfVAeDF_HZ0L7Ra3GJzg==/com.dji.myapplication-qpH91B55qUn1BNnozgRmUA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64, /vendor/lib64, /odm/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
```
When attaching a state change listener to a VideoChannel after SDK initialization/registration, the state of the channel flips between ON and CLOSE one or more times. I assume this is just the initialization process of the channel.
Is there any way to tell when the video channel is done initializing and is ready to use?
Is there something in v5 like the ComponentListener in v4?
Or do I just need to wait ~10 secs before I start using video channels?
Is there a replacement for getFlightController().sendVirtualStickFlightControlData() from MSDK v4?
I know that there is VirtualStickManager.getLeftStick(). setVerticalPosition() but i see the values are not in m/s but are from -660 to 660.
Caused by: net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master;
at net.sqlcipher.database.SQLiteCompiledSql.native_compile(Native Method)
at net.sqlcipher.database.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
at net.sqlcipher.database.SQLiteCompiledSql.(SQLiteCompiledSql.java:64)
at net.sqlcipher.database.SQLiteProgram.(SQLiteProgram.java:91)
at net.sqlcipher.database.SQLiteQuery.(SQLiteQuery.java:48)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:60)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:2016)
at net.sqlcipher.database.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1902)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase(SQLiteDatabase.java:2673)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2603)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1247)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1322)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:166)
at com.commonsware.cwac.saferoom.Helper$OpenHelper.getWritableSupportDatabase(Helper.java:172)
at com.commonsware.cwac.saferoom.Helper.getWritableDatabase(Helper.java:82)
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.java:483)
at co_a.co_c.co_a.co_a.co_a.co_b.co_b.co_b(AnalyticsDao_Impl.java:3)
at co_a.co_c.co_a.co_a.co_a.co_a.co_f(AnalyticsDatabaseController.java:2)
at co_a.co_c.co_a.co_a.co_a.co_a.co_a(AnalyticsDatabaseController.java:10)
at co_a.co_c.co_a.co_a.co_b.co_a.init(AnalyticsEngine.java:8)
at dji.v5.manager.SDKManager.init(SDKManager.java:7)
at com.silver.drone.common.BaseMainActivityVm.registerApp(BaseMainActivityVm.kt:25)
at com.silver.drone.MainActivity.startSDKRegistration(MainActivity.kt:158)
at com.silver.drone.MainActivity.initDrone(MainActivity.kt:150)
at com.silver.drone.MainActivity.initViewModel(MainActivity.kt:119)
at com.silver.drone.MainActivity.initView(MainActivity.kt:104)
at com.silver.base.BaseActivity.onCreate(BaseActivity.kt:37)
at android.app.Activity.performCreate(Activity.java:8000)
at android.app.Activity.performCreate(Activity.java:7984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3464)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3643)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2105)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7700)
gradle
//大疆
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'androidx.room:room-runtime:2.4.2'
implementation 'com.commonsware.cwac:saferoom.x:1.3.0'
implementation 'androidx.room:room-rxjava2:2.4.2'
implementation 'org.java-websocket:Java-WebSocket:1.5.1'
kapt 'androidx.room:room-compiler:2.4.2'
implementation "com.dji:library-networkrtk-helper:2.0.2"
compileOnly files('libs/aircraft-provided-5.0.0_beta1_322.jar')
implementation files('libs/aircraft-release-5.0.0_beta1_322_sec.aar')
runtimeOnly files('libs/networkImp-release-5.0.0_beta1_322.aar')
Steps-to-reproduce:
sample-app-aircraft
Expected:
Video feed(s) reconnect and resume.
Actual:
On first connection, the following returns at least one StreamSource
.
MediaDataCenter.getInstance().videoStreamManager.availableStreamSources
After rebooting the aircraft, this list is always empty.
示例中提示【在当前页面必须得有Surface画面渲染】,但是我看了源码 在FPVWidget 创建的时候同时也创建了surface,因为在FPVWidget.kt类中存在surfaceCreated方法和surfaceChanged方法,那么在FPVWidget 组件存在的界面中,即使在界面中添加SurfaceView控件也是可以正常直播的,但是我的直播一直是开启失败。下面是开启失败后的报错信息,我有点看不懂是什么意思。
【can't find dl_node by prot_name dji,rtmp
can't find dl_handle_node in lib handle list】
When I open app-all in Android Studio i get this build error:
Build file 'C:\Users\antho\dev\Mobile-SDK-Android-V5\SampleCode-V5\android-sdk-v5-sample\app-all\build.gradle' line: 1
A problem occurred evaluating root project 'app-all'.
> Plugin with id 'com.android.application' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Hello,
In MSDK v4.16.2 i could get the Aircraft's FlightMode from:
FlightControllerState .getFlightMode()
And i would get values like: "ATTI, GPS_ATTI, GO_HOME, Etc.."
I don't see a way now to get the FlightMode like the old SDK.
how do i get that?
运行demo后使用rtmp进行推流,遥控器和推流画面都存在花屏,是因为现在是beta版本没有开发好吗
SDK Version: 5.0.0
In utilizing the MediaManager
class, and following the guide outlined here, I have found that there is no way to tell if the MediaManager
is enabled or disabled without tracking outside of the SDK. This causes problems as calling MediaManager.getInstance().disable()
when it is already disabled will result in the calling thread indefinitely hanging. The required callback methods for disable()
never fire. An example:
suspend fun closeMediaManager(): Boolean {
if (!isMediaManagerEnabled) { // Variable used in my application to track MediaManager state
return true
}
return suspendCoroutine { continuation ->
MediaManager.getInstance().disable(object : CompletionCallback {
override fun onSuccess() {
Log.e(TAG, "disable onSuccess") // Never fires
isMediaManagerEnabled = false
// Clear local data to save memory
MediaManager.getInstance().release()
continuation.resume(true)
}
override fun onFailure(error: IDJIError) {
Log.e(TAG, "Failed to disable mediaManager: $error") // Never fires
continuation.resume(false)
}
})
}
}
I tried implementing MediaManager.getInstance().addMediaFileListStateListener
in hopes that this would return something unique when the MediaManager
is disabled. However, the only values I've seen are IDLE
, UPDATING
, and UP_TO_DATE
and the values never change when enable()
or disable()
is called.
If the intended behavior is for the user to never call disable()
when it is already disabled, is there a way to tell if the MediaManager
is enabled utilizing the SDK?
Is there an equivalent to LaserMeasureInformation
(from MSDK 4.16) in MSDK 5.0? I'm trying to get the target distance.
DJI AirSense system在v5版本的sdk中是暂时还没支持吗?
RadarWidget、GridLineView引入不显示、FPVWidget的uxsdk_videoChannelType选择primaryStreamChannel不显示
As the title says,
I have a Mini 2, I have built the android-idk-v5-as
app, launched it on my Android phone, successfully registered, and connected to the drone. I know I'm connected to the drone because when I click "Default Layout" I see the roll/pitch/yaw numbers changing when I move the drone around.
But I cannot get any video stream - it just shows black background. When I go Testing Tools -> Live Stream -> Start Live Stream
it just give me an error: Start Live Stream Failed: live stream param is invalid
.
I have the latest version of the code (as of today):
commit 7febbd3bb915b2af87826339c41c9ae4d9194743 (HEAD -> dev-sdk-main, origin/dev-sdk-main, origin/HEAD)
Author: hoker.wu <[email protected]>
Date: Wed Jun 8 15:07:39 2022 +0800
On the V4 SDK: https://github.com/dji-sdk/Mobile-SDK-Android I can successfully connect and view video from the Drone.
Hello,
i am using M30 with SDK v5.0.0
When i try to move the gimbal i get error message "null"
This is my code to set the gimbal by angle:
GimbalAngleRotation gimbalAngleRotation = new GimbalAngleRotation();
gimbalAngleRotation.setMode(GimbalAngleRotationMode.ABSOLUTE_ANGLE);
gimbalAngleRotation.setPitchIgnored(true);
gimbalAngleRotation.setYawIgnored(true);
gimbalAngleRotation.setRollIgnored(true);
if (!Float.isNaN(pitchAngle)) {
gimbalAngleRotation.setPitch((double) pitchAngle);
gimbalAngleRotation.setPitchIgnored(false);
}
if (!Float.isNaN(yawAngle)) {
gimbalAngleRotation.setYaw((double) yawAngle);
gimbalAngleRotation.setYawIgnored(false);
}
gimbalAngleRotation.setDuration(2.0);
KeyManager.getInstance().setValue(KeyTools.createKey(GimbalKey.KeyRotateByAngle), gimbalAngleRotation, new CommonCallbacks.CompletionCallback() {
@OverRide
public void onSuccess() {
}
@Override
public void onFailure(@NonNull IDJIError error) {
log.logErr("setGimbalAngle", error);
}
});
Is there something i am doing wrong?
how build this project
SDK version: 5.0.0
Drone: M30
Drone Firmware: V04.02.0000
I am attempting to use FlightControllerKey.KeyHomeLocationUsingCurrentRemoteControllerLocation
to update the return-to-home location. I am implementing it as shown:
fun returnToRC(controllerLocation: LatLng) {
// To start a return-to-remote-controller, we first have to tell the SDK to user the
// provided location as the go-home location
keyManager.performAction(
KeyTools.createKey(FlightControllerKey.KeyHomeLocationUsingCurrentRemoteControllerLocation),
LocationCoordinate2D(controllerLocation.latitude, controllerLocation.longitude),
object : CompletionCallbackWithParam<EmptyMsg> {
override fun onSuccess(t: EmptyMsg?) {
// Do something on success
}
override fun onFailure(error: IDJIError) {
Log.e("DEBUGTAG", "Return to RC failed: ${error.errorCode()} - $error")
}
}
)
}
Whenever I call this, whether the drone is on the ground or in the air, I get the following log:
Return to RC failed: CORE_SYSTEM_ERROR - DJIError{errorCode='CORE_SYSTEM_ERROR', innerCode='', description='null', hint='error code = -7}
What am I doing wrong? This particular key is not used in the sample app (Neither is the related KeyHomeLocationUsingCurrentAircraftLocation
)
NOTICE : replace application's packageName with XXXX in the crash log below
2022-06-07 15:13:45.890 10428-10428/XXXX E/linker: "/data/app/XXXX-NB-mKMI5KEYSyKpB1HZbYA==/lib/arm64/libconstants.so" .dynamic section has invalid offset: 0xbae0, expected to match PT_DYNAMIC offset: 0x0
2022-06-07 15:13:45.891 10428-10428/XXXX E/XXXX: No implementation found for java.util.Map dji.v5.utils.inner.ConstantsUtils.nativeGetRootCACerts() (tried Java_dji_v5_utils_inner_ConstantsUtils_nativeGetRootCACerts and Java_dji_v5_utils_inner_ConstantsUtils_nativeGetRootCACerts__)
2022-06-07 15:13:45.891 10428-10428/XXXX E/DJIV5_SDKManager@e8fd557: (initNetwork:4) initNetwork error. No implementation found for java.util.Map dji.v5.utils.inner.ConstantsUtils.nativeGetRootCACerts() (tried Java_dji_v5_utils_inner_ConstantsUtils_nativeGetRootCACerts and Java_dji_v5_utils_inner_ConstantsUtils_nativeGetRootCACerts__)
2022-06-07 15:13:45.894 10428-10428/XXXX E/XXXX: No implementation found for java.lang.String dji.v5.utils.inner.ConstantsUtils.getConstant(int) (tried Java_dji_v5_utils_inner_ConstantsUtils_getConstant and Java_dji_v5_utils_inner_ConstantsUtils_getConstant__I)
Is there any plan to support hotpoints (orbitals)?
Using the v5.1 SDK, there is no mention of hotpoints or orbitals anywhere in the docs or the API.
In V5.0.0 i used TextureView to create the VideoDecoder and it worked, but after i upgraded to 5.1.0 i got an exeption:
java.lang.IllegalArgumentException: The outputSurface must be a object of Surface, SurfaceHolder, SurfaceTexture, SurfaceView
But i am using the SurfaceTexture of the SurfaceView.
Mobile-SDK-Android-V5/SampleCode-V5/android-sdk-v5-sample/app-aircraft/src/main/AndroidManifest.xml
when use Bundle Identifier dji.sampleV5.aircraft
registe error
then change
line 3 package="dji.sampleV5.aircraft"
to package="com.dji.sampleV5.aircraft"
and using Bundle Identifiercom.dji.sampleV5.aircraft to registe application successed
2022-09-02 15:31:28.194 3251-3251/? E/OplusNecManagerHelper: com.oplus.nec.OplusNecManager.notifyOrigSignalStrengthChanged [class android.telephony.SignalStrength, int]
2022-09-02 15:31:30.674 3251-3251/? E/OplusNecManagerHelper: com.oplus.nec.OplusNecManager.notifyOrigSignalStrengthChanged [class android.telephony.SignalStrength, int]
2022-09-02 15:31:31.051 1871-6946/? E/OplusTrack-ApkInfoUtil: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.get(java.lang.String)' on a null object reference
2022-09-02 15:31:31.070 1871-4822/? E/OppoThermalStats: Error getting package info: com.oppo.launcher
2022-09-02 15:31:31.076 3268-3268/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:31.081 3268-3268/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:31.096 3251-3251/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-09-02 15:31:31.097 3251-3251/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-09-02 15:31:31.106 3268-3268/? E/Launcher.ColorBubbleTextView: mForceHideDot is false
2022-09-02 15:31:31.108 3268-3268/? E/Launcher.ColorBubbleTextView: mForceHideDot is false
2022-09-02 15:31:31.124 29185-29185/? E/studio.deploy: Could not remove dir '/data/data/com.dji.myapplication/code_cache/.ll/': No such file or directory
2022-09-02 15:31:31.148 1871-12529/? E/ANDR-PERF-JNI: UXEngine Trigger - Returning null
2022-09-02 15:31:31.187 4058-4091/? E/oiface: packageSwitch pkg com.oppo.launcher, enter
2022-09-02 15:31:31.187 4058-4091/? E/oiface: current package is com.oppo.launcher and pid is 3268
2022-09-02 15:31:31.190 6814-6828/? E/RemoteGuardClient.DWB.ActivityMonitor: onProcessDied com.dji.myapplication pid = 29208 uid = 10492
2022-09-02 15:31:31.198 6814-6994/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:31.208 4058-4085/? E/oiface: Average freq 884374 for 19s.
2022-09-02 15:31:31.209 4058-4085/? E/oiface: Average freq 839417 for 19s.
2022-09-02 15:31:31.210 1871-4767/? E/ORMS_Platform : OplusResourceManagerPlatformUtils: readFile function exception:/sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/freq_table_mhz: open failed: EACCES (Permission denied)
2022-09-02 15:31:31.211 4058-4085/? E/oiface: get gpu freq table failed
2022-09-02 15:31:31.216 4058-4085/? E/oiface: client not found, skipped
2022-09-02 15:31:31.240 1871-4904/? E/ORMS_Platform : OplusResourceManagerPlatformUtils: readFile function exception:/sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/freq_table_mhz: open failed: EACCES (Permission denied)
2022-09-02 15:31:31.240 4058-4085/? E/oiface: get gpu freq table failed
2022-09-02 15:31:31.270 3251-3251/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-09-02 15:31:31.271 3251-3251/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-09-02 15:31:31.334 1871-2919/? E/system_server: No package ID 7f found for ID 0x7f1001d2.
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.337 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.338 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.340 1871-2919/? E/ColorZoomWindowManagerService: onConfigurationChanged rotation not changed - prevRotation: 0
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.341 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.344 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.342 1871-2919/? E/ColorZoomWindowManagerService: onConfigurationChanged rotation not changed - prevRotation: 0
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.363 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.364 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.365 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.367 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.368 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.369 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.423 29321-29321/? E/i.myapplicatio: Unknown bits set in runtime_flags: 0x40000000
2022-09-02 15:31:31.438 29321-29321/? E/RefClass: java.lang.reflect.InvocationTargetException
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.457 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.460 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.461 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.461 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.461 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.461 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.461 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:31.463 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:31.465 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:31.479 1871-2022/? E/OppoThermalStats: Error getting package info: com.dji.myapplication
2022-09-02 15:31:31.501 4058-4091/? E/oiface: packageSwitch pkg com.dji.myapplication, enter
2022-09-02 15:31:31.501 4058-4091/? E/oiface: current package is com.dji.myapplication and pid is 29321
2022-09-02 15:31:31.519 4058-4085/? E/oiface: Average freq 2102731 for 0s.
2022-09-02 15:31:31.520 4058-4085/? E/oiface: Average freq 1605760 for 0s.
2022-09-02 15:31:31.521 1871-2314/? E/ORMS_Platform : OplusResourceManagerPlatformUtils: readFile function exception:/sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/freq_table_mhz: open failed: EACCES (Permission denied)
2022-09-02 15:31:31.522 4058-4085/? E/oiface: get gpu freq table failed
2022-09-02 15:31:31.524 4058-4085/? E/oiface: client not found, skipped
2022-09-02 15:31:31.542 29321-29321/com.dji.myapplication E/libc: Access denied finding property "ro.odm.prev.product.name"
2022-09-02 15:31:31.544 1871-4767/? E/ORMS_Platform : OplusResourceManagerPlatformUtils: readFile function exception:/sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/freq_table_mhz: open failed: EACCES (Permission denied)
2022-09-02 15:31:31.544 4058-4085/? E/oiface: get gpu freq table failed
2022-09-02 15:31:31.722 6814-6994/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:31.736 6814-6994/? E/RemoteGuardClient.DWB.ActivityMonitor: startGameAppMonitor failed! Failed resolution of: Lcom/oplus/remoteguardservice/GameIndulgeMonitorManager;
2022-09-02 15:31:31.738 6814-6994/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:32.226 6814-6994/? E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:32.250 29321-29321/com.dji.myapplication E/Perf: perftest packageName : com.dji.myapplication App is allowed to use Hide APIs
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:32.408 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:32.409 29321-29349/com.dji.myapplication E/libEGL: Invalid file path for libcolorx-loader.so
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:32.410 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:32.537 29321-29321/com.dji.myapplication E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
2022-09-02 15:31:32.600 29321-29321/com.dji.myapplication E/myApp: myApp onInitProcess
2022-09-02 15:31:32.608 29321-29321/com.dji.myapplication E/DJIV5_SDKManager@b2abc12: (initNetwork:4) initNetwork error. dji.v5.network.DJINetworkImp
2022-09-02 15:31:33.176 29321-29321/com.dji.myapplication E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:33.195 29321-29321/com.dji.myapplication E/Parcel: Reading a NULL string not supported here.
2022-09-02 15:31:33.214 29321-29321/com.dji.myapplication E/GuidUtil: (co_a:3) error:1e00007b:Cipher functions:OPENSSL_internal:WRONG_FINAL_BLOCK_LENGTH
2022-09-02 15:31:33.220 622-622/? E/SELinux: avc: denied { find } for pid=4311 uid=10472 name=OplusResourceManagerService scontext=u:r:mediaprovider_app:s0:c216,c257,c512,c768 tcontext=u:object_r:oplus_resource_manager_service:s0 tclass=service_manager permissive=0
2022-09-02 15:31:33.220 4311-8016/? E/Orms_ManagerInner: cannot connect to orms core service!
2022-09-02 15:31:33.220 4311-8016/? E/Orms_Manager: Class: android.graphics.BitmapFactory there is some exception that check permission failed!
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.345 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.346 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:33.457 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.457 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.457 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:33.457 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.457 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu6-llcc-ddr-lat/min_freq
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 12]
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu0-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 8]
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-UTIL: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/devfreq/soc:qcom,cpu4-cpu-llcc-lat/mem_latency/ratio_ceil
2022-09-02 15:31:33.458 1023-1055/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [13, 9]
2022-09-02 15:31:33.808 29321-29321/com.dji.myapplication E/myApp: myApp onInitProcess
2022-09-02 15:31:33.808 29321-29321/com.dji.myapplication E/myApp: myApp start registerApp
2022-09-02 15:31:33.873 29321-29359/com.dji.myapplication E/myApp: myApp onRegisterFailure
it seem like the network package here E/DJIV5_SDKManager@b2abc12: (initNetwork:4) initNetwork error. dji.v5.network.DJINetworkImp
is not working.
Steps-to-reproduce:
With the correct ComponentIndexType
and CameraLensType.CAMERA_LENS_THERMAL
use CameraKey.KeyThermalRegionMetersureArea.set(…)
with DoublePoint2D
where x, y, width, height are 0…1.
Expected:
Camera restricts thermal measuring region.
Actual:
CameraKey.KeyThermalAreaTemperatureAggregations.listen(…)
still returns points outside of the specified region.
DJIError{errorCode='CORE_INVALID_PARAMETERS', innerCode='', description='null', hint='error code = -483'}
Is WebRTC protocol supported on MSDK V5? (As mentioned here?)
Is there a documentation on how to start the Web RTC live stream?
Hello,
I am trying to start stream in my app and after i do startStream() i get a success message but no stream appear on my backend.
When i try this with the sample it does work.
This is my code to start the stream:
LiveStreamManager.getInstance().addLiveStreamStatusListener(new LiveStreamStatusListener() {
@OverRide
public void onLiveStreamStatusUpdate(LiveStreamStatus status) {
Log.d("LOG", "Status; " + status.isStreaming() + ", " + status.getFps() + ", " + status.getPacketCacheLen() + ", " + status.getResolution().getWidth() + ", " + status.getPacketLoss() + ", " + status.getVbps());
}
@Override
public void onError(IDJIError error) {
Log.d("LOG", "Status; " + error.description());
}
});
LiveStreamSettings settings = new LiveStreamSettings.Builder()
.setLiveStreamType(LiveStreamType.RTMP)
.setRtmpSettings(new RtmpSettings.Builder()
.setUrl(url).build()).build();
LiveStreamManager.getInstance().setLiveStreamQuality(StreamQuality.FULL_HD);
LiveStreamManager.getInstance().setLiveVideoBitrateMode(LiveVideoBitrateMode.AUTO);
LiveStreamManager.getInstance().setVideoChannelType(VideoChannelType.PRIMARY_STREAM_CHANNEL);
LiveStreamManager.getInstance().setLiveStreamSettings(settings);
LiveStreamManager.getInstance().startStream(new CommonCallbacks.CompletionCallback() {
@Override
public void onSuccess() {
Log.d("LOG", "onSuccess");
}
@Override
public void onFailure(@NonNull IDJIError error) {
Log.d("LOG", "onFailure");
}
});
I am also implementing in the gradle:
implementation "com.dji:dji-sdk-v5-all:5.0.0"
compileOnly "com.dji:dji-sdk-v5-all-provided:5.0.0"
implementation "com.dji:dji-sdk-v5-networkImp:5.0.0"
Why is it working in the sample but when i try it in my app it doesn't?
I am using Java not Kotlin.
And i'm using the M30 aircraft.
Hello,
In MSDK v4 i could get a bitmap from the codec manager of the FPVWidget.
How can i do that with MSDK v5?
The map code is 100% commented out.
When trying to instantiate a VideoDecoder with a Surface, I get this exception:
10-11 12:35:49.240 29184 29434 D ACRA : starting video channel: PRIMARY_STREAM_CHANNEL PORTSIDE SURFACE_MODE
10-11 12:35:49.241 29184 29434 D ACRA : outputSurface: Surface(name=null)/@0xeb7425b
--------- beginning of crash
10-11 12:35:49.705 29184 29375 D ACRA : primary channel state changed: from CLOSE to ON
10-11 12:35:49.705 29184 29375 D ACRA : primary channel state changed: from ON to CLOSE
10-11 12:35:49.883 29184 29375 D ACRA : primary channel state changed: from CLOSE to ON
10-11 12:35:50.342 29184 29184 D ACRA : startVideoCallback success
10-11 12:35:52.268 29184 29434 E ACRA : ACRA caught a IllegalArgumentException for com.---.---.---.dji
10-11 12:35:52.268 29184 29434 E ACRA : java.lang.IllegalArgumentException: The outputSurface must be a object of Surface, SurfaceHolder, SurfaceTexture, SurfaceView
10-11 12:35:52.268 29184 29434 E ACRA : at dji.v5.common.video.decoder.VideoDecoder.(VideoDecoder.java:112)
10-11 12:35:52.268 29184 29434 E ACRA : at dji.v5.common.video.decoder.VideoDecoder.(VideoDecoder.java:42)
10-11 12:35:52.268 29184 29434 E ACRA : at com.---.---.---.dji.DJIInterface.startChannel(DJIInterface.java:4281)
10-11 12:35:52.268 29184 29434 E ACRA : at com.---.---.---.dji.DJIInterface.access$13100(DJIInterface.java:131)
10-11 12:35:52.268 29184 29434 E ACRA : at com.---.---.---.dji.DJIInterface$155.run(DJIInterface.java:4240)
10-11 12:35:52.268 29184 29434 E ACRA : at java.lang.Thread.run(Thread.java:919)
Steps-to-reproduce:
With the correct ComponentIndexType
and CameraLensType.CAMERA_LENS_THERMAL
use CameraKey.KeyThermalTriggerFFC.action(…)
.
Expected:
Camera performs flat-field correction with audible click.
Actual:
DJIError{errorCode='CORE_REQUEST_HANDLER_NOT_FOUND', innerCode='', description='null', hint='error code = -1'}
Steps-to-reproduce:
With the correct ComponentIndexType
and CameraLensType.CAMERA_LENS_THERMAL
use CameraKey.KeySpotMeteringTargetPoint.set(…)
with IntPoint2D
where x is 0…12 and y is 0…8.
Expected:
Camera updates thermal measuring spot.
Actual:
DJIError{errorCode='CORE_INVALID_PARAMETERS', innerCode='', description='null', hint='error code = -483'}
Notes:
The constraints are pulled from the FPV Interaction Widget. Interestingly, tapping on that in the Widget List crashes the sample application regardless of whether a drone is connected or not.
SDK: 5.1
and 5.1.1
Drone: Mavic 3 Enterprise
I am using the WaypointMissionManager
. I have implemented both addWaypointMissionExecuteStateListener
and addWaylineExecutingInfoListener
. When attempting to utilize the data these callbacks return, they will sometimes never fire even though I am uploading/starting/stopping a waypoint mission. Everytime this happens, the WaypointMissionExecuteState
is always UNKNOWN
and I have not seen a way to get it out of that state.
Here is my code for just the WaypointMissionExecuteStateListener
.
fun initMonitor() {
waypointMissionManager.clearAllWaypointMissionExecuteStateListener()
waypointMissionManager.addWaypointMissionExecuteStateListener { state ->
Log.e("WaypointMission", "Waypoint State: ${state.name}")
}
}
I start/stop/upload the waypoint mission in separate functions. Is there an initializing problem I'm doing? Or is the problem elsewhere? I've experienced this on more then 50% of the waypoint missions I test. The waypoint missions themselves always execute correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.