您好,关于navigation2在自定义路网上进行导航时,使用自定义GPSdata,导航时当车辆不在路网上移动,导航偏离(导航偏离容限设置的是3),导航消失,此时完全无法进行正常的导航,也不会纠偏重新导航,请问是什么原因?
导航时每秒进行一次GPSdata设置,设置代码如下:
LocationManagePlugin.GPSData gpsData = new LocationManagePlugin.GPSData();
gpsData.dLongitude = CURRENT_LNG;
gpsData.dLatitude = CURRENT_LAT;
gpsData.dBearing = CURRENT_DIRECTION - 90;
gpsData.dAltitude = GPS_HEIGHT;
gpsData.dSpeed = CURRENT_SPEED;
gpsData.lTime = .GPS_TIME_MILLS;
gpsData.nYear = GPS_TIME_YEAR;
gpsData.nMonth = GPS_TIME_MONTH;
gpsData.nDay = GPS_TIME_DAY;
gpsData.nHour = GPS_TIME_HOUR;
gpsData.nMinute = GPS_TIME_MINUTE;
gpsData.nSecond = GPS_TIME_SECOND;
mNavigation2.setGPSData(gpsData);