Difference between revisions of "Disco"

From PaparazziUAV
Jump to navigation Jump to search
(Added RTK configuration for Disco)
(Errors in RTK configuration)
Line 79: Line 79:
     $ ln -sf /dev/ttyACM0 ./com32
     $ ln -sf /dev/ttyACM0 ./com32


If you open U-center now you should be able to finish the connection by simply connecting to COM port 32. As seen in the Figure.  
If you open U-center now you should be able to connect to COM port 32 (as seen in the Figure).


[[File:COM-port-connection.png|500px|Connect to a COM port in U-center]]
[[File:COM-port-connection.png|500px|Connect to a COM port in U-center]]


The setup of the ground station then consists of three main steps:
To setup the ground station for RTK usage, then go the 'Message View' from the 'View' hotbar. Scroll down until you find the MSG (UBX-CFG-MSG) menu. Check the UART1 on the RTCM 1005 (Station coordinates) message and click the send button on the lower left corner. This step must be repeated for the RTCM 1077 (GPS Observations), RTCM 1087 (GLONASS observations) and the RTCM 1230 (GLONASS code-phase biases) message (don`t forget to hit the send button each time or your changes won`t be saved). 


* First set the position of the base station using either pre-surveyed coordinated or by estimation its position using GPS. Using the ‘View tab’ go to ‘Message View’ and then to UBC-CFG-TMODE3 and chose your desired option. You can monitor your survey in progress in UBX-NAV-SVIN.
[[File:Port-base.png|500px|Configuration for ground station output]]
 
Next you have chose how the base station calculated it`s position. This can be done in TMODE3 (UBX-CFG-TMODE3). You will have 2 choices: Survey-in (if you don`t know the exact position) and Fixed (if you know the exact position). Don`t forget to click the send button after chosing your configuration. In case you selected the Survey-In mode, you can go to UBX-NAV-SVIN to see the status of the survey.  


[[File:TMODE3.png|500px|Configuration for ground station position]]
[[File:TMODE3.png|500px|Configuration for ground station position]]
 
* The next step is to specify the Ground station output. This is done in the message view under UBX-CFG-PRT. Set the input protocol to none and the output protocol to RCTM3.


[[File:Port-base.png|500px|Configuration for ground station output]]
The last step is to save the whole configuration. Go to the Configuration menu (UBX-CFG-CFG), select all 4 devices and click send. You have now successfully configured your base.  
 
=== Setup of Rover station ===


* The last step is to specify which messages are send on the RCTM radio link. Use UBX-CFG-MSG to specify that 1005 (station coordinates), 1077 (GPS observations), 1087 (GLONASS observations) and 1230 (GLONASS code-phase biases) have to be on the output of UART1.
The rover is the module that receives RTCM messages. It will automatically go into RTK operational mode as soon as a RCTM message is received and thus only the radio link has to be configured correctly.  


=== Setup of Rover station ===
In order to setup the rover stations first a [[Bebop#Serial_bidirectional_teminal_access|serial bidirectional terminal access]] has to be obtained.


A rover that receives RTCM messages will automatically go into RTK operational mode and thus only the radio link has to be configured correctly.  
After coupling the GPS module of the drone to the wine com port, U-center should be able to connect to the rover module.


In order to setup the rover stations first a [[Bebop#Serial_bidirectional_teminal_access|serial bidirectional teminal access]] has to be obtained.  
Go to the Message View from the View hotbar again and scroll down until you find the PRT (Port) section (UBX-CFG-PRT). Enter your autopilot`s GPS port`s baudrate to allow it to communicate correctly. This is necessary as the GPS connection is serial and thus the baudrate is not controller by any other protocol. Click the send button in the lower left corner.  


After coupling the GPS module of the drone to the wine com port, U-center should be able to connect to COM port 32.
Then you have to modify the frequency of the chip. Go to the RATE (Rates) menu (UDX-CFG-RATE) and change the Measurement period to 200 ms. Press the send button again.  


Now that you have successfully connected to the ROVER gps module, you are able to configure the radio link.
After having configured both the rates and the ports, you just have to specify which messages will be send. Go to the MSG (Messages) menu again and disable all NMEA messages. Then enable NAV-POS-LLH, NAV-STATUS NAV-SOL and NAV-VELNED for the UART1 link. Hit send after each change.  


Go to the message view and use UBX-CFG-PRT to ensure that UART1 is set up to receive RTCM3 correction and that no data is send out.
Finally, save the configuration from the CFG (Configuration) menu (UDX-CFG-CFG). Select all four devices and click send. You have succesfully set up your rover station.  


[[File:Radio-link-rover.png|500px|Configuration for Rover output]]
[[File:Radio-link-rover.png|500px|Configuration for Rover output]]

Revision as of 11:38, 4 September 2019

Parrot Disco


Introduction

The Parrot Disco is a Wifi controlled fixed-wing aircraft, originally designed for FPV flights. The hardware electronic components are very close the the Bebop quadrotor and the same principle can be applied to fly in full autonomous mode with Paparazzi.

Features

Here are some differences or addition compared to the Bebop hardware:

PWM

The Disco has 6 PWM outputs available with the following mapping:

  • Internal mapping of the PWM with output index
  • servo rail 1 <-> linux pwm_4
  • servo rail 2 <-> linux pwm_5
  • servo rail 3 <-> linux pwm_6
  • servo rail 4 <-> linux pwm_1
  • servo rail 5 <-> linux pwm_2
  • servo rail 6 <-> linux pwm_3

Radio Control Input

A radio control input is available for RC based on serial protocols such as Spektrum serial or SBUS out. Since the SBUS protocol is using an inverted logic (serial idle low), the signal input pin is tight to two UARTs internally and can be accessed with the the following symbolic links:

  • /dev/uart-sbus: the signal is inverted
  • /dev/uart-sumd: the signal is not inverted

The RC input is recommended for the safety link instead of using the Wifi link to control the plane in manual or assisted mode.

GPS

The GPS used is a uBlox M8N.

Modifications

Exernal Receiver

A long range telemetry can be connected to the USB bus via e.g. a USBtoSerial board. One needs to install drivers for this on the disco. A complete page is on the Bebop part of the wiki.

4G connection

A 4G to the USB can be used for telemetry over cellular network

Satcom

A small iridium sat transeiver can be used.

RTK GPS

The GPS module can be desoldered and replaced with a M8P in case one wants to use RTK.

Real-time kinematic positioning is a GPS system which uses to GPS modules in order to improve GPS accuracy. The 'base station' is located at a precisely known location. The coordinates of the base station are used in order to derive the propagation errors at the current location. The errors are then send to the 'rover station' in order to improve accuracy up to centimeter-level.

In order to use a RTK positioning system both rover- and base station have to be set up. Both base and rover board are identical, they only differ by their configuration. This tutorial explains how to set up the Parrot Disco for RTK usage in case a u-blox C94-M8P module is used.

Necessary software

In order configure both base and rover station, first you have to download u-center from their website. Wine will be needed as well to run u-center on Ubuntu. Start u-center using Wine and connect the base station via USB.

Note: In case you can not change the settings in the U-center, probably the receiver is polling the current setting to often. Turn off auto-poll with the buttons on the bottom left corner of the configuration window.

Note2: Each time you change the settings in the U-center you have to send the data to the board using the send button in the bottom left corner of the configuration view. Then go to UBX-CFG-CFG and chose all 4 devices to save the configuration too.

Setup of Ground station

First you find out the port that your GPS module is connected to using dmesg after the device has been connected. The figure gives an example where the modem has been connected to /dev/ttyACM0.

GPS module has been connected to /dev/ttyACM0

Link the corresponding port to a wine com port using:

   $ cd ~/.wine/dosdevices
   $ ln -sf /dev/ttyACM0 ./com32

If you open U-center now you should be able to connect to COM port 32 (as seen in the Figure).

Connect to a COM port in U-center

To setup the ground station for RTK usage, then go the 'Message View' from the 'View' hotbar. Scroll down until you find the MSG (UBX-CFG-MSG) menu. Check the UART1 on the RTCM 1005 (Station coordinates) message and click the send button on the lower left corner. This step must be repeated for the RTCM 1077 (GPS Observations), RTCM 1087 (GLONASS observations) and the RTCM 1230 (GLONASS code-phase biases) message (don`t forget to hit the send button each time or your changes won`t be saved).

Configuration for ground station output

Next you have chose how the base station calculated it`s position. This can be done in TMODE3 (UBX-CFG-TMODE3). You will have 2 choices: Survey-in (if you don`t know the exact position) and Fixed (if you know the exact position). Don`t forget to click the send button after chosing your configuration. In case you selected the Survey-In mode, you can go to UBX-NAV-SVIN to see the status of the survey.

Configuration for ground station position

The last step is to save the whole configuration. Go to the Configuration menu (UBX-CFG-CFG), select all 4 devices and click send. You have now successfully configured your base.

Setup of Rover station

The rover is the module that receives RTCM messages. It will automatically go into RTK operational mode as soon as a RCTM message is received and thus only the radio link has to be configured correctly.

In order to setup the rover stations first a serial bidirectional terminal access has to be obtained.

After coupling the GPS module of the drone to the wine com port, U-center should be able to connect to the rover module.

Go to the Message View from the View hotbar again and scroll down until you find the PRT (Port) section (UBX-CFG-PRT). Enter your autopilot`s GPS port`s baudrate to allow it to communicate correctly. This is necessary as the GPS connection is serial and thus the baudrate is not controller by any other protocol. Click the send button in the lower left corner.

Then you have to modify the frequency of the chip. Go to the RATE (Rates) menu (UDX-CFG-RATE) and change the Measurement period to 200 ms. Press the send button again.

After having configured both the rates and the ports, you just have to specify which messages will be send. Go to the MSG (Messages) menu again and disable all NMEA messages. Then enable NAV-POS-LLH, NAV-STATUS NAV-SOL and NAV-VELNED for the UART1 link. Hit send after each change.

Finally, save the configuration from the CFG (Configuration) menu (UDX-CFG-CFG). Select all four devices and click send. You have succesfully set up your rover station.

Configuration for Rover output

Alternative servo

If your servo is broken one an use a Hitec Digital 5055MG as a direct fit replacement