opt strategy

This commit is contained in:
tongchenfei
2020-11-06 18:25:11 +08:00
parent d92c5de5ce
commit 16830f024e
2 changed files with 4 additions and 2 deletions

View File

@@ -154,7 +154,9 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
* 没有有效前车距离或者前车距离小于5m
*/
private fun isClose(): Boolean {
return frontDistance in 1..4 || frontDistance == -1
val r = (frontDistance in 1..4) || (frontDistance == -1)
Logger.d(TAG,"r: $r")
return r
}
private fun uploadAverageSpeed(average: Float) {