mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
EN Articles
8 new English articles, SUMMARY.md updated
This commit is contained in:
committed by
GitHub
parent
a114608a0d
commit
63506698e9
@@ -1,3 +1,25 @@
|
||||
# Summary
|
||||
|
||||
* [Glossary](gloss.md)
|
||||
* [Clever 2 assembly](assemble_2.md)
|
||||
* [Clever 3 assembly](assemble_3.md)
|
||||
* [Connecting 4 in 1 ESCs](4in1.md)
|
||||
* [Types of power connectors](connectortypes.md)
|
||||
* [Blanching](zap.md)
|
||||
* [Initial setup](setup.md)
|
||||
* [Using multimeter](test_connection.md)
|
||||
* [Possible radio failures](radioerrors.md)
|
||||
* [Installation of FPV](fpv.md)
|
||||
* [Safety instruction](safety.md)
|
||||
* [Soldering safety](tb.md)
|
||||
* [Connecting GPS](gps.md)
|
||||
* [Flight modes](modes.md)
|
||||
* [UART settings](uart.md)
|
||||
* [Pixhawk / Pixracer Firmware](firmware.md)
|
||||
* [PX4 Parameters](px4_parameters.md)
|
||||
* [PID Setup](calibratePID.md)
|
||||
* [Raspberry Pi](raspberry.md)
|
||||
* [RPi Image](microsd_images.md)
|
||||
* [RPi Connection to the Pixhawk](connection.md)
|
||||
* [Wi-Fi connection](wifi.md)
|
||||
* [SSH access](ssh.md)
|
||||
16
docs/en/calibratePID.md
Normal file
16
docs/en/calibratePID.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Configuring the PID coefficients
|
||||
|
||||
In practice, the most common problem is the presence of rapid oscillations that occur due to the too large values of parameter P. In this situation, you should decrease this value (all parameters are set experimentally, based on copter behavior).
|
||||
|
||||
It is also worth checking that the oscillations do not occur during sharp descent (otherwise, reduce P).
|
||||
Slow copter rocking from side to side while trying to maintain the predetermined position is related to excessive value I.
|
||||
If the copter swings during movement, the value should be increased.
|
||||
If the copter keeps the preset position poorly, you should increase the D parameter; it the D parameter is too high or too low, oscillations occur.
|
||||
|
||||
> **Note** Adjustment of the D parameter should start with the minimum values, which are 3 – 4 times lower than default values, if any.
|
||||
|
||||
The Rate Pitch and Rate Roll parameters should be the same.
|
||||
|
||||
YAW parameters should be changed individually, according to the above instruction (usually the yaw doesn't require serious adjustment, you may leave it default).
|
||||
|
||||

|
||||
60
docs/en/connection.md
Normal file
60
docs/en/connection.md
Normal file
@@ -0,0 +1,60 @@
|
||||
Connecting Pixhawk/Pixracer to Raspberry Pi
|
||||
===
|
||||
|
||||
To program [autonomous flights] (simple_offboard.md) [work with Pixhawk (Pixracer) over Wi-Fi] (gcs_bridge.md), use [of a phone transmitter] (rc.md), and other functions, it is necessary to connect Raspberry Pi to Pixhawk (Pixracer).
|
||||
|
||||
Check operability of the connection [by running on Raspberry Pi] (ssh.md):
|
||||
|
||||
```bash
|
||||
rostopic echo /mavros/state
|
||||
```
|
||||
|
||||
The `connected` field should contain value `True`.
|
||||
|
||||
Connection via USB
|
||||
---
|
||||
|
||||
Connect Pixhawk/Pixracer to micro USB in Raspberry Pi with a USB cable.
|
||||
|
||||
Make sure that in Clever launch file (`~/catkin_ws/src/clever/clever/launch/clever.launch`), connection type is set to USB:
|
||||
|
||||
```xml
|
||||
<arg name="fcu_conn" default="usb"/>
|
||||
```
|
||||
|
||||
After the launch file is edited, restart package `clever`:
|
||||
|
||||
```bash
|
||||
sudo systemctl restart clever
|
||||
```
|
||||
|
||||
> **Hint** For correct operation of the Raspberry Pi connection to Pixhawk via USB, set value of [parameter](px4_parameters.md) `CBRK_USB_CHK` to 197848.
|
||||
|
||||
Connection via UART
|
||||
---
|
||||
|
||||
TODO connection diagram
|
||||
|
||||
Make sure that in Clever launch file (`~/catkin_ws/src/clever/clever/clever.launch`), connection type is set to UART:
|
||||
|
||||
```xml
|
||||
<arg name="fcu_conn" default="uart"/>
|
||||
```
|
||||
|
||||
After the launch-file is edited, restart package `clever`:
|
||||
|
||||
```bash
|
||||
sudo systemctl restart clever
|
||||
```
|
||||
|
||||
> **Hint** For correct operation of the Raspberry Pi connection to Pixhawk via UART, set value of parameter`SYS_COMPANION` to 921600.
|
||||
|
||||
Connection to SITL
|
||||
---
|
||||
|
||||
To connect locally/remotely to a running [SITL](sitl.md), set argument `fcu_conn` to `udp`, and `fcu_ip` to the IP address of the machine where SITL is running (`127.0.0.1` for local):
|
||||
|
||||
```xml
|
||||
<arg name="fcu_conn" default="udp"/>
|
||||
<arg name="fcu_ip" default="127.0.0.1"/>
|
||||
```
|
||||
53
docs/en/firmware.md
Normal file
53
docs/en/firmware.md
Normal file
@@ -0,0 +1,53 @@
|
||||
Pixhawk / Pixracer firmware flashing
|
||||
===
|
||||
|
||||
Pixhawk or Pixracer firmware may be flashed using QGroundControl or command line utilities.
|
||||
|
||||
Various releases of stable PX4 firmwares are available from [Releases at GitHub] (https://github.com/PX4/Firmware/releases).
|
||||
|
||||
The name of the firmware file contains encoded information about the target circuit-board and the release. Examples:
|
||||
|
||||
* `px4fmu-v2_default.px4` — firmware for Pixhawk with EKF2.
|
||||
* `px4fmu-v2_lpe.px4` — firmware for Pixhawk with LPE.
|
||||
* `px4fmu-v4_default.px4` — firmware for Pixhawk with EKF2 and LPE (*Clever 3*).
|
||||
* `px4fmu-v3_default.px4` — firmware for newer Pixhawk versions (rev. 3 chip, see Fig. + Bootloader v5) with EKF2 and LPE.
|
||||
|
||||

|
||||
|
||||
> **Note** To download the `px4fmu-v3_default.px4` file, you may need to use the `force_upload` command in the command prompt.
|
||||
|
||||
QGroundControl
|
||||
---
|
||||
|
||||
In QGroundControl, go to Firmware. **After** that, connect Pixhawk / Pixracer via USB.
|
||||
|
||||
Select PX4 Flight Stack. To download and upload the standard firmware (the version with EKF2 for Pixhawk), select the "Standard Version" menu item, to load your own firmware file, select "Custom firmware file...", then click OK.
|
||||
|
||||
> **Warning** Do not disconnect the USB cable until the flashing process is complete.
|
||||
|
||||
TODO: Figure.
|
||||
|
||||
Command prompt
|
||||
---
|
||||
|
||||
PX4 may be compiled from the source and automatically loaded to the circuit-board from the command prompt.
|
||||
|
||||
To do this, clone the PX4 repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/PX4/Firmware.git
|
||||
```
|
||||
|
||||
Select the appropriate version (tag) using `git checkout`. Then compile and upload the firmware:
|
||||
|
||||
```
|
||||
make px4fmu-v4_default upload
|
||||
```
|
||||
|
||||
Where `px4fmu-v4_default` is the required firmware version.
|
||||
|
||||
To upload the `v3` firmware to Pixhawk, you may need the `force_upload` command:
|
||||
|
||||
```
|
||||
make px4fmu-v3_default force-upload
|
||||
```
|
||||
27
docs/en/microsd_images.md
Normal file
27
docs/en/microsd_images.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Raspberry Pi image
|
||||
|
||||
The image contains:
|
||||
|
||||
* [Raspbian](https://www.raspberrypi.org/downloads/raspbian/) Stretch
|
||||
* [ROS Kinetic](http://wiki.ros.org/kinetic)
|
||||
* [A software package for Clever](https://github.com/CopterExpress/clever)
|
||||
|
||||
**The latest version of the image is available for [downloading from GitHub in section Releases](https://github.com/CopterExpress/clever/releases).**
|
||||
|
||||
> **Hint** The stable and supported version of the image is the release marked as **Latest release**.
|
||||
|
||||
<img src="../assets/image.png" width=400 alt="Download image">
|
||||
|
||||
## Installing the OS image on a MicroSD card
|
||||
|
||||
To install the image, you can use the [Etcher] utility (https://etcher.io).
|
||||
|
||||
[](https://etcher.io)
|
||||
|
||||
## Image version
|
||||
|
||||
The version of the installed image may be found in file `/etc/clever_version`:
|
||||
|
||||
```bash
|
||||
cat /etc/clever_version
|
||||
```
|
||||
72
docs/en/px4_parameters.md
Normal file
72
docs/en/px4_parameters.md
Normal file
@@ -0,0 +1,72 @@
|
||||
# PX4 Parameters
|
||||
|
||||
Main article: https://dev.px4.io/en/advanced/parameter_reference.html
|
||||
|
||||
> **Note** This is a description some of the most important PX4 parameters as of version 1.8.0. The full list is available at the link above.
|
||||
|
||||
To change PX4 parameters, you can use the QGroundControl application [by connecting to Clever via Wi-Fi](gcs_bridge.md):
|
||||
|
||||

|
||||
|
||||
## Main parameters
|
||||
|
||||
The most important parameters are listed in this paragraph.
|
||||
|
||||
`SYS_MC_EST_GROUP` – select the estimator module.
|
||||
|
||||
This is a group of modules that calculates the current state of the copter using readings from the sensors. The copter state includes:
|
||||
|
||||
* Angle rate of the copter – pitch_rate, roll_rate, yaw_rate;
|
||||
* Copter orientation (in the local coordinate system) – pitch, roll, yaw (one of presentations);
|
||||
* Copter position (in the local coordinate system) – x, y, z;
|
||||
* Copter speed (in the local coordinate system) – vx, vy, vz;
|
||||
* Global coordinates of the copter – lattitude, longitude, altitude;
|
||||
* Altitude above the surface;
|
||||
* Other parameters (the drift of gyroscopes, wind speed, etc.).
|
||||
|
||||
`SYS_AUTOCONFIG` — resets all parameters (sets to 1).
|
||||
|
||||
## EKF2
|
||||
|
||||
`EKF2_AID_MASK` — selects sensors that are used by EKF2 to calculate the copter state.
|
||||
|
||||
`EKF2_HGT_MODE` is the main source of height data (z in the local coordinate system):
|
||||
|
||||
* 0 – pressure reading on the barometer.
|
||||
* 1 – GPS.
|
||||
* 2 – distance meter (for example, vl53l1x).
|
||||
* 3 – data from VPE.
|
||||
|
||||
Variant 2 is the most accurate; however, it is correct to use it only if the surface the copter flies over is flat. Otherwise, the Z axis origin will move up and down with the altitude of the surface.
|
||||
|
||||
## Multicopter Control Position (flying by position)
|
||||
|
||||
These parameters adjust the flight of the copter by position (POSCTL, OFFBOARD, AUTO modes).
|
||||
|
||||
`MPC_THR_HOVER` — hovering throttle. This option is to set to the approximate percentage of throttle needed to make the copter maintain its altitude. If copter has a tendency to gain or lose altitude during the hovering mode, reduce or increase this value.
|
||||
|
||||
`MPC_XY_P` – position factor *P* of the ESC. This parameter affects how sharply the copter will react to the position commands. A too high value may cause {перестрелы}.
|
||||
|
||||
`MPC_XY_VEL_P` – speed factor *P* of the ESC. This parameter also affects the accuracy and sharpness of copter execution of the given position. A too high value may cause {перестрелы}.
|
||||
|
||||
`MPC_XY_VEL_MAX` — the maximum horizontal speed in POSCTL, OFFBOARD, AUTO modes.
|
||||
|
||||
`MPC_Z_P`, `MPC_Z_VEL_P` – vertical position and speed factors *P* of the ESCs they determine the copter's ability to maintain the desired altitude.
|
||||
|
||||
`MPC_LAND_SPEED` is the vertical velocity of landing in the LAND mode.
|
||||
|
||||
## LPE + Q attitude estimator
|
||||
|
||||
These parameters configure the behavior of the `lpe` and `q` modules, which compute the state (orientation, position) of the copter. These parameters apply **only** if the `SYS_MC_EST_GROUP` parameter is set to `1` (local_position_estimator, attitude_estimator_q)
|
||||
|
||||
TODO
|
||||
|
||||
## Commander
|
||||
|
||||
Prearm checks, switching the modes and states of the copter.
|
||||
|
||||
## Sensors
|
||||
|
||||
Enabling, disabling and configuring various sensors.
|
||||
|
||||
TODO
|
||||
30
docs/en/raspberry.md
Normal file
30
docs/en/raspberry.md
Normal file
@@ -0,0 +1,30 @@
|
||||
Raspberry Pi
|
||||
============
|
||||
|
||||
**Raspberry Pi** is a single-board computer that fits in the palm, created on the basis of mobile microprocessor ARM11. It features low energy consumption, and it can even run on solar panels. Raspberry Pi 3 is included in the kits for programmable quadcopters "Clever 2" and "Clever 3".
|
||||
|
||||
<img src="../assets/raspberry3.jpg" width="500">
|
||||
|
||||
* Weight is 45 grams.
|
||||
* Clock rate is 1.2 GHz.
|
||||
* Graphics core in the Broadcom BCM2837 processor.
|
||||
* RAM is 1 GB.
|
||||
* Four USB 2.0 ports.
|
||||
* An HDMI port.
|
||||
|
||||
The scope of Raspberry Pi computer application is quite wide, since after all it is quite a full-fledged computer. If you need a machine to solve simple problems that do not require too many resources in terms of calculations, you can safely connect your Raspberry Pi device to the standard PC elements: a monitor, a mouse, or a keyboard.
|
||||
|
||||
The Raspberry Pi is a very popular platform where you can implement a variety of projects, such as:
|
||||
|
||||
* a home automation server (or a "smart house" system);
|
||||
* a data storage server (NAS);
|
||||
* a home media server;
|
||||
* a "think-tank" for automated machines or robots.
|
||||
|
||||
In fact, we will use it as the last in the list, due to its ability to connect to the Pixhawk autopilot.
|
||||
|
||||
See more:
|
||||
|
||||
* [RPi image](microsd_images.md)
|
||||
* [SSH access](ssh.md)
|
||||
* [Network setup](network.md)
|
||||
27
docs/en/ssh.md
Normal file
27
docs/en/ssh.md
Normal file
@@ -0,0 +1,27 @@
|
||||
SSH access to Raspberry Pi
|
||||
===
|
||||
|
||||
[RPi image](microsd_images.md) is configured to be accessed via SSH for editing files, loading data and running programs.
|
||||
|
||||
For the SSH access, it is necessary [to connect to Raspberry Pi over Wi-Fi](Wi-Fi.md) (connection via an Ethernet cable is also possible).
|
||||
|
||||
In Linux or macOS, run the command prompt, and execute command:
|
||||
|
||||
```bash
|
||||
ssh pi@192.168.11.1
|
||||
```
|
||||
|
||||
Password: `raspberry`.
|
||||
|
||||
For SSH access from Windows, you may use [PuTTY] (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html).
|
||||
|
||||
You can also gain SSH access from your smart-phone using the [Termius] app (https://www.termius.com).
|
||||
|
||||
Read more: https://www.raspberrypi.org/documentation/remote-access/ssh/README.md
|
||||
|
||||
Web access
|
||||
----------
|
||||
|
||||
Starting with version 0.11.4 [of the image](microsd_images.md), access to the shell is also available via a web browser (using [Butterfly](https://github.com/paradoxxxzero/butterfly)). To gain access, open web page http://192.168.11.1, and select link *Open web terminal*:
|
||||
|
||||
<img src="../assets/butterfly.png">
|
||||
10
docs/en/wifi.md
Normal file
10
docs/en/wifi.md
Normal file
@@ -0,0 +1,10 @@
|
||||
Connecting to Clever via Wi-Fi
|
||||
===
|
||||
|
||||
[RPi image](microsd_images.md) provides a pre-configured Wi-Fi access point from SSID `CLEVER-xxxx`, where xxxx are the four random numbers that are assigned when your Raspberry Pi is run for the first time.
|
||||
|
||||
Password: `cleverwifi`.
|
||||
|
||||
<img src="../assets/ssid.png" width="300px" alt="Wi-Fi SSID">
|
||||
|
||||
To edit the Wi-Fi settings, or to obtain more detailed information about the network device on Raspberry Pi, read this [article](network.md).
|
||||
Reference in New Issue
Block a user