Merge branch 'dev_robotaxi-d-app-module_2120_221017_2.12.0' of gitlab.zhidaoauto.com:zhjt/AndroidApp/MoGoEagleEye into dev_robotaxi-d-app-module_2120_221017_2.12.0

This commit is contained in:
wangmingjun
2022-10-21 17:09:39 +08:00
3 changed files with 10 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.data.config.HmiBuildConfig
import com.mogo.eagle.core.function.api.hmi.view.IViewTrafficLight
import com.mogo.eagle.core.function.hmi.R
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
@@ -49,7 +50,9 @@ class SingleTrafficLightView @JvmOverloads constructor(
override fun showWarningTrafficLight(checkLightId: Int,lightSource: Int) {
super.showWarningTrafficLight(checkLightId,lightSource)
mCurrentLightId = checkLightId
updateTrafficLightIcon(checkLightId,lightSource)
if(!HmiBuildConfig.isShowTrafficLightView){
updateTrafficLightIcon(checkLightId,lightSource)
}
}
/**

View File

@@ -8,7 +8,7 @@
<View
android:id="@+id/viewShowDebugView"
android:layout_width="@dimen/dp_100"
android:layout_width="@dimen/dp_400"
android:layout_height="@dimen/dp_100"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"

View File

@@ -13,6 +13,11 @@ import okio.ByteString;
* @des
* @date 2021/10/20
* 原始数据格式MagicCode(2字节 6d67) 偏移量(2字节 从原始数据头开始一直到Body头) 数据包总长度4字节 Header Body
* 实例:(偏移量从数据第一个字节开始)
* 6d 67 00 10 00 00 00 07 Header 数据
* MG头 偏移量 数据包总长度
* 计算Header长度 = 偏移量- 8MG头长度+偏移量长度+数据包总长度长度)
* 计算数据长度 = 数据包总长度 - 偏移量
*/
public class RawData {
public long receiveTime;//TODO 计算耗时 临时测试