o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.54k stars 419 forks source link

Can I customize the UBOX-M8N GPS module on Phantom 3 to improve its performance? #175

Open gaifeng8864 opened 4 years ago

gaifeng8864 commented 4 years ago

In the Phantom 3 series UAVs, does the flight controller perform other operations on the GPS module besides increasing the baud rate of the GPS module from 9600 to 115200 after startup, such as setting the GPS output protocol? Can we customize some settings to improve GPS performance? For example, increase the output frequency of positioning information to 5Hz, or turn on GPS+BD. I am now in China and I am very interested in opening BD positioning. In addition, does the Phantom 3 series drones only use the UBX protocol to communicate with the GPS module?

mefistotelis commented 4 years ago

Yes, these things can be changed within m0306. Enabling more GNSS types requires adding support of more UBX packet types.

There are such mods for Mavic. You should be able to develop something similar for P3P based on that. You also need to update U-blox firmware - the drone never does that, and the old stock version lacks some features.

gaifeng8864 commented 4 years ago

Yes, these things can be changed within m0306. Enabling more GNSS types requires adding support of more UBX packet types.

There are such mods for Mavic. You should be able to develop something similar for P3P based on that. You also need to update U-blox firmware - the drone never does that, and the old stock version lacks some features.

The firmware of UBOX-M8N was upgraded to version 3.01 by the way when I repaired the shell last year. But I didn't expect to change to GPS+BD. This year the BD system completed the global networking, and I began to consider this plan. According to your research, can the current flight controller firmware correctly parse the UBX data packets output by the M8N in GPS+BD mode? In addition to changing the baud rate, what settings have been made to the M8N GPS module after the flight controller is started?