ShowTrace.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:GY-91_and_PiCamera_RaspberryPi 作者: mikechan0731 项目源码 文件源码
def another_integral(self,lst, time_lst=None):
        acc = np.array(lst, dtype=np.float32)
        if time_lst != None:
            time = time_lst
        else:
            time = self.raw_data['time']
        vel = integrate.cumtrapz(acc, time, initial=0)
        dist = integrate.cumtrapz(vel, time, initial=0)
        return acc, vel, dist
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号