mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:43:33 +08:00
gps: add GPS_{1,2}_PROTOCOL param to select protocol, default to u-blox
u-blox is the most widely used GPS, so module detection should be a bit faster in general.
This commit is contained in:
@@ -107,3 +107,42 @@ PARAM_DEFINE_INT32(GPS_UBX_MODE, 0);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(GPS_YAW_OFFSET, 0.f);
|
||||
|
||||
/**
|
||||
* Protocol for Main GPS
|
||||
*
|
||||
* Select the GPS protocol over serial.
|
||||
*
|
||||
* Auto-detection will probe all protocols, and thus is a bit slower.
|
||||
*
|
||||
* @min 0
|
||||
* @max 4
|
||||
* @value 0 Auto detect
|
||||
* @value 1 u-blox
|
||||
* @value 2 MTK
|
||||
* @value 3 Ashtech / Trimble
|
||||
* @value 4 Emlid Reach
|
||||
*
|
||||
* @reboot_required true
|
||||
* @group GPS
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GPS_1_PROTOCOL, 1);
|
||||
|
||||
/**
|
||||
* Protocol for Secondary GPS
|
||||
*
|
||||
* Select the GPS protocol over serial.
|
||||
*
|
||||
* Auto-detection will probe all protocols, and thus is a bit slower.
|
||||
*
|
||||
* @min 0
|
||||
* @max 4
|
||||
* @value 0 Auto detect
|
||||
* @value 1 u-blox
|
||||
* @value 2 MTK
|
||||
* @value 3 Ashtech / Trimble
|
||||
* @value 4 Emlid Reach
|
||||
*
|
||||
* @reboot_required true
|
||||
* @group GPS
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GPS_2_PROTOCOL, 1);
|
||||
|
||||
Reference in New Issue
Block a user