MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / computeSamplingRate

Function computeSamplingRate

python/cli/diagnose/sensors.py:808–811  ·  view source on GitHub ↗
(deltaTimes)

Source from the content-addressed store, hash-verified

806 return data["accelerometer"]["t"]
807
808def computeSamplingRate(deltaTimes):
809 validDeltaTimes = deltaTimes[deltaTimes > 0]
810 if len(validDeltaTimes) == 0: return 0
811 return 1.0 / np.median(validDeltaTimes)
812
813def diagnoseCamera(data, output):
814 CAMERA_MIN_FREQUENCY_HZ = 1.0

Callers 8

diagnoseCameraFunction · 0.85
diagnoseAccelerometerFunction · 0.85
diagnoseGyroscopeFunction · 0.85
diagnoseMagnetometerFunction · 0.85
diagnoseBarometerFunction · 0.85
diagnoseGNSSFunction · 0.85
diagnoseCPUFunction · 0.85
diagnoseVIOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected