策略上报:拥堵联调完成
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user