MCPcopy Create free account
hub / github.com/AdrianEddy/telemetry-parser / normalized_imu

Method normalized_imu

bin/python-module/python-module.rs:70–77  ·  view source on GitHub ↗
(&self, py: Python<'py>, orientation: Option<String>)

Source from the content-addressed store, hash-verified

68
69 #[pyo3(signature = (orientation=None))]
70 fn normalized_imu<'py>(&self, py: Python<'py>, orientation: Option<String>) -> PyResult<Bound<'py, PyAny>> {
71 let input = self.input.lock_py_attached(py).unwrap();
72 if input.samples.is_none() { return Err(pyo3::exceptions::PyValueError::new_err("No metadata")); }
73
74 let imu_data = util::normalized_imu(&input, orientation)?;
75
76 Ok(pythonize(py, &imu_data)?)
77 }
78}
79
80#[pymodule]

Callers

nothing calls this directly

Calls 1

normalized_imuFunction · 0.85

Tested by

no test coverage detected