[6.0.0]
[无人 未到站小于15m 速度小于0.3 直接报到站 有人添加现有逻辑]
This commit is contained in:
@@ -1142,15 +1142,23 @@ public class TaxiModel {
|
||||
|
||||
CallerLogger.i(M_TAXI + TAG, "judgeEndStation() stationAngle = " + stationAngle);
|
||||
|
||||
if (!checkCurrentOCHOrder()
|
||||
|| getCurOrderStatus() != TaxiOrderStatusEnum.ArriveAtEnd
|
||||
) {
|
||||
CallerLogger.i(M_TAXI + TAG, "order exception or order ArriveAtEnd");
|
||||
return;
|
||||
}
|
||||
|
||||
//3、刚过站且过站距离在15m内, 提交到站
|
||||
if (stationAngle > 90 && distance <= TaxiConst.ARRIVE_AT_START_STATION_DISTANCE){
|
||||
if (!checkCurrentOCHOrder()
|
||||
|| (getCurOrderStatus() == TaxiOrderStatusEnum.ArriveAtEnd)) {
|
||||
CallerLogger.i(M_TAXI + TAG, "order exception or order ArriveAtEnd");
|
||||
return;
|
||||
}
|
||||
if (stationAngle > 90) {
|
||||
CallerLogger.i(M_TAXI + TAG, "judgeEndStation() = 刚过站且在15m内");
|
||||
arriveTerminal();
|
||||
} else {
|
||||
// 4、 没有过站距离小于15m 速度小于0.3(根据M1来的模数 可能要调)
|
||||
if (currentLocation.getGnssSpeed() < 0.3) {
|
||||
CallerLogger.i(TAG, "judgeEndStation() = 没有过站、速度基本为零且在15m内")
|
||||
arriveTerminal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1279,8 +1279,8 @@ object TaxiTaskModel {
|
||||
)
|
||||
submitArriveSite(endSite.siteId, true)
|
||||
} else {
|
||||
// 4、 没有过站距离小于15m 速度小于0.5(根据M1来的模数 可能要调)
|
||||
if (currentLocation.gnssSpeed < 0.5) {
|
||||
// 4、 没有过站距离小于15m 速度小于0.3(根据M1来的模数 可能要调)
|
||||
if (currentLocation.gnssSpeed < 0.3) {
|
||||
i(TAG, "judgeEndStation() = 没有过站、速度基本为零且在15m内")
|
||||
DebugView.printInfoMsg(
|
||||
"[自车定位围栏] 触发围栏,任务类型:${
|
||||
|
||||
Reference in New Issue
Block a user