Skip to content

N1 Autopilot

Inkyu edited this page Mar 12, 2018 · 3 revisions

This page provides instructions on how to set-up the DJI N1 autopilot through the DJI Assistant software in order to receive attitude data from the MAV.

N1 Autopilot Set-up

The DJI N1 autopilot for the M100 is set-up using the DJI Assistant software package, shown below.

Make sure current user is in dialout by typing the groups command. You must have dialout in order to access the ttyUSBx port. To add your user account "yourUbuntuAcnt" to this group, you can run the following command:

$sudo adduser yourUbuntuAcnt dialout

After this, log out your computer or reboot to retain the changes.

Receiving Attitude Data

  1. To obtain attitude data from the autopilot, the app has to be activated. First, go to the developer webpage (https://developer.dji.com/register/) and register your app as "Onboard SDK". DJI will then send you an e-mail and you will receive app information as shown below:

  1. You need the "APP ID" and "App key" to run example code. To change this in the SDK configuration, change the "app_id" and "enc_key" to the file below (or another parameter file you want to use in the dji_interface.launch file):
mav_dji_ros_interface/dji_interface/cfg/raven/dji_interface_params.yaml 
  1. Try to launch the command: (please check the path of the params file)
$roslaunch mav_dji_ros_interface dji_interface.launch

If you encounter the message STATUS activateCallback,line 625: New device, please link DJIGO to your remote controller and try again, you need to link DJIGO (mobile app allowing you to see the gimbal view or control the drone). After this, you should be able to see IMU information as shown below:

Clone this wiki locally