opt strategy

This commit is contained in:
tongchenfei
2020-11-06 11:48:06 +08:00
parent 0bb4dfca1c
commit d92c5de5ce

View File

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