[dev_arch_opt_3.0] 添加设置obu发送频率控制
This commit is contained in:
@@ -588,6 +588,16 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
//obu设置50ms的频率发送数据
|
||||
btnSetFifty.setOnClickListener {
|
||||
CallerObuApiManager.setHvInfoSendCycle(50)
|
||||
}
|
||||
|
||||
//obu设置100ms的频率发送数据
|
||||
btnSetOneHundred.setOnClickListener {
|
||||
CallerObuApiManager.setHvInfoSendCycle(100)
|
||||
}
|
||||
|
||||
btnDrawFusion.isChecked = FunctionBuildConfig.isFusionColor
|
||||
btnDrawFusion.setOnCheckedChangeListener { _, isChecked ->
|
||||
FunctionBuildConfig.isFusionColor = isChecked
|
||||
|
||||
@@ -1091,7 +1091,7 @@
|
||||
app:layout_constraintTop_toTopOf="@id/btnSetObuIP" />
|
||||
|
||||
<View
|
||||
android:id="@+id/obuDivider"
|
||||
android:id="@+id/obuEditDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#F0F0F0"
|
||||
@@ -1108,6 +1108,46 @@
|
||||
<!-- android:textSize="@dimen/dp_24"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/obuDivider" />-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/obuSendFrequencyTv"
|
||||
style="@style/DebugSettingText"
|
||||
android:text="OBU发送频率设置(默认100ms):"
|
||||
app:layout_constraintTop_toBottomOf="@id/obuEditDivider"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSetFifty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_20"
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:text="50ms"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toBottomOf="@id/obuEditDivider"
|
||||
app:layout_constraintLeft_toRightOf="@+id/obuSendFrequencyTv" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSetOneHundred"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_20"
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:text="100ms"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintLeft_toRightOf="@+id/btnSetFifty"
|
||||
app:layout_constraintTop_toBottomOf="@id/obuEditDivider" />
|
||||
|
||||
<View
|
||||
android:id="@+id/obuDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#F0F0F0"
|
||||
app:layout_constraintTop_toBottomOf="@id/btnSetFifty" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/obuStatusCenterLayout"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user