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

网站备案要网站做才可以使用吗百度一下电脑版网页

网站备案要网站做才可以使用吗,百度一下电脑版网页,做网站的关键词是指,网站运营目标目录 文章目录 目录摘要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/36556.html

相关文章:

  • wordpress 文章选择器东莞seo计费管理
  • 嘉兴网站建设哪家好深圳优化公司义高粱seo
  • 创建一个网站 站点根文件夹为深圳网站建设服务
  • 现在个人做网站或者app还有收益地推的方法和技巧
  • 专业做室内设计的网站有哪些内容重庆seo推广
  • 怎么做快播电影网站百度seo排名优化系统
  • 提供电子商务网站建设外包服务的企业手机百度电脑版入口
  • 富阳做网站洛洛科技新产品市场推广方案
  • 网站做权重的方法百度怎么推广
  • 百度云主机上装网站一元友情链接平台
  • 做网站的报价网络营销案例分析ppt
  • 网站导航栏下面的文章seol英文啥意思
  • 第一个做电子商务的网站百度官方网页版
  • 江苏城乡建设部网站首页seo研究中心教程
  • 辽宁省建设银行网站seo模拟点击软件源码
  • 网站导入dreamweaver指数基金怎么买
  • 软件工程中做视频网站交换链接营销实现方式解读
  • 常州外贸网站制作福州百度快照优化
  • wordpress不显示网站标题西安seo服务
  • 物流网站的建设毕业论文济南百度
  • 怎样做自己的公司网站竞价推广课程
  • 如何选择做网站潍坊疫情最新消息
  • 芙蓉区建设局网站怎样无货源开网店
  • 橙子建站的验证码安全吗网站打开
  • 手机网站设计案朋友圈网络营销
  • 新手怎么学做网站seo网站优化培训
  • 丽江市网站建设指数基金怎么买才赚钱
  • wordpress 两个网站网络营销毕业论文8000字
  • 昆明免费网站建设b2b免费外链发布
  • 重庆市江津区城乡建设委员会网站长尾关键词排名工具