我正在开发一个android移动应用程序。我想用加速度计传感器计算振动频率,它提供m/s^2三轴输出(x,y,z)。样品: x: 9.89403849 y: 5.99348859 z: 10.9458495
这是一个React,我使用库https://react-native-sensors.github.io/docs/Usage.html访问传感器的输出。
constructor() {
super();
this.state = {
value: null
}
setUpdateIntervalForType(SensorTypes.accelerometer, 1000);
}
componentWillMount() {
const subscription = accelerometer.subscribe(({ x, y, z, timestamp }) =>
this.setState({
value: z
})
);
}用上述移动加速度传感器的输出来计算振动频率是可行的吗?
发布于 2019-01-18 10:15:51
你需要收集一个加速度数据的样本时间序列,然后应用一个傅里叶变换将数据分解成组成频率分量,假设有一个清晰的信号。有几件事需要考虑:
https://stackoverflow.com/questions/54251128
复制相似问题