[8.2.6][] 平行驾驶介入及退出提醒以及提醒控制开关
This commit is contained in:
@@ -158,6 +158,10 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
void setTaxiUnmanedDriverLineRoutingVerifyMode( String tag, boolean isLineRoutingVerifyMode );
|
||||
|
||||
void setRemoteNoticeMode(String tag, boolean isLineRoutingVerifyMode );
|
||||
|
||||
boolean isRemoteNoticeMode();
|
||||
|
||||
boolean isTaxiUnmanedDriverLineRoutingVerifyMode();
|
||||
|
||||
/**
|
||||
|
||||
@@ -87,6 +87,13 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return val != null && val;
|
||||
}
|
||||
|
||||
private boolean get_bool_val_null(StatusDescriptor descriptor,boolean defaultValue) {
|
||||
if(mStatus.get(descriptor)==null){
|
||||
return defaultValue;
|
||||
}
|
||||
return Boolean.TRUE.equals(mStatus.get(descriptor));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVrMode(String tag, boolean vrMode) {
|
||||
doSetStatus(tag, StatusDescriptor.VR_MODE, vrMode);
|
||||
@@ -167,6 +174,17 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val(StatusDescriptor.TAXI_UNMANED_DRIVER_LINE_ROUTING_VERIFY_MODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemoteNoticeMode(String tag, boolean isLineRoutingVerifyMode) {
|
||||
doSetStatus(tag,StatusDescriptor.REMOTE_NOTICE_MODE,isLineRoutingVerifyMode);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isRemoteNoticeMode() {
|
||||
return get_bool_val_null(StatusDescriptor.REMOTE_NOTICE_MODE,true);
|
||||
}
|
||||
|
||||
private void doSetStatus(String tag, StatusDescriptor target, boolean value) {
|
||||
mStatus.put(target, value);
|
||||
invokeStatusChangedListener(target, value);
|
||||
|
||||
@@ -72,6 +72,8 @@ public enum StatusDescriptor {
|
||||
/**
|
||||
* taxi无人化 是否在自主算路验证模式
|
||||
*/
|
||||
TAXI_UNMANED_DRIVER_LINE_ROUTING_VERIFY_MODE
|
||||
TAXI_UNMANED_DRIVER_LINE_ROUTING_VERIFY_MODE,
|
||||
|
||||
REMOTE_NOTICE_MODE
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user