quadcopter.py 文件源码

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

项目:quadcopter-simulation 作者: hbd730 项目源码 文件源码
def update(self, dt, F, M):
        # limit thrust and Moment
        L = params.arm_length
        r = params.r
        prop_thrusts = params.invA.dot(np.r_[np.array([[F]]), M])
        prop_thrusts_clamped = np.maximum(np.minimum(prop_thrusts, params.maxF/4), params.minF/4)
        F = np.sum(prop_thrusts_clamped)
        M = params.A[1:].dot(prop_thrusts_clamped)
        self.state = integrate.odeint(self.state_dot, self.state, [0,dt], args = (F, M))[1]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号