策略上报:拥堵联调完成

This commit is contained in:
tongchenfei
2020-08-28 15:17:03 +08:00
parent 7111be9e66
commit 5830d8cc42
2 changed files with 4 additions and 2 deletions

View File

@@ -248,6 +248,7 @@ class MainService : Service() {
getStrategyType("video")
)
Log.d("MainService", "handleReportStrategy picType = $picType ---videoType = $videoType")
shareType = TANLU_ROAD_CURRENT
if (picType == 1) {
takePhoto(1)
} else if (picType == 2) {
@@ -302,7 +303,7 @@ class MainService : Service() {
Log.d("MainService", "takeVideo --------1---->")
// if (isAuthorization(BaseApplication.getAppContext())) {
// log(TAG, "takeVideo --------2---->")
CarCorderController.takeVideo(1, duration, isCustom, id, if (isCustom) shareType else TANLU_ROAD_CURRENT, mainInfoId, fromType, mLongitude, mLatitude)
CarCorderController.takeVideo(1, duration, isCustom, id, shareType, mainInfoId, fromType, mLongitude, mLatitude)
// }
postVideoAlarmTask(isInterval)

View File

@@ -70,7 +70,8 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
if (speed == 0F) {
stopFlag++
} else {
} else if (stopFlag < STOP_FLAG_THRESHOLD) {
// 如果本次计算期间stopFlag还没超过阈值就置为零如果超过阈值了说明本次计算期间存在超过阈值的停止次数就舍弃掉本次计算
stopFlag = 0
}