Newmakr
New
United States
Offline
|
I'm running into errors with the activation process with the Manifold and a Matrice 100. I have installed the dji_sid_lib and added user privelege to dialout. Everything has been catkin_maked and all the apps are running. API control is enabled on DJI Assistant and DJI GO is running on the controller, connected to the internet. When I run the launch command, it seems that the getDroneVersion function isn't being run during the activation process. The activate function is correctly reading the launch parameters defined in the launch file, App ID and Key are correct (but omitted here) Have I missed defining the drone type somewhere, or is the SDK trying to read this information through the hardware link to the drone? It also seems that the Manifold isn't reading anything through the serial connection. I followed the hardware guide setup and checked all the pin voltages for that.
Is it stepping through the getDroneVersion call somehow? Its stopping after the printf commands after the getHwVersion and getFwVersion functions fail to return.
rosAdapter->init(serial_name, baud_rate);
rosAdapter->coreAPI->getDroneVersion();
//usleep(1000000);
ros:uration(1.0).sleep();
printf("=================================================\n");
printf("Hardware : %s\n", rosAdapter->coreAPI->getHwVersion());
printf("Firmware : 0x0%X\n", rosAdapter->coreAPI->getFwVersion());
printf("=================================================\n");
Not sure how to delete this table that copied with the above code.
ubuntu@tegra-ubuntu:~/catkin_ws/src/Onboard-SDK-ROS/dji_sdk$ roslaunch dji_sdk sdk_manifold.launch
... logging to /home/ubuntu/.ros/log/11a15224-6349-11e7-b673-60601f199aea/roslaunch-tegra-ubuntu-2421.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://tegra-ubuntu:51267/
SUMMARY
========
PARAMETERS
* /dji_sdk/app_bundle_id: Not required in t...
* /dji_sdk/app_id: *******
* /dji_sdk/app_version: 1
* /dji_sdk/baud_rate: 230400
* /dji_sdk/enc_key: 679acf2abc4b06a3e...
* /dji_sdk/groundstation_enable: 1
* /dji_sdk/serial_name: /dev/ttyTHS1
* /rosdistro: indigo
* /rosversion: 1.11.21
NODES
/
dji_sdk (dji_sdk/dji_sdk_node)
auto-starting new master
process[master]: started with pid [2432]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 11a15224-6349-11e7-b673-60601f199aea
process[rosout-1]: started with pid [2445]
started core service [/rosout]
process[dji_sdk-2]: started with pid [2456]
=================================================
app id : *******
app key : *******
=================================================
--- Connection Info ---
Serial port: /dev/ttyTHS1
Baudrate: 230400
-----
STATUS init,line 62: Open serial device /dev/ttyTHS1 with baudrate 230400...
[ INFO] [1499455115.022988311]: Succeed to create thread for readPoll
=================================================
Hardware :
Firmware : 0x00
=================================================
ERROR activate,line 449: Please call getDroneVersion first.
Broadcast call back received
Any help would be appreciated.
Thanks
|
|