Home
last modified time | relevance | path

Searched refs:SAMPLE_INTERVAL_SECONDS (Results 1 – 1 of 1) sorted by relevance

/aosp12/packages/services/Car/tools/emulator/
H A Ddriving_info_generator.py27 SAMPLE_INTERVAL_SECONDS = 0.5 variable
159 … speedIncrement = (gpxFrame.speedInMps - self.speedInMps) / duration * SAMPLE_INTERVAL_SECONDS
165 if timeElapsed + SAMPLE_INTERVAL_SECONDS < duration:
166 … self.odometerInKm += (self.speedInMps + speedIncrement / 2.0) * SAMPLE_INTERVAL_SECONDS / 1000
168 time.sleep(SAMPLE_INTERVAL_SECONDS)
176 timeElapsed += SAMPLE_INTERVAL_SECONDS
191 self.odometerInKm += self.speedInMps * SAMPLE_INTERVAL_SECONDS / 1000
192 curTime += SAMPLE_INTERVAL_SECONDS
193 time.sleep(SAMPLE_INTERVAL_SECONDS)
209 curTime += SAMPLE_INTERVAL_SECONDS
[all …]