正在上传图片(0/1)

drone activation error and Vehicle initialization failed

 0
手机看帖 5 1717
我们想通过djiros从N3获取imu数据,djiros.launch文件内容如下:<launch>
    <node pkg="djiros" type="djiros_node" name="djiros" output="screen" launch-prefix="">
        <param name="log_level" type="string" value="info"/>
        <param name="serial_name" type="string" value="/dev/ttyUSB0"/>
        <param name="baud_rate" type="int" value="921600"/>
        <!--param name="app_id" type="int" value="1075729"/-->
        <param name="app_id" type="int" value="1078692"/>
        <!--param name="enc_key" type="string" value="7167bc6e3fa686ad5265c76923f9942f4cd8fa253c1515984565c6872462177b"/-->  
        <param name="enc_key" type="string" value="8916f3a604e5345903e7671a36434981ca4e60ea7eab2de3da9da4392b134d1f"/>
        <param name="app_version" type="int" value="1"/>
        <param name="sensor_mode" type="bool" value="false"/>
        <param name="align_with_fmu" type="bool" value="false"/>
我们运行的结果如下:
... logging to /home/dji/.ros/log/228a7d68-c5b1-11ea-98be-08beac0f04d2/roslaunch-manifold2-2259.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://10.42.0.211:39235/

SUMMARY
========

PARAMETERS
* /djiros/align_with_fmu: False
* /djiros/app_id: 1090225
* /djiros/app_version: 1
* /djiros/baud_rate: 921600
* /djiros/enc_key: 28f1bca900d5dffc9...
* /djiros/log_level: info
* /djiros/sensor_mode: False
* /djiros/serial_name: /dev/ttyS0
* /rosdistro: kinetic
* /rosversion: 1.12.14

NODES
  /
    djiros (djiros/djiros_node)

auto-starting new master
process[master]: started with pid [2270]
ROS_MASTER_URI=http://10.42.0.211:11311

setting /run_id to 228a7d68-c5b1-11ea-98be-08beac0f04d2
process[rosout-1]: started with pid [2283]
started core service [/rosout]
process[djiros-2]: started with pid [2286]

STATUS/1 @ init, L37: Attempting to open device /dev/ttyS0 with baudrate 921600...

STATUS/1 @ init, L47: ...Serial started successfully.

ERROR/1 @ parseDroneVersionInfo, L413: Drone version was not obtained. Please restart the program or call getDroneVersion

ERROR/1 @ getDroneVersion, L1031: Drone version not obtained! Please do not proceed.
Check if your serial connection is okay, and if your activation status is okay.

ERROR/1 @ functionalSetUp, L111: Failed to initialize Version! Please exit.

STATUS/1 @ activate, L951: version 0x0

STATUS/1 @ getErrorCodeMessage, L590: activate
STATUS/1 @ getCommonErrorCodeMessage, L655: ACK_NO_RESPONSE_ERROR

ERROR/1 @ activate, L971: Failed to activate please retry SET 0x0 ID 0x0 code 0xFFFF
[ERROR] [1594717533.634164269]: drone activation error
[ERROR] [1594717533.634202952]: Vehicle initialization failed
terminate called after throwing an instance of 'std::runtime_error'
  what():  initVehicle failed
[djiros-2] process has died [pid 2286, exit code -6, cmd /home/dji/catkin_ws/devel/lib/djiros/djiros_node __name:=djiros __log:=/home/dji/.ros/log/228a7d68-c5b1-11ea-98be-08beac0f04d2/djiros-2.log].
log file: /home/dji/.ros/log/228a7d68-c5b1-11ea-98be-08beac0f04d2/djiros-2*.log

我们现在不知道问题出在哪里,希望得到大家的帮助。
评论
上传
你需要登录之后才能回帖    登录 | 注册
kv886   2020-7-14 3#
用的什么设备,串口号是对的吗,串口是否支持921600波特率。
楼主   2020-7-15 4#
kv8867-14 17:38
用的什么设备,串口号是对的吗,串口是否支持921600波特率。
n3飞控
manifold 2-c
串口号都是對的
kv886   2020-7-15 5#
djiuser_dQbPAhs7-15 16:46
n3飞控
manifold 2-c
串口号都是對的
看了一下妙算2-C的串口最大只支持115200波特率,感觉用SDK还是得用USB转ttl
ZHAOCHENHAO-   2020-10-31 6#
djiuser_dQbPAhs7-15 16:46
n3飞控
manifold 2-c
串口号都是對的
最后怎么解决的老哥
kv886   2020-11-2 7#
ZHAOCHENHAO-10-31 19:09
最后怎么解决的老哥
用USB转ttl吧
收藏 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表