PSDK 3.7相比3.6 在M300的OSDK口上运行,成功率明显变低,初始化时间变长
已完成分别运行20次,使用PSDK V3.6,平均时间如下,平均17s,且没有失败
start_time_list: [16.009342908859253, 17.01322603225708, 17.01211380958557, 17.011859893798828, 18.012927055358887, 17.011543035507202, 17.013624906539917, 17.022175073623657, 17.013401985168457, 18.010042905807495, 17.012510061264038, 17.012866020202637, 17.01347303390503, 20.012212991714478, 17.01375389099121, 17.01344585418701, 17.014148950576782, 17.01179814338684, 20.011878967285156, 17.011192083358765]
使用V3.7: 平均22秒左右 失败一次
Test success. Current Success count: 19 / 20
start_time_list: [22.011871814727783, 20.012459993362427, 34.01745009422302, 17.00993514060974, 22.012573957443237, 20.014029026031494, 17.012508153915405, 20.010815143585205, 26.01246190071106, 21.01568579673767, 26.01209020614624, 17.012747049331665, 22.011523962020874, 26.011365175247192, 22.011208057403564, 17.013752937316895, 20.012855052947998, 28.013190031051636, 20.013487815856934]
一个失败log如下:
'Logs/latest.log' -> 'DJI_0055_20231101_17-02-15.log'
ln -sfrv 0[0.024][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.7.0-beta.0-build.1906
[WARN] [1698829336.390614]: start_launch_file, sleep over
[drone]-[17:02:16.754]: vehicle->activate 2
[drone]-[17:02:17.755]: vehicle->activate 3
[2.789][adapter]-[Info]-[DjiAccessAdapter_Init:208) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.
[drone]-[17:02:18.755]: vehicle->activate 4
[drone]-[17:02:19.755]: vehicle->activate 5
[drone]-[17:02:20.756]: vehicle->activate 6
[5.447][utils]-[Info]-[DjiSdkVersionAck_Parse:183) Identify aircraft serial number = 1ZNDHAC00C2ZMT, Firmware = 3.4.18.29
[5.459][adapter]-[Info]-[DjiAccessAdapter_Init:224) Identify aircraft series is Matrice 300 Series
[5.459][adapter]-[Info]-[DjiAccessAdapter_Init:254) Identify mount position type is Extension Port Type
[5.459][user]-[Info]-opsdk [HalUart_Init:123) DJI_HAL_UART_NUM_1: /dev/ttyACM0
[5.523][user]-[Info]-opsdk [HalUart_Init:123) DJI_HAL_UART_NUM_1: /dev/ttyACM0
[5.550][adapter]-[Info]-[DjiAccessAdapter_Init:355) Identity uart0 baudrate is 921600 bps
[5.551][adapter]-[Info]-[DjiPayloadNegotiate_Init:147) No need negotiate device info
[5.556][user]-[Info]-opsdk [HalUart_Init:123) DJI_HAL_UART_NUM_1: /dev/ttyACM0
[5.616][user]-[Info]-opsdk [HalUart_Init:123) DJI_HAL_UART_NUM_1: /dev/ttyACM0
[5.646][adapter]-[Info]-[DjiPayloadNegotiate_Init:147) No need negotiate device info
[drone]-[17:02:21.756]: vehicle->activate 7
[6.773][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:474) Updating dji sdk policy file...
[drone]-[17:02:22.757]: vehicle->activate 8
[7.773][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:482) Update dji sdk policy file successfully
[7.779][core]-[Info]-[DjiCore_Init:169) Identify AircraftType = Matrice 300 RTK, MountPosition = Extension Port, SdkAdapterType = None
[drone]-[17:02:23.757]: vehicle->activate 9
[8.280][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 1, retryTimes = 3, cmdSet = 11, cmdId = 0
[8.780][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0
[8.780][infor]-[Error]-[DjiAircraftInfo_CheckOSDKHeartBeatStatusAsyncCallback:308) Check heartbeat status async timeout
[8.782][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 1, retryTimes = 2, cmdSet = 11, cmdId = 0
[drone]-[17:02:24.758]: vehicle->activate 10
[9.284][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 1, retryTimes = 1, cmdSet = 11, cmdId = 0
[9.784][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 1
[9.784][linker]-[Error]-[DjiCommand_SendSync:489) sendSync callback timeout
[9.784][sub]-[Error]-[DjiDataSubscriptionOps_VerifyPublisherDb2ByOPSync:421) verify publisher error: 0x000000E1.
[9.784][sub]-[Error]-[DjiDataSubscriptionPublisher_InitPublisher:191) verify publisher error: 0x000000E1.
[9.784][sub]-[Error]-[DjiDataSubscriptionDb2_Init:104) reset data subscritpion publisher error: 0x000000E1.
[9.784][sub]-[Error]-[DjiDataSubscriptionDb2_Init:107) reset failed publisher : name=0x00, version=0x00000100
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:347) DjiCore_SetFirmwareVersion.
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:361) DjiCore_SetAlias.
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:368) DjiCore_SetFirmwareVersion.
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:375) DjiCore_SetSerialNumber.
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:442) DjiCore_ApplicationStart.
[9.784][core]-[Info]-[DjiCore_ApplicationStart:224) Start dji sdk application
[9.784][user]-[Info]-opsdk [DjiUser_ApplicationStart:449) Application start.
[9.915][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0
[9.915][infor]-[Error]-[DjiAircraftInfo_CheckOSDKHeartBeatStatusAsyncCallback:308) Check heartbeat status async timeout
[drone]-[17:02:25.758]: vehicle->activate 11
[drone]-[17:02:26.759]: vehicle->activate 12
[11.047][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0
[11.047][infor]-[Error]-[DjiAircraftInfo_CheckOSDKHeartBeatStatusAsyncCallback:308) Check heartbeat status async timeout
[11.560][infor]-[Info]-[DjiAircraftInfo_NotifyMobileAppInfoHandle:666) Set mobile app info, language is Chinese, screen type is Big Screen
[drone]-[17:02:27.759]: vehicle->activate 13
[12.166][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0
[12.166][infor]-[Error]-[DjiAircraftInfo_CheckOSDKHeartBeatStatusAsyncCallback:308) Check heartbeat status async timeout
[drone]-[17:02:28.535]: FlightControlInit
[12.791][sub]-[Error]-[DjiDataSubscriptionDb2p_SubscribeSpecialTopic:169) mutex lock error
[drone]-Error [17:02:28.542]: publishErrorOnScreenERROR_CC: FlightControlInit failed
[12.791][user]-[Error]-opsdk [FlightControlInit:370) Subscribe topic index: 0 DRONE_QUATERNION failed, error code:0x000000EC
[drone]-Error [17:02:28.542]: onInit, init drone wrapper failed, free m_wrapper.
[ERROR] [1698829348.543880873]: drone_manager init failed, exit
[ERROR] [1698829348.544217]: error_on_screen_callback
[12.791][user]-[Error]-opsdk [onInit:172) FlightControlInit failed, error code:0x000000EC
[dji_drone_app-1] process has finished cleanly
log file: /home/up2/.ros/log/544eed8c-7893-11ee-9194-48b02d5119b8/dji_drone_app-1*.log
all processes on machine have died, roslaunch will exit
请先登录再写评论。
评论
3 条评论