Commit 833874f9 authored by 李玲燕's avatar 李玲燕

机械制动小数点保留1位

parent f2416620
......@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
set (MAJOR_VERSION "1")
set (MINOR_VERSION "2")
set (PATCH_VERSION "8")
set (PATCH_VERSION "9")
# Import cmake modules.
list (APPEND CMAKE_MODULE_PATH "$ENV{HT_BUILDSYS_CMAKE_MODULES}")
......
......@@ -12,7 +12,7 @@
<p v-for="item in list" :key="item.index">
<template v-if="Object.keys(debug).includes(item.name)">
<span>{{item.label}}</span>
<span v-if="['target_velocity', 'VechicleSpd', 'gasBrake', 'soc'].includes(item.name)">{{Number(debug[item.name]).toFixed(1)}}</span>
<span v-if="['target_velocity', 'VechicleSpd', 'gasBrake', 'soc', 'mechBrakeCmd', 'mechBrakeStatus'].includes(item.name)">{{Number(debug[item.name]).toFixed(1)}}</span>
<span v-else-if="['obstacleFrontDistance', 'obstacleFrontFlag', 'obstacleBackBarriDistance'].includes(item.name)">{{Number(debug[item.name]).toFixed(2)}}</span>
<span v-else-if="item.name === 'vehicleLoad'">{{vehicleLoad}}</span>
<span v-else-if="item.name === 'oil'">{{surplusOil}}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment