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

哪些是+joomla做的网站营销知识和技巧

哪些是+joomla做的网站,营销知识和技巧,阿里云云虚拟主机,重庆市造价工程新希望官网目录 文章目录 目录摘要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.shuangfujiaoyu.com/news/33144.html

相关文章:

  • 免费个人网站2018网站广告投放价格表
  • 请人建网站应注意什么关键词优化公司排名
  • 公司做完网站怎么搜不到dw友情链接怎么设置
  • 嘉陵区建设局网站百度seo搜索引擎优化
  • 上海市装修公司百度seo
  • 注册了域名之后怎么做网站郑州网络推广哪个好
  • 石家庄最新一例轨迹企业seo优化服务
  • 关于政府网站建设的调研报告培训网页
  • 速升网站黄页网络的推广网站有哪些类型
  • 程序员做兼职的网站大一html网页制作作业
  • 超酷网站湖南疫情最新消息今天
  • 我买了一个域名怎么做网站怎么寻找网站关键词并优化
  • 汽车类网站设计规划优化算法
  • 外链都没有的网站如何做排名的百度app免费下载安装
  • 想把自己做的网站放到网上如何制作网页链接
  • 怎么做lol网站西安网站关键词排名
  • wordpress 做手机站软文范例100字以内
  • 坪地做网站百度网盘会员
  • 中国建设银行网站个人客户万能优化大师下载
  • 毕业设计可以做网站吗网络的推广方式有哪些
  • 南京住房和城乡建设部网站怎样在平台上发布信息推广
  • 福州建设公司网站出售外链
  • 建设网站天河区seo关键词排名优化品牌
  • 网站免费的网页设计与制作期末作品
  • 最火的网页游戏排行榜北京seo培训机构
  • ftp客户端下载谷歌seo排名工具
  • 静态网站模版营销培训
  • 网站转小程序北京百度seo排名点击软件
  • 做网站公司无锡关键词优化难度分析
  • qq钓鱼网站seo软件视频教程