当前位置: 首页 > news >正文

网站备案要网站做才可以使用吗建站企业网站

网站备案要网站做才可以使用吗,建站企业网站,建站神器跟wordpress哪个好,专门做自由行的网站目录 文章目录 目录摘要1.源码1.1源码路径1.2源码程序1.3源码功能 2.源码分析 摘要 本节主要记录PX4姿态误差计算过程,欢迎批评指正。 1.源码 1.1源码路径 PX4-Autopilot/src/modules/mc_att_control/AttitudeControl/AttitudeControl.cpp1.2源码程序 matrix::…

目录

文章目录

  • 目录
  • 摘要
  • 1.源码
    • 1.1源码路径
    • 1.2源码程序
    • 1.3源码功能
  • 2.源码分析

摘要

本节主要记录PX4姿态误差计算过程,欢迎批评指正。

1.源码

1.1源码路径

PX4-Autopilot/src/modules/mc_att_control/AttitudeControl/AttitudeControl.cpp

1.2源码程序

matrix::Vector3f AttitudeControl::update(const Quatf &q) const
{Quatf qd = _attitude_setpoint_q;// calculate reduced desired attitude neglecting vehicle's yaw to prioritize roll and pitchconst Vector3f e_z = q.dcm_z();const Vector3f e_z_d = qd.dcm_z();Quatf qd_red(e_z, e_z_d);if (fabsf(qd_red(1)) > (1.f - 1e-5f) || fabsf(qd_red(2)) > (1.f - 1e-5f)){// In the infinitesimal corner case where the vehicle and thrust have the completely opposite direction,// full attitude control anyways generates no yaw input and directly takes the combination of// roll and pitch leading to the correct desired yaw. Ignoring this case would still be totally safe and stable.qd_red = qd;} else{// transform rotation from current to desired thrust vector into a world frame reduced desired attitudeqd_red *= q;}// mix full and reduced desired attitudeQuatf q_mix = qd_red.inversed() * qd;q_mix.canonicalize();// catch numerical problems with the domain of acosf and asinfq_mix(0) = math::constrain(q_mix(0), -1.f, 1.f);q_mix(3) = math::constrain(q_mix(3), -1.f, 1.f);qd = qd_red * Quatf(cosf(_yaw_w * acosf(q_mix(0))), 0, 0, sinf(_yaw_w * asinf(q_mix(3))));// quaternion attitude control law, qe is rotation from q to qdconst Quatf qe = q.inversed() * qd;// using sin(alpha/2) scaled rotation axis as attitude error (see quaternion definition by axis angle)// also taking care of the antipodal unit quaternion ambiguityconst Vector3f eq = 2.f * qe.canonical().imag();// calculate angular rates setpointVector3f rate_setpoint = eq.emult(_proportional_gain);// Feed forward the yaw setpoint rate.// yawspeed_setpoint is the feed forward commanded rotation around the world z-axis,// but we need to apply it in the body frame (because _rates_sp is expressed in the body frame).// Therefore we infer the world z-axis (expressed in the body frame) by taking the last column of R.transposed (== q.inversed)// and multiply it by the yaw setpoint rate (yawspeed_setpoint).// This yields a vector representing the commanded rotatation around the world z-axis expressed in the body frame// such that it can be added to the rates setpoint.if (std::isfinite(_yawspeed_setpoint)){rate_setpoint += q.inversed().dcm_z() * _yawspeed_setpoint;}// limit ratesfor (int i = 0; i < 3; i++){rate_setpoint(i) = math::constrain(rate_setpoint(i), -_rate_limit(i), _rate_limit(i));}return rate_setpoint;
}

1.3源码功能

实现姿态误差计算,得到目标角速度。

2.源码分析

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

对应的PDF下载地址:
下载地址

http://www.15wanjia.com/news/20881.html

相关文章:

  • 网站后期维护内容友情链接外链
  • 用html做网站代码个人博客网页设计html
  • 帮做3d模型的网站杭州网站推广优化
  • wordpress创建自定义页面自己怎么优化网站排名
  • 自己做家具展示网站键词优化排名
  • 行业网站建设运营seo快速排名百度首页
  • 筛网怎么做网站网络营销八大职能
  • 自己怎么做网上注册免费的网站b2b网站免费推广
  • 哪个建设网站好宁波优化系统
  • 教育培训网站开发西安百度seo推广电话
  • 网站建设的落地页今日新闻最新头条10条摘抄
  • wordpress建站需要写代码吗免费的外贸b2b网站
  • 如何做网站图标平台seo什么意思
  • 滨州网站建设制作图片外链
  • 青岛专业网站制作外链交换平台
  • 网站建设页面生成网站开发合同
  • 银川专业做网站百度百科查询
  • 交易平台网站建设品牌推广运营策划方案
  • 校园网站做等级保护推广优化网站
  • 深圳前十网站建设公司seo教学
  • 香港网站域名申请百度seo排名优
  • 郑州公司网站建设服务排名优化工具下载
  • asp网站怎么做404页面跳转seo具体seo怎么优化
  • 保山市城乡建设局网站百度24小时人工客服
  • seo优化排名教程百度技术网站排名优化首页
  • 有点子外包做网站会不会被盗窃上海seo排名
  • 手机网站淘宝客怎么做产品推销方案
  • 有没人做阿里巴巴网站维护的营销网络怎么写
  • 查询网站域名备案申请网址怎么申请的
  • 沈阳企业网站怎样制作关键词排名批量查询