mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:03:34 +08:00
GPS ublox add dynamic model parameter
This commit is contained in:
@@ -686,9 +686,13 @@ GPS::task_main()
|
||||
_mode = GPS_DRIVER_MODE_UBX;
|
||||
|
||||
/* FALLTHROUGH */
|
||||
case GPS_DRIVER_MODE_UBX: {
|
||||
int32_t param_gps_ubx_dynmodel = 7; // default to 7: airborne with <2g acceleration
|
||||
param_get(param_find("GPS_UBX_DYNMODEL"), ¶m_gps_ubx_dynmodel);
|
||||
|
||||
case GPS_DRIVER_MODE_UBX:
|
||||
_helper = new GPSDriverUBX(_interface, &GPS::callback, this, &_report_gps_pos, _p_report_sat_info);
|
||||
_helper = new GPSDriverUBX(_interface, &GPS::callback, this, &_report_gps_pos, _p_report_sat_info,
|
||||
param_gps_ubx_dynmodel);
|
||||
}
|
||||
break;
|
||||
|
||||
case GPS_DRIVER_MODE_MTK:
|
||||
|
||||
Reference in New Issue
Block a user