Ardupilot开源飞控之Wiki修改操作

这篇具有很好参考价值的文章主要介绍了Ardupilot开源飞控之Wiki修改操作。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1. 源由

最近为了为了增加一些Ardupilot Wiki内容,对Wiki的编辑提交步骤整理一下,以便后续工作的展开。

修改过程大致可以分为两大类:

  1. 页面编辑修改
  2. 增删页面修改

2. 页面编辑修改

原文链接详见:Wiki Editing - Quick Edits

2.1 Step 1: 申请Github账号

Create a Github account if you do not have one already

没有Github账号的同学,需要首先申请Github账号。

注:如果遇到任何问题,请仔细阅读帮助文档Get started with GitHub documentation。

2.2 Step 2: 选择修改页面

Find the page you wish to edit and click the Edit on GitHub link on the top right of the page to be taken to its source, Select the Edit this file icon

首先,在Ardupilot Wiki上,找到需要修改的页面。
然后,在网页右上方找到Edit on Github链接,点击进入。

Ardupilot开源飞控之Wiki修改操作,ArduPilot,开源,Ardupilot

2.3 Step 3: 修改页面内容

Make the changes in the “Edit file” tab and use the “Preview changes” tab to check the change.
Note: links to other wiki pages are not rendered properly and will appear with :ref:` in front

  1. 请注意,此时应该有Github账号登录(这也就是为什么第一步是申请账号,如果没有登录会提示登录)。
  2. 点击Github上的修改按钮,进行相应文档内容的修改和编辑。
    Ardupilot开源飞控之Wiki修改操作,ArduPilot,开源,Ardupilot

2.4 Step 4: 提交修改

At the bottom of the page under “Commit changes”

当有修改变动后,【Commit changes】会变亮,此按钮可以提交修改。

Ardupilot开源飞控之Wiki修改操作,ArduPilot,开源,ArdupilotArdupilot开源飞控之Wiki修改操作,ArduPilot,开源,Ardupilot

2.5 Step 5: 新增PR

When taken to the “Open a pull request” screen, press the “Create pull request” button

Ardupilot开源飞控之Wiki修改操作,ArduPilot,开源,Ardupilot
此时,git库上,会新增一个分支来保存这个改动。

$ git pull
Already up to date.
daniel@palfocus:~/ArduPilot/ardupilot_wiki$ git pull
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 21 (delta 6), reused 10 (delta 5), pack-reused 0
Unpacking objects: 100% (21/21), 123.80 KiB | 248.00 KiB/s, done.
From github.com:lida2003/ardupilot_wiki
 * [new branch]        patch-3    -> origin/patch-3
Already up to date.

$ git checkout patch-3
Branch 'patch-3' set up to track remote branch 'patch-3' from 'origin'.
Switched to a new branch 'patch-3'

$ git log -n 1
commit 98f5a52e7b38ae9a63c2cc0db1569ae169c59995 (HEAD -> patch-3, origin/patch-3)
Author: Daniel Li <lida_mail@163.com>
Date:   Wed Nov 1 04:55:29 2023 +0800

    Test and Drop

    Test and Drop



3. 增删页面修改

这个操作主要问题在于需要动到文件的增加和删除,此时涉及:

  1. 常规的git库文件操作
  2. 编辑效果展示(构建web页面)

3.1 Step 1: 克隆本地的Ardupilot Wiki

$ git clone git@github.com:lida2003/ardupilot_wiki.git

3.2 Step 2: 搭建本地验证环境

详细可以参考:Wiki Editing - Setting Up the Environment

一般Linux原生态环境是兼容性最好的,其他虚拟机之类,个人并不推荐。

在ubuntu上安装编译工具:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

$ ./Sphinxsetup.sh

编译html文档命令如下:

$ cd ardupilot_wiki
$ python3 update.py (to build all wikis)
$ python3 update.py --site copter  (to build just the copter wiki)
$ python3 update.py --site plane   (to build just the plane wiki)
$ python3 update.py --site rover   (to build just the rover wiki)
$ python3 update.py --site dev     (to build just this developer wiki)

编译构建html文档位置

  • For Copter look for ardupilot_wiki/copter/build/html/index.html
  • For Plane look for ardupilot_wiki/plane/build/html/index.html
  • For Rover look for ardupilot_wiki/rover/build/html/index.html
  • For Developer look for ardupilot_wiki/dev/build/html/index.html

3.3 Step 3: 增删改内容

  • Notepad++ 推荐使用
  • ssh git操作
  • samba共享,浏览器确认结果
$ git branch patch-4
$ git add .
$ git commit -m "Copter: change......"
$ git push

注意事项

  • Wiki Editing Style Guide
  • Wiki Editing - Archiving and Deleting

3.4 Step 4: Github PR操作

略,不再赘述,详见:Creating a pull request

4. Ardupilot Wiki结构介绍

详见:Wiki Infrastructure Overview

.
|-- Dockerfile
|-- LICENSE
|-- Makefile
|-- README.md
|-- Sphinxsetup.bat
|-- Sphinxsetup.sh
|-- Vagrantfile
|-- antennatracker   // ATT天线
|-- ardupilot  // 官网主页
|-- blimp // 飞艇,气球
|-- build_parameters.py
|-- common // 通用页面
|-- common_conf.py
|-- copter // 多旋翼
|-- dev // 开发者
|-- frontend
|-- images
|-- js
|-- logos
|-- mavproxy // mavprox
|-- plane // 固定翼
|-- planner // mission planner
|-- planner2 // APM Planner 2
|-- rover // 车
|-- rst_table.py
|-- scripts
|-- update.py
`-- update.sh

5. 附录

A) 国内的环境有的时候是比较复杂的,因此,会给技术研发带来各种困难。真的对技术发展很不友好!

==> Build wiki failed, some kind of connection issue? #5743

B) 需要确认下是否安装python3-sphinxSphinxsetup.sh脚本似乎并未将spinx安装成功。文章来源地址https://www.toymoban.com/news/detail-744674.html

$ sudo apt-get install python3-sphinx

到了这里,关于Ardupilot开源飞控之Wiki修改操作的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 无人机/飞控--ArduPilot、PX4学习记录(5)

    这几天看dronekit,做无人机失控保护。 PX4官网上的经典案例,我做了很多注解,把代码过了一遍。 无人机具体执行了:  先起飞,飞至正上空10m-向北移动10m-向东移动10m-向南移动10m-向西移动10m-回到初始起飞点(即home点),降落。 具体执行之前,要打开JMAVSim,接下来会在JMAV

    2024年04月15日
    浏览(40)
  • (4)(4.6.1) ArduPilot操作的简单概述

    文章目录 前言 1 基本目标 2 输入 3 输出 4 传感器 5 参数说明 这是一个非常基本的 ArduPilot 固件运行在 自动驾驶仪 上的功能概述。下面显示的是一个基本功能操作的简单框图。这将使你在配置系统时对 ArduPilot 的基本功能有一个更好的了解。 软件的基本目标是提供对飞行器的

    2024年02月08日
    浏览(31)
  • Nooploop空循环 基于ArduPilot开源自动驾驶仪平台(APM固件)的TOFSense/-F/-M全系列激光测距传感器应用图文教程

    自2023/7/10日起ArduPilot飞控固件开始支持深圳空循环科技有限公司的TOFSense系列产品。从Plane/Copter/Rover 4.5 开始,Ardupilot 固件添加了对 TOFSense协议的支持,用于避障和高度保持。用户如果使用低于该版本的固件需要自行将相关文件进行移植与适当修改,才能支持TOFSense,TOFSense传

    2024年02月04日
    浏览(37)
  • ardupilot开发 --- ardupilot parameter与mavlink massage篇

    除了可以再初始化设置外,ardupilot parameters一般通过mavlink massage来动态设置; https://ardupilot.org/copter/docs/parameters.html https://mavlink.io/en/messages/common.html https://blog.csdn.net/weixin_43321489/article/details/132236353

    2024年02月10日
    浏览(36)
  • ardupilot开发 --- 深度相机 篇

    需要机载计算机作为中介!!

    2024年02月06日
    浏览(33)
  • ardupilot开发 --- git 篇

    工作区:就是你在电脑里能看到的目录; 暂存区:stage区 或 index区。存放在 :工作区 / .git / index 文件中; 版本库:本地仓库,存放在 :工作区 / .git 中 关于 HEAD 是所有本地分支的游标(指针); HEAD既可以指向某个分支,还可以指向某个分支的某个(次)提交; HEAD指向谁,

    2024年02月04日
    浏览(36)
  • Ardupilot环境搭建

    Ardpilot介绍:ArduPilot通过多种传感器的数据(GPS、加速度计、气压计、磁场计)等来估计飞行器的姿态,从而使飞行器能够保持稳定。被称为APM的飞控硬件,其实全程就是Ardu Pilot Mega,但是2013年后,这个系列的飞控硬件改名为Pixhawk,ArduPilot只用来指特定的飞控软件,但是约定

    2024年02月07日
    浏览(27)
  • Ardupilot学习笔记

    https://doc.cuav.net/tutorial/copter 【1】https://ardupilot.org 一套开源的自驾仪,集成了各种各样的代码,包括其他开源代码(如PX4代码)和项目、驱动等。 即:自驾仪即集成了整个可以实现无人载具(如无人机)自动驾驶功能的代码。 指定硬件(即target board)后,将Ardupilot编译后的可以

    2024年02月12日
    浏览(35)
  • ardupilot开发 --- Lua脚本篇

    ArduPilot引入了对Lua脚本的支持; 可以同时运行多个脚本; Lua脚本存放在 SD card 中; Copter-4.0 及以上版本才支持Lua脚本; scripting API ?scripting applets ? 飞控条件:2 MB of flash and 70 kB of memory ; 将Lua脚本上传到 SD card’s APM/scripts 文件夹中,在Mission Planner使用MAVFTP可以上传文件;

    2024年02月11日
    浏览(30)
  • ardupilot 遥控的输入控制模式

    本节主要记录自己整理ardupilot的遥控器的输入控制模式:正常模式、简单模式、超简单模式的理解。 在不用简单和超简单的模式的情况下,无人机操作员操作的控制输入是对应着不断旋转着的飞行器进行操作的。如上方图所示举例,当无人机操作员进行向右(红色)的 横滚

    2024年02月15日
    浏览(30)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包