diff --git a/docs/uk/SUMMARY.md b/docs/uk/SUMMARY.md index ca2cffe377c..88268c9d130 100644 --- a/docs/uk/SUMMARY.md +++ b/docs/uk/SUMMARY.md @@ -168,6 +168,7 @@ - [3DR Control N1](flight_controller/3dr_ctrl-n1.md) - [Accton Godwit GA1](flight_controller/accton-godwit_ga1.md) - [AEDROX AEDROXH7](flight_controller/aedrox_aedroxh7.md) + - [Agam Autopilot v6X-RT](flight_controller/agam_v6xrt.md) - [AirMind MindPX](flight_controller/mindpx.md) - [AirMind MindRacer](flight_controller/mindracer.md) - [Amovlab Flycore](flight_controller/amovlab_flycore.md) @@ -201,6 +202,7 @@ - [MicoAir H743 Lite](flight_controller/micoair743-lite.md) - [ModalAI VOXL 2](flight_controller/modalai_voxl_2.md) - [mRo Control Zero F7](flight_controller/mro_control_zero_f7.md) + - [NWBlue Pro H757](flight_controller/nwblue_pro-h757.md) - [Radiolink PIX6](flight_controller/radiolink_pix6.md) - [Sky-Drones AIRLink](flight_controller/airlink.md) - [SPRacing SPRacingH7EXTREME](flight_controller/spracingh7extreme.md) @@ -209,6 +211,7 @@ - [ThePeach FCC-R1](flight_controller/thepeach_r1.md) - [AP-H743-R1](flight_controller/x-mav_ap-h743r1.md) - [VOLOLAND NarinFC-H7](flight_controller/vololand_narinfc_h7.md) + - [SIYI-UniFC-6-PICO](flight_controller/siyi-unifc-6-pico.md) - [Калібрування рівня горизонту](flight_controller/autopilot_experimental.md) - [BeagleBone Blue](flight_controller/beaglebone_blue.md) - [Raspberry Pi 2/3 Navio2](flight_controller/raspberry_pi_navio2.md) @@ -492,6 +495,7 @@ - [Visual Studio Code IDE](dev_setup/vscode.md) - [QGC Daily Build](dev_setup/qgc_daily_build.md) - [Збірка коду](dev_setup/building_px4.md) + - [Building SITL Containers](dev_setup/sitl_container_builds.md) - [Пишемо ваш перший додаток](modules/hello_sky.md) - [Шаблон додатку/модуля](modules/module_template.md) - [Поняття](concept/index.md) @@ -522,6 +526,7 @@ - [Багатотранспортний Sim](sim_gazebo_classic/multi_vehicle_simulation.md) - [Симуляція запобігання відмовам](simulation/failsafes.md) - [Pre-built Packages](simulation/px4_sitl_prebuilt_packages.md) + - [Gazebo Container GUI](simulation/gazebo_container_gui.md) - [Апаратне забезпечення](hardware/index.md) - [Дизайн контролера польоту](hardware/reference_design.md) - [Manufacturers](hardware/manufacturers.md) diff --git a/docs/uk/advanced_features/precland.md b/docs/uk/advanced_features/precland.md index 6105124ef36..65fa7727804 100644 --- a/docs/uk/advanced_features/precland.md +++ b/docs/uk/advanced_features/precland.md @@ -66,6 +66,14 @@ To use this feature you must [build a firmware that includes the module](../adva Without this, `vte_orientation` is never published and [PLD_YAW_EN](#PLD_YAW_EN) has no effect. ::: +### Precision Takeoff + +The Vision Target Estimator can also keep the vehicle over the pad during a vertical takeoff. +Set [MIS_TKO_PREC](../advanced_config/parameter_reference.md#MIS_TKO_PREC)=1 and enable bit 2 of [VTE_TASK_MASK](../advanced_config/parameter_reference.md#VTE_TASK_MASK). +[MIS_TKO_PREC_DLY](../advanced_config/parameter_reference.md#MIS_TKO_PREC_DLY) sets how long after the takeoff ramp the setpoint may move onto the target, so the vehicle clears the pad first. +In static-target builds, bit 5 of [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) fuses home as the pad's absolute position during precision takeoff. +See [Precision Takeoff](../advanced_features/vision_target_estimator.md#precision-takeoff) for details. + ## Початок точної посадки Точне приземлення можна використовувати у місіях, під час фази посадки у режимі _Повернення_, або ввійшовши в режим _Точна посадка_. @@ -85,8 +93,8 @@ Without this, `vte_orientation` is never published and [PLD_YAW_EN](#PLD_YAW_EN) Це вмикається за допомогою параметра [RTL_PLD_MD](../advanced_config/parameter_reference.md#RTL_PLD_MD), який приймає такі значення: - `0`: Точна посадка вимкнена (посадка як зазвичай). -- `1`: [Опортуничний](#opportunistic-mode) режим точної посадки. -- `2`: [Вимагається](#required-mode) режим точної посадки. +- `1`: [Opportunistic](#opportunistic-mode) режим точної посадки. +- `2`: [Required](#required-mode) режим точної посадки. ### Режим польоту з точною посадкою diff --git a/docs/uk/advanced_features/vision_target_estimator.md b/docs/uk/advanced_features/vision_target_estimator.md index 126ee6446ac..fdfa2a6c111 100644 --- a/docs/uk/advanced_features/vision_target_estimator.md +++ b/docs/uk/advanced_features/vision_target_estimator.md @@ -186,6 +186,7 @@ Set the indicated bit to enable the corresponding task. | --- | ---------------------------------------- | | 0 | Precision landing | | 1 | DEBUG (always active) | +| 2 | Precision takeoff | :::warning The controller only consumes the VTE output once the landing waypoint is configured for precision landing (see [Mission precision landing](../advanced_features/precland.md#mission)). @@ -195,6 +196,23 @@ Yaw alignment is additionally gated by [PLD_YAW_EN](../advanced_config/parameter With precision landing enabled but `PLD_YAW_EN` disabled, only the position estimate is tracked. ::: +### Precision Takeoff + +With bit 2 set and [MIS_TKO_PREC](../advanced_config/parameter_reference.md#MIS_TKO_PREC) enabled, the estimator runs while a vertical takeoff is active and [Navigator](../modules/modules_controller.md#navigator) keeps the takeoff setpoint over the target until the takeoff altitude is reached. +This applies to multicopters and to VTOLs in hover. +The setpoint only moves onto the target once the takeoff ramp is complete and [MIS_TKO_PREC_DLY](../advanced_config/parameter_reference.md#MIS_TKO_PREC_DLY) has elapsed, so the vehicle is clear of the pad before it corrects sideways. Large airframes may need a longer delay. +Bit 5 of [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) fuses home as the pad's absolute position during precision takeoff. +PX4 normally records home from the vehicle's position at arming or takeoff; a manually assigned home is also accepted. +Home is used only while landed, with recent 3D GNSS data placing the vehicle within 5 m of it, and when target GNSS position (bit 0) is disabled. +Home aiding is disabled in moving-target builds because a fixed home position cannot describe a moving pad. +If no valid target estimate is available the vehicle climbs straight up as usual. + +:::warning +The estimator cannot tell which pad a target GNSS position (`target_gnss`) describes. +If the vehicle takes off from one pad and lands on another, the companion must publish the takeoff pad while [`prec_takeoff_status`](../msg_docs/PrecTakeoffStatus.md) is `ONGOING` and the landing pad while [`prec_land_status`](../msg_docs/PrecLandStatus.md) is active, or not publish it at all during takeoff. +Vision is not affected: the camera sees the pad below the vehicle. +::: + ### Sensor Fusion Selection [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) is a bitmask that defines which measurements can be fused: @@ -206,6 +224,7 @@ With precision landing enabled but `PLD_YAW_EN` disabled, only the position esti | 2 | Vision-based relative pose | | 3 | Mission landing waypoint | | 4 | Target GNSS velocity ([moving mode](../advanced_features/vision_target_estimator_advanced.md#moving-target-mode-experimental) only) | +| 5 | Home position ([static-target precision takeoff](#precision-takeoff) only) | Bit 2 also enables processing of `fiducial_marker_yaw_report` in the orientation filter. @@ -225,6 +244,7 @@ Each source observes a different combination of states (see the per-source obser **Target GNSS position and mission landing waypoint are mutually exclusive.** Both provide the absolute reference for the same GNSS/vision bias, and only one bias can be estimated at a time. +The same applies to the home position during precision takeoff (bit 5). If both bits are set, the module disables the mission landing waypoint at startup and prints a warning, but it is cleaner to pick one explicitly: use target GNSS when a receiver is mounted on the target (most accurate), and the mission landing waypoint when no receiver is available. ::: @@ -237,14 +257,14 @@ For each observation $z$ a one-row Jacobian is formed and applied to a single ax Enabled sensors are defined by the [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bitmask. The state symbols used in the `H` column ($r$, $v^{uav}$, $b$, $v^{t}$, $\psi$) are defined in the [Dynamic models](#dynamic-models) block above. -| Source | Тема uORB | H structure | Примітки | -| ----------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Target GNSS position | [`target_gnss`](../msg_docs/TargetGnss.md) | $z = r + b$ once the bias is observable, otherwise $z = r$ | The vehicle GNSS sample is interpolated to the target timestamp using the vehicle velocity so the two receivers share a common epoch. Requires [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 0. Before bias activation, this source is held back if the estimator is already vision-referenced. | -| Mission landing waypoint | `navigator_mission_item` with validated `position_setpoint_triplet` fallback | $z = r$ | Provides a fallback absolute reference when target GNSS is unavailable. At precision-land task start VTE caches the logical landing waypoint published by [Navigator](../modules/modules_controller.md#navigator) and keeps using that cached point even after precland rewrites the live triplet. The triplet remains a fallback for modes that do not publish `navigator_mission_item`. Enable [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 3 and avoid combining it with target GNSS because only one GNSS bias can be estimated. Before bias activation, this source is held back if the estimator is already vision-referenced. | -| Vision pose | [`fiducial_marker_pos_report`](../msg_docs/FiducialMarkerPosReport.md) | $z = r$ after rotating the measurement (`rel_pos`) into NED using `q` | Uses the message variances, lower-bounded by [VTE_EVP_NOISE](../advanced_config/parameter_reference.md#VTE_EVP_NOISE). Recent vision fusions are required for EKF aiding. During the initial GNSS/vision bias averaging phase, valid vision samples update the bias low-pass filter but are not fused into the position state yet. This averaging phase only exists when GNSS became the active reference first. | -| Vehicle GNSS velocity | `sensor_gps` | $z = v^{uav}$ | Removes rotation-induced velocity using the vehicle GPS antenna offset parameters (`SENS_GPS0_OFF*`). Enable [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 1. | -| Target GNSS velocity (moving mode) | `target_gnss` | $z = v^{t}$ | Only used by the experimental [Moving-target mode](../advanced_features/vision_target_estimator_advanced.md#moving-target-mode-experimental). | -| Vision yaw | [`fiducial_marker_yaw_report`](../msg_docs/FiducialMarkerYawReport.md) | $z = \psi$ | Only source used by the orientation filter. Requires [VTE_YAW_EN](../advanced_config/parameter_reference.md#VTE_YAW_EN) and [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 2. Variance is taken from the message and lower-bounded by [VTE_EVA_NOISE](../advanced_config/parameter_reference.md#VTE_EVA_NOISE). | +| Source | Тема uORB | H structure | Примітки | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Target GNSS position | [`target_gnss`](../msg_docs/TargetGnss.md) | $z = r + b$ once the bias is observable, otherwise $z = r$ | The vehicle GNSS sample is interpolated to the target timestamp using the vehicle velocity so the two receivers share a common epoch. Requires [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 0. Before bias activation, this source is held back if the estimator is already vision-referenced. Must describe the pad of the active task, see [Precision Takeoff](#precision-takeoff). | +| Mission/home position | `navigator_mission_item` with validated `position_setpoint_triplet` fallback; `home_position` during takeoff | $z = r + b$ once the bias is observable, otherwise $z = r$ | Provides a fallback absolute reference when target GNSS is unavailable. At precision-land task start VTE caches the logical landing waypoint published by [Navigator](../modules/modules_controller.md#navigator) and keeps using that cached point even after precland rewrites the live triplet. The triplet remains a fallback for modes that do not publish `navigator_mission_item`; enable bit 3 for this path. During precision takeoff, home takes this role instead when bit 5 is enabled and its landed/GNSS checks pass. Avoid combining either reference with target GNSS because only one GNSS bias can be estimated. Before bias activation, this source is held back if the estimator is already vision-referenced. | +| Vision pose | [`fiducial_marker_pos_report`](../msg_docs/FiducialMarkerPosReport.md) | $z = r$ after rotating the measurement (`rel_pos`) into NED using `q` | Uses the message variances, lower-bounded by [VTE_EVP_NOISE](../advanced_config/parameter_reference.md#VTE_EVP_NOISE). Recent vision fusions are required for EKF aiding. During the initial GNSS/vision bias averaging phase, valid vision samples update the bias low-pass filter but are not fused into the position state yet. This averaging phase only exists when GNSS became the active reference first. | +| Vehicle GNSS velocity | `sensor_gps` | $z = v^{uav}$ | Removes rotation-induced velocity using the vehicle GPS antenna offset parameters (`SENS_GPS0_OFF*`). Enable [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 1. | +| Target GNSS velocity (moving mode) | `target_gnss` | $z = v^{t}$ | Only used by the experimental [Moving-target mode](../advanced_features/vision_target_estimator_advanced.md#moving-target-mode-experimental). | +| Vision yaw | [`fiducial_marker_yaw_report`](../msg_docs/FiducialMarkerYawReport.md) | $z = \psi$ | Only source used by the orientation filter. Requires [VTE_YAW_EN](../advanced_config/parameter_reference.md#VTE_YAW_EN) and [VTE_AID_MASK](../advanced_config/parameter_reference.md#VTE_AID_MASK) bit 2. Variance is taken from the message and lower-bounded by [VTE_EVA_NOISE](../advanced_config/parameter_reference.md#VTE_EVA_NOISE). | All innovation data are published on dedicated topics (`vte_aid_gps_pos_target`, `vte_aid_fiducial_marker`, `vte_aid_ev_yaw`, etc.), making it easy to inspect residuals and test ratios in logs. Every fusion attempt is published, including rejections: the per-axis `fusion_status` enum records the outcome (fused immediately, fused via OOSM history replay, rejected by the NIS gate, rejected as too old or too new, etc.), so tuning sessions can isolate time skew, noise mismatch, or buffer staleness without guessing. @@ -385,6 +405,8 @@ If the state visibly diverges between measurements and snaps back when a new sam Under-reporting variance is the most common cause of overshoots. The [Sensor noise floors](#noise) only clamp the lower bound and cannot rescue an over-confident sensor. - **Set the coordinate frame** for [TARGET_RELATIVE](https://mavlink.io/en/messages/development.html#TARGET_RELATIVE) (`TARGET_OBS_FRAME`) and provide the `q_sensor` rotation when the camera frame differs from vehicle-carried NED. +- **Match the target GNSS position to the active task.** Publish the takeoff pad while `prec_takeoff_status` is `ONGOING` and the landing pad while `prec_land_status` is active. + The estimator fuses whatever it receives and cannot detect a mismatch. ### Bypassing MAVLink @@ -460,4 +482,6 @@ For deeper inspection, the following uORB topics are the most useful entry point Without it, the VTE estimates are ignored even when the filter is running. - For yaw alignment during landing, also enable [PLD_YAW_EN](../advanced_config/parameter_reference.md#PLD_YAW_EN). With precision landing enabled but `PLD_YAW_EN` disabled, only the position estimate is tracked. +- For [precision takeoff](#precision-takeoff), set [MIS_TKO_PREC](../advanced_config/parameter_reference.md#MIS_TKO_PREC)=1 and enable bit 2 of `VTE_TASK_MASK`. + Add bit 5 of `VTE_AID_MASK` to fuse home as the pad's absolute position. - For extended parameter tuning see [Balancing process and observation noise](../advanced_features/vision_target_estimator_advanced.md#balancing-process-and-observation-noise), for log-analysis checklists see [Troubleshooting checklist](../advanced_features/vision_target_estimator_advanced.md#troubleshooting-checklist), and for developer workflows see [Development and debugging tips](../advanced_features/vision_target_estimator_advanced.md#development-and-debugging-tips). diff --git a/docs/uk/debug/system_wide_replay.md b/docs/uk/debug/system_wide_replay.md index c0027fe4710..60abd9e0e7e 100644 --- a/docs/uk/debug/system_wide_replay.md +++ b/docs/uk/debug/system_wide_replay.md @@ -68,7 +68,7 @@ For an example, see [SensorCombined.msg](https://github.com/PX4/PX4-Autopilot/bl Це автоматично відкриє файл журналу, застосує параметри та почне відтворення. Після завершення буде повідомляти про результат і вихід. - Новостворений файл журналу можна потім проаналізувати. It can be found in `rootfs/fs/microsd/log`, in subdirectories organised by date. + Новостворений файл журналу можна потім проаналізувати. It can be found in `rootfs/fs/log`, in subdirectories organised by date. Replayed log file names will have the `_replayed` suffix. Зверніть увагу, що вищезазначена команда також покаже симулятор, але - в залежності від того, що відтворюється - вона не покаже, що насправді відбувається. diff --git a/docs/uk/dev_log/logging.md b/docs/uk/dev_log/logging.md index 33ab22be22c..b390ea608ec 100644 --- a/docs/uk/dev_log/logging.md +++ b/docs/uk/dev_log/logging.md @@ -52,7 +52,7 @@ _Developers_ can further configure what information is logged via the [logger](. ### Конфігурація SD-карти -The list of logged topics can also be customized with a file on the SD card: `etc/logging/logger_topics.txt` (for SITL, it's `build/px4_sitl_default/rootfs/fs/microsd/etc/logging/logger_topics.txt`). +The list of logged topics can also be customized with a file on the SD card: `etc/logging/logger_topics.txt` (for SITL, it's `build/px4_sitl_default/rootfs/etc/logging/logger_topics.txt`). Each topic to be logged is listed on a separate line, with the following format: diff --git a/docs/uk/dev_setup/building_px4.md b/docs/uk/dev_setup/building_px4.md index 2607dbc7176..567fb5be3e7 100644 --- a/docs/uk/dev_setup/building_px4.md +++ b/docs/uk/dev_setup/building_px4.md @@ -228,16 +228,23 @@ The build toolchain will then report `Too many open files` for many files, as sh arm-none-eabi-ld: cannot find NuttX/nuttx/fs/libfs.a: Too many open files ``` -Рішення полягає в збільшенні максимально дозволеної кількості відкритих файлів (наприклад, до 300). +The solution is to increase the maximum allowed number of open files (to 2048, matching the [macOS setup instructions](../dev_setup/dev_env_mac.md#prerequisites)). You can do this in the macOS _Terminal_ for each session: -- Run this script [Tools/mac_set_ulimit.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/mac_set_ulimit.sh), or -- Введіть наступну команду: +- Source this script [Tools/mac_set_ulimit.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/mac_set_ulimit.sh) (it must be sourced, not executed, to affect your current shell): ```sh - ulimit -S -n 300 + source Tools/mac_set_ulimit.sh ``` +- Or enter the command directly: + + ```sh + ulimit -S -n 2048 + ``` + +To apply it to every new terminal, add the `ulimit` line to `~/.zshrc` as described in the macOS setup. + ### macOS Catalina: Складнощі при використанні cmake As of macOS Catalina 10.15.1 there may be problems when trying to build the simulator with _cmake_. @@ -315,15 +322,6 @@ make list_config_targets Default is [empty.world](https://github.com/PX4/PX4-SITL_gazebo-classic/blob/main/worlds/empty.world). For more information see [Gazebo Classic > Loading a Specific World](../sim_gazebo_classic/index.md#loading-a-specific-world). -:::tip -You can get a list of _all_ available `VIEWER_MODEL_DEBUGGER_WORLD` options using the command below: - -```sh -make px4_sitl list_vmd_make_targets -``` - -::: - ::: info - Most of the values in the `CONFIGURATION_TARGET` and `VIEWER_MODEL_DEBUGGER` have defaults, and are hence optional. diff --git a/docs/uk/dev_setup/dev_env.md b/docs/uk/dev_setup/dev_env.md index 338a266211c..4f8b434ef17 100644 --- a/docs/uk/dev_setup/dev_env.md +++ b/docs/uk/dev_setup/dev_env.md @@ -21,7 +21,7 @@ The _supported platforms_ for PX4 development are: | **Linux-based hardware:** [Raspberry Pi 2/3](../flight_controller/raspberry_pi_navio2.md) | ✓ | | | | **Simulation:** [Gazebo SITL](../sim_gazebo_gz/index.md) | ✓ | ✓ | ✓ | | **Simulation:** ROS 2 with Gazebo | ✓ | | ✓ | -| **Simulation:** [Gazebo Classic SITL](../sim_gazebo_classic/index.md) | | ✓ | ✓ | +| **Simulation:** [Gazebo Classic SITL](../sim_gazebo_classic/index.md) | | | ✓ | | **Simulation:** [ROS with Gazebo Classic](../simulation/ros_interface.md) | | | ✓ | Experienced Docker users can also build with the containers used by our continuous integration system: [Docker Containers](../test_and_ci/docker.md) diff --git a/docs/uk/dev_setup/dev_env_mac.md b/docs/uk/dev_setup/dev_env_mac.md index a2e60b18222..794ee7de453 100644 --- a/docs/uk/dev_setup/dev_env_mac.md +++ b/docs/uk/dev_setup/dev_env_mac.md @@ -7,6 +7,7 @@ The following instructions set up a PX4 development environment on macOS. - [Gazebo Simulation](../sim_gazebo_gz/index.md) (Gazebo Harmonic) It works on both Intel and Apple Silicon Macs. +PX4 CI exercises this setup on Apple Silicon runners only; Intel is not covered by CI. :::tip This setup is supported by the PX4 dev team. @@ -17,15 +18,16 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will ### Вимоги -1. **Install Xcode Command Line Tools** — provides `git`, `make`, and the Apple `clang` compiler: +1. **Install Xcode Command Line Tools**, which provide `git`, `make`, and the Apple `clang` compiler: ```sh xcode-select --install ``` 2. **Install Homebrew** by following the [installation instructions](https://brew.sh). + The setup script below also installs Homebrew if it is missing. -3. **Increase the open-file limit.** The PX4 build opens many files simultaneously and the macOS default limit (256) is too low — you may see `"LD: too many open files"` errors without this. +3. **Increase the open-file limit.** The PX4 build opens many files simultaneously and the macOS default limit (256) is too low. You may see `"LD: too many open files"` errors without this. Add the following line to your shell startup file so it applies to every new terminal session. macOS defaults to **zsh** since Catalina, so add it to `~/.zshrc` (use `~/.bashrc` if you use bash): @@ -36,13 +38,6 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will Then **open a new terminal** (or run `source ~/.zshrc`) for the change to take effect. -4. **Ensure Python 3 is available.** Some PX4 build scripts require `python3` and `pip3` to be in your `PATH`. The Xcode Command Line Tools include Python 3 by default. - - ::: tip - If you need to install or manage a different Python version, we recommend [pyenv](https://github.com/pyenv/pyenv), which lets you set global and per-directory Python versions. - -::: - ### Install Development Tools 1. **Download PX4 Source Code:** @@ -72,39 +67,36 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will ::: - This installs: - - - **Toolchain packages** from the `osx-cross/arm` and `PX4/px4` Homebrew taps — ARM cross-compiler (`arm-gcc-bin@13`), `cmake`, `ninja`, `ccache`, `fastdds`, `genromfs`, `kconfig-frontends`, and other build tools - - **Python packages** from `requirements.txt` - - **`px4-sim`** (via `--sim-tools`) — Gazebo Harmonic simulation (`gz-harmonic`) and related tools + The script installs the NuttX cross-compiler and build tools, the Python dependencies (into the `.venv` described above), and with `--sim-tools` the Gazebo simulation stack. + It is the source of truth for what gets installed; read [macos.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/setup/macos.sh) for the details. ::: info Omit `--sim-tools` if you only need to build for NuttX hardware and don't need simulation. + All Gazebo dependencies are optional at build time, so `make px4_sitl` still works without them. - Use `--reinstall` to force reinstallation of all Homebrew formulas (useful if something is broken). + Use `--reinstall` to force reinstallation of the Homebrew formulas (useful if something is broken). + +::: + + ::: info + The script installs from third-party Homebrew taps and marks them as trusted (`brew trust`) on Homebrew 6.0 and later, which refuses to load formulae from untrusted taps. + With `--sim-tools` it will prompt for your password, since the XQuartz installer and the JDK link into `/Library/Java/JavaVirtualMachines` need `sudo`. ::: ### Gazebo Simulation -The `--sim-tools` flag installs the `px4-sim` Homebrew formula, which pulls in Gazebo Harmonic. +The `--sim-tools` flag installs Gazebo and the libraries PX4's simulation modules build against. -If you skipped `--sim-tools` during initial setup and want to add simulation later: +If you skipped `--sim-tools` during initial setup and want to add simulation later, re-run the setup script with the flag (it is safe to run repeatedly): ```sh -brew tap PX4/px4 -brew install px4-sim +./Tools/setup/macos.sh --sim-tools ``` :::info -Gazebo requires **XQuartz** for display on macOS. -If you don't already have it installed: - -```sh -brew install --cask xquartz -``` - -You may need to log out and back in after installing XQuartz. +The script also installs **XQuartz**. +macOS may require you to log out and back in after XQuartz is first installed. ::: ### Verify Installation @@ -112,7 +104,7 @@ You may need to log out and back in after installing XQuartz. After installation, verify the key tools are available: ```sh -# NuttX cross-compiler (from arm-gcc-bin@13) +# NuttX cross-compiler arm-none-eabi-gcc --version # Build tools @@ -123,7 +115,7 @@ ninja --version gz sim --versions ``` -Quick smoke test — build and run a simulation target: +As a quick smoke test, build and run a simulation target: ```sh make px4_sitl gz_x500 diff --git a/docs/uk/dev_setup/sitl_container_builds.md b/docs/uk/dev_setup/sitl_container_builds.md new file mode 100644 index 00000000000..1efde29934a --- /dev/null +++ b/docs/uk/dev_setup/sitl_container_builds.md @@ -0,0 +1,216 @@ +# Building SITL Containers + +The [prebuilt SITL images](../simulation/px4_sitl_prebuilt_packages.md) share the existing `.deb` build and publishing workflow. +`Tools/packaging/containers/docker-bake.hcl` defines the image graph, tags and cache settings; `.github/workflows/build_deb_package.yml` supplies the simulator, architecture and version. + +## Source Layout + +Files are grouped by responsibility: + +```text +Tools/packaging/ + deb/ + gazebo/ Package lifecycle hooks and the installed Gazebo launcher + sih/ Package lifecycle hooks + containers/ + Dockerfile.* SIH, Gazebo and ROS image definitions + docker-bake.hcl Connected image build and publishing targets + prepare_context.sh Build-context staging + *-entrypoint.sh Container startup scripts + px4-network.sh Shared runtime host routing + ros2-install-dependencies.sh + ros2-agent.repos + test_sih_mission.py +Tools/ros2/ + prepare_workspace.py Checkout-matched ROS source workspace preparation + ros2.repos Shared immutable source pins for images and integration CI +``` + +The generated `docker-context/` remains a flat staging directory; it is not the source layout. +ROS workspace preparation is separate from packaging because it is also used for development and integration tests. + +## Build And Publish Flow + +1. The package jobs build SIH and Gazebo `.deb`s for Ubuntu Noble and Jammy. +2. Four native container jobs consume the Noble packages: SIH/Gazebo on amd64/arm64. + Each job runs `Tools/packaging/containers/prepare_context.sh` to stage the package context and matching PX4 messages, then builds the runtime image and its ROS child together with Docker Bake. +3. On release tags or a manual run with deployment enabled, the jobs push architecture-specific images to Docker Hub and GHCR. + The deploy jobs combine those images into versioned and `latest` multi-architecture tags using `docker buildx imagetools create`. + +Pull requests build the same graph without publishing. +The ROS image consumes its parent directly through a Bake target context, so neither local builds nor pull requests need an unpublished parent tag in a registry. + +## Building Locally + +Run these commands from the repository root on Ubuntu 24.04 with [PX4 build dependencies](dev_env_linux_ubuntu.md) and Docker Buildx installed: + +```sh +make px4_sitl_sih +(cd build/px4_sitl_sih && cpack -G DEB) +mkdir -p docker-context +cp build/px4_sitl_sih/*.deb docker-context/ +bash Tools/packaging/containers/prepare_context.sh +SIMULATOR=sih docker buildx bake -f Tools/packaging/containers/docker-bake.hcl --load +``` + +On macOS or Windows, obtain Noble `.deb`s for the same PX4 revision and Docker architecture instead of building the packages natively, then start at the context-preparation step. +Do not combine packages from different revisions or architectures in one context. +For Gazebo, build `px4_sitl_default` and set `SIMULATOR=gazebo`. + +`ARCH` defaults to the Docker builder's local architecture and `VERSION` defaults to `dev`. +For example, an ARM64 SIH build produces `px4io/px4-sitl-ros2:dev-arm64`. +Override `VERSION` and `ARCH` through environment variables when needed. +Replace `--load` with `--print` to inspect the resolved graph without building, or add `--set ros2.tags=px4-ros2:local` to choose a local ROS image tag. + +## Cache Boundaries + +Every successful `RUN` creates a cacheable layer. +A failed step is not committed as an image layer. +Changing an input invalidates its layer and subsequent layers, not earlier ones. + +`Tools/ros2/ros2.repos` pins the ROS repositories to immutable commits for both images and integration tests. +The interface-library pin includes the manual WaitSet ownership fixes merged in [Auterion/px4-ros2-interface-lib#222](https://github.com/Auterion/px4-ros2-interface-lib/pull/222). +To test another interface-library commit in an image, pass `--set ros2.args.PX4_ROS2_REF=<40-hex-SHA>` to Bake. +`PX4_MSGS_REF` can similarly override the message-package metadata; the definitions always come from the PX4 checkout. +The base ROS/rosdep setup, DDS Agent, message-package metadata, interface-library sources, workspace dependency installation, compilation and tests have separate cache boundaries. +Message definitions are copied after dependency installation, so changing them does not repeat `rosdep install`. +Repository checkouts live in a separate source stage and are mounted read-only for dependency installation. +The development toolchain does not inherit those source layers; only the ROS workspace builder copies the checkouts. +Changing only the ROS entrypoint does not rebuild the workspace, and changing only the test command does not recompile it. + +For the packaged ROS images, the Agent and ROS workspace build in independent Ubuntu 24.04/Jazzy stages, keyed to source pins and the supplied PX4 message definitions rather than the packaged firmware. +A new PX4 binary with unchanged messages reuses those compilation and test layers. +Changed messages invalidate workspace compilation and tests; cached artifacts never substitute messages from another checkout. +The final image still derives from the connected SIH/Gazebo parent and installs its Ubuntu/ROS dependencies using the same helper as the builder. +Only the source-built Agent/logger and complete ROS workspace are copied, preserving the source/build/install layout and absolute symlinks without copying the builder's operating system or package database. +The Agent installation is staged with CMake's `DESTDIR`, so copying it cannot overwrite Python packages installed separately in the destination image. +APT cache mounts are held only during installation, not during compilation or tests. +The runtime Dockerfiles extract the package's `Depends` field into a separate stage, so their dependency layers are keyed to that field rather than to every firmware binary change. +Package jobs disable Ubuntu's container cleanup hook so downloaded APT archives survive installation and can be cached between runs. + +In Actions, `CACHE_GHA=true` enables one cache per simulator and architecture. +The ROS target exports `mode=max`, covering its entire graph including the runtime parent. +The compiler cache is persisted separately with `actions/cache` and `buildkit-cache-dance`, allowing unchanged compilation units to be reused when workspace inputs change. +Ccache checks compiler contents and source/header inputs; it does not substitute an old ROS workspace for changed PX4 messages. +The container jobs use eight native CPUs, matching the Dockerfile's `BUILD_JOBS` default. +Override that build argument with Bake's `--set ros2.args.BUILD_JOBS=4` when building on a smaller machine. +Local builds use the builder's regular cache by default; standard Bake `--set` options can select other cache backends. +Cached installs do not automatically refresh upstream packages: rebuild without cache when intentionally refreshing dependencies. + +## Updating ROS Source Pins + +Source pins are maintained manually through reviewed pull requests, not advanced automatically when images are built. +Update the full commit SHA in `Tools/ros2/ros2.repos` when adopting upstream changes. +The same manifest is consumed by both container builds and ROS integration CI; run both workflows before accepting an update. + +The `px4_msgs` pin selects package metadata and build logic, not the message definitions used to build the workspace. +Definitions always come from the PX4 checkout, so ordinary message changes do not require a pin update. +Image and workflow SHA overrides are for testing candidates; adopting a candidate requires updating the shared manifest. + +## Testing A PX4 Checkout With ROS + +The standalone `ghcr.io/px4/px4-dev-ros2` image provides Ubuntu 22.04/ROS Humble (`main-humble`) and Ubuntu 24.04/ROS Jazzy (`main-jazzy`) toolchains for native `amd64` and `arm64`. +Both include Micro XRCE-DDS Agent v2.4.3, PX4's source-build dependencies and the dependencies required by the pinned ROS repositories. +They are also available on Docker Hub as `px4io/px4-dev-ros2`, with matching tags in both registries. +They contain no repository checkouts, packaged PX4 firmware or compiled ROS workspace, and their entrypoint sources only the selected ROS underlay. +The packaged SIH/Gazebo ROS images remain Ubuntu 24.04/Jazzy only. +Both Agent builds statically link the same private Fast DDS 2.14.7/Fast CDR 2.2.8 dependencies pinned in `Tools/packaging/containers/ros2-agent.repos`. +This provides one controlled Agent dependency set across both distros and avoids Humble's Fast CDR 1.x build incompatibility with Agent v2.4.3. +Their resolved revisions and licences are retained under `/usr/local/share/micro-xrce-dds-agent`; neither distro's ROS libraries are replaced. +The packaged Jazzy ROS images reuse this Agent build. +These toolchains are published independently of the SITL package workflow, so they do not wait for `.deb` builds. +Publishing follows the same release-tag and opt-in manual policy as `px4-dev`. + +The `main-humble` and `main-jazzy` tags name manually published toolchains for PX4 `main` development, not bundled firmware. +Pushing a `v*` Git tag publishes both `-humble` and `-jazzy`, such as `v1.18.0-humble` and `v1.18.0-jazzy`, retaining the leading `v` without updating either `main-*` tag. +Each publication also provides `sha--`, identifying the repository revision used to build the toolchain. +Release-line toolchains can use tags such as `v1.18-humble` and `v1.18-jazzy` through the manual publisher's `tag` prefix input (`v1.18`) when that release line is maintained. +The source revision and intended PX4 release line do not change which firmware a checkout builds. +ROS integration CI pins the image by digest so publishing a new moving tag cannot silently change the test environment. +When adopting a rebuilt toolchain, update the digest in `.github/workflows/ros_integration_tests.yml`. + +The optional `ros2-dev` Bake target builds this image without `.deb` packages or a published SITL parent: + +```sh +bash Tools/packaging/containers/prepare_context.sh +ROS_DISTRO=humble docker buildx bake -f Tools/packaging/containers/docker-bake.hcl ros2-dev \ + --set ros2-dev.tags=px4-dev-ros2:local --load +SOURCE=$(pwd -P) +GIT_COMMON_DIR=$(git rev-parse --path-format=absolute --git-common-dir) +docker run --rm -it \ + -v "$SOURCE:$SOURCE" -v "$GIT_COMMON_DIR:$GIT_COMMON_DIR" -w "$SOURCE" \ + -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \ + -e "GIT_CONFIG_VALUE_0=$SOURCE" px4-dev-ros2:local bash +``` + +The same absolute mounts support both ordinary checkouts and git worktrees. +Set `ROS_DISTRO=jazzy` instead, or omit it, for the default Jazzy developer image. +Bake selects the matching Ubuntu base; only `humble` and `jazzy` are supported. +This selection applies only to `ros2-dev`, not the packaged runtime targets. +The Git ownership exception is scoped to this container and checkout. +Inside the container, build the current checkout; the build initialises its required submodules: + +```bash +PX4_DIR=$PWD +make px4_sitl_sih +source "/opt/ros/$ROS_DISTRO/setup.bash" +python3 Tools/ros2/prepare_workspace.py /opt/px4_ros2_ci +cd /opt/px4_ros2_ci +sudo apt-get update -qq +rosdep update --rosdistro "$ROS_DISTRO" +rosdep install --from-paths src --ignore-src --rosdistro "$ROS_DISTRO" -y +CMAKE_BUILD_PARALLEL_LEVEL=8 colcon build --symlink-install --executor sequential --cmake-args \ + -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON \ + -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache +colcon test --packages-select px4_ros2_cpp --ctest-args -R unit_tests +colcon test-result --verbose +source install/setup.bash +cd "$PX4_DIR" +python3 test/ros_test_runner.py --config-file test/ros_tests/config-sih.json \ + --build-dir build/px4_sitl_sih --model quadx \ + --px4-ros2-interface-lib-build-dir /opt/px4_ros2_ci/build/px4_ros2_cpp +``` + +The workspace helper requires a new or empty directory, imports the standard `ros2.repos` manifest with vcstool, and replaces message/service definitions with those from the current PX4 checkout, including removal of deleted definitions. +Each run imports the pinned repositories directly with vcstool, without reusing an existing source or compiled workspace. +It preserves all library packages, examples and Python tests. +An optional second argument selects another interface-library commit using its full 40-character SHA. +The helper prints the resolved source manifest, repository commits and PX4 commit; it does not build the workspace. + +ROS integration CI builds PX4 afresh for each pull request and only sources the Jazzy underlay before building this separate workspace. +Its manual `px4_ros2_ref` input selects a full interface-library commit SHA; leaving it empty uses `ros2.repos`. +CI prepares and builds the ROS workspace on every run using the current checkout's message/service definitions. +Only the compiler cache is restored, not an old source, build or install workspace. +Ccache validates compiler contents and compilation inputs, including changed library sources and generated messages. +`CACHE_GHA=true` uses an independent `ros2-dev--` image cache, without replacing the published SITL image caches. +The `ros_dev_container.yml` workflow builds both standalone variants on every `main` push and on pull requests that change its watched paths, without publishing. +In the upstream repository, it publishes to Docker Hub and GHCR only on `v*` tag pushes or authorised manual runs with `deploy_to_registry=true`. +Manual runs build both distros and now take a distro-independent `tag` prefix, defaulting to `main`, rather than a complete tag such as `main-jazzy`. +Use `main` to publish `main-humble` and `main-jazzy`, or `v1.18` to publish `v1.18-humble` and `v1.18-jazzy`; ROS-suffixed inputs are rejected to avoid mislabelling images. +The existing `build_ref` selects the source revision, and the deployment toggle also applies when dispatching against a Git tag. +Architecture tags use `sha---`; each distro's selected tag and `sha--` indexes preserve its two architectures and their SBOMs. +Use `--set ros2-dev.args.PX4_ROS2_REF=<40-hex-SHA>` to build the development image with another interface-library commit. + +Both ROS development images and the CI toolchain reuse `Tools/setup/ubuntu.sh --no-nuttx --no-sim-tools` and its Python requirements. +Already installed Ubuntu/ROS Python versions are constrained during installation instead of gratuitously upgrading the ROS stack. +The SIH image does not acquire Gazebo or the NuttX toolchain. +Installing the complete source-build toolset increases cold image-build time and size; existing native architecture and incremental cache boundaries remain in use. + +## Container SBOMs + +The publishing workflow enables BuildKit's standard SBOM attestations for both runtime and ROS images. +It pins BuildKit v0.33.0, whose 80 MiB attestation limit accommodates the Gazebo/ROS SPDX documents without reducing their package or file coverage. +Local attested builds using BuildKit v0.32 can fail at export because that version limits each attestation to 40 MiB. +These SPDX inventories describe discoverable packages in the image filesystem, including Ubuntu and ROS dependencies. +They complement, rather than replace, PX4's [source and firmware SBOM](../contribute/sbom.md). + +Each architecture is published with its attestation. +The final `imagetools create` step preserves those attestations when assembling multi-architecture indexes. +Inspect a published image with: + +```sh +docker buildx imagetools inspect px4io/px4-sitl-ros2: --format '{{json .SBOM}}' +``` + +Non-publishing pull-request builds do not publish an SBOM for inspection. +Local `--load` builds are intended for running examples; use a registry or an OCI export when retaining attestations. diff --git a/docs/uk/dronecan/ark_rtk_gps.md b/docs/uk/dronecan/ark_rtk_gps.md index eaacd572641..28aa3deb1c5 100644 --- a/docs/uk/dronecan/ark_rtk_gps.md +++ b/docs/uk/dronecan/ark_rtk_gps.md @@ -183,6 +183,10 @@ For more information see [Rover and Moving Base](../dronecan/index.md#rover-and- ### Оновлення модуля Ublox F9P +:::warning +UART2 cannot be used for u-blox firmware update, including with [GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) `7`. Use the debug passthrough below. +::: + ARK RTK GPS поставляється з модулем Ublox F9P з версією 1.13 або новішою. Проте ви можете перевірити версію та оновити прошивку за бажанням. Кроки наступні: diff --git a/docs/uk/dronecan/ark_rtk_gps_l1_l2.md b/docs/uk/dronecan/ark_rtk_gps_l1_l2.md index 53b5642705a..0c009e38f49 100644 --- a/docs/uk/dronecan/ark_rtk_gps_l1_l2.md +++ b/docs/uk/dronecan/ark_rtk_gps_l1_l2.md @@ -135,6 +135,10 @@ For more information see [Rover and Fixed Base](../dronecan/index.md#rover-and-f ### Оновлення модуля Ublox F9P +:::warning +UART2 cannot be used for u-blox firmware update, including with [GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) `7`. Use the debug passthrough below. +::: + ARK RTK GPS L1 L5 comes with the Ublox F9P module up to date with version 1.13 or newer. Проте ви можете перевірити версію та оновити прошивку за бажанням. Кроки наступні: diff --git a/docs/uk/dronecan/escs.md b/docs/uk/dronecan/escs.md index dda2b7ed8cb..784680ef0f5 100644 --- a/docs/uk/dronecan/escs.md +++ b/docs/uk/dronecan/escs.md @@ -44,6 +44,15 @@ In addition to the general setup: - Configure the [motor order and servo outputs](../config/actuators.md). +## Known Quirks {#known-quirks} + +Sadly some DroneCAN devices deviate from the DSDL specification in ways that require a workaround on the PX4 side. +These workarounds are disabled by default and can be enabled with the [UAVCAN_QUIRKS](../advanced_config/parameter_reference.md#UAVCAN_QUIRKS) bitmask parameter. + +- **Hobbywing ESCs:** some Hobbywing DroneCAN ESCs report `uavcan.equipment.esc.Status.esc_index` starting at 1 for the first ESC instead of 0 as required by the specification, while still expecting `RawCommand.cmd[0]` to command the first ESC. + This causes ESC status feedback (e.g. RPM, voltage, current) to be matched to the wrong motor. + Set bit 0 of `UAVCAN_QUIRKS` to correct for this off-by-one indexing. + ## Reversible Motors {#reversible-motors} diff --git a/docs/uk/flight_controller/agam_v6xrt.md b/docs/uk/flight_controller/agam_v6xrt.md new file mode 100644 index 00000000000..fba9543d38c --- /dev/null +++ b/docs/uk/flight_controller/agam_v6xrt.md @@ -0,0 +1,233 @@ +# Agam Autopilot v6X-RT + + + +:::warning +PX4 не розробляє цей (або будь-який інший) автопілот. +Contact the [manufacturer](https://www.agamrobotics.com/) for hardware support or compliance issues. +::: + +The [Agam Autopilot v6X-RT](https://www.agamrobotics.com/product-page/agam-pixhawk-6x-full-set) flight controller is [Agam Robotics'](https://www.agamrobotics.com/) implementation of the [NXP-led FMUv6X-RT reference design](../flight_controller/nxp_mr_vmu_rt1176.md). + +![Agam Autopilot v6X-RT](../../assets/flight_controller/agam_v6xrt/agam_v6xrt_front.png) + +:::info +This flight controller is [manufacturer supported](../flight_controller/autopilot_manufacturer_supported.md). +::: + +## Введення + +Agam Autopilot v6X-RT uses the NXP i.MX RT1176 MCU, consisting of an Arm® Cortex®-M7 core at 1GHz and an Arm® Cortex®-M4 core at 400MHz, with 2MB SRAM and 64MB Octal SPI flash. +The increased processing power lets firmware developers run more complex algorithms without being constrained by the flight controller's compute budget. + +The board uses sensors from InvenSense® and Bosch®, and ships in two sensor-set variants (see [Processors & Sensors](#processors-sensors)). +Redundant IMU and barometer sensors sit on separate buses, and 2 of the 3 IMUs are mounted on a shock-isolated, heated sensor board, separate from the FMU board itself, to improve accuracy in flight and across a wide temperature range. + +An integrated Ethernet interface (100BASE-T1, 2-wire) provides high-speed, low-latency connectivity to companion computers (for example a Raspberry Pi or NVIDIA Jetson), cameras, or data-transmission systems. + +## Ключові пункти дизайну + +- High-performance [NXP i.MX RT1176](https://www.nxp.com/products/i.MX-RT1170) dual-core MCU +- [NXP EdgeLock SE051](https://www.nxp.com/products/SE051) hardware secure element, field-updatable, certified to CC EAL 6+ +- Triple redundant IMU (2 sensors on a shock-mounted, heated sensor board, 1 on the FMU board itself) and dual redundant barometer, each on a separate bus +- Independent power control and separate buses for each sensor domain +- 100BASE-T1 (2-wire) automotive Ethernet for high-speed companion computer integration +- 256Kbit FRAM + +:::tip +This board ships with `SENS_IMU_MODE` and `EKF2_MULTI_IMU` set so that only the FMU-board IMU is used by default. +To take advantage of the triple-redundant IMU set `SENS_IMU_MODE` to `Disabled (0)`, reboot, set `EKF2_MULTI_IMU` to `3`, and reboot again. +See [Agam's IMU triple redundancy notes](https://agamrobotics.gitbook.io/docs/autopilots-flight-controller/quickstart/imu-triple-redundancy-feature) for more information. +::: + +### Processors & Sensors {#processors-sensors} + +- FMU Processor: [NXP i.MX RT1176 (MIMXRT1176DVMAA)](https://www.nxp.com/products/i.MX-RT1170) + - Arm® Cortex®-M7 core @ 1GHz + - Arm® Cortex®-M4 core @ 400MHz (secondary core) + - 2MB SRAM + - 64MB external Octal SPI flash +- On-board sensors — Agam Autopilot v6X-RT ships in two sensor-set variants (Sensor Set 1 and Sensor Set 3, per [Pixhawk Standards](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-020%20Pixhawk%20Autopilot%20v6X-RT%20Standard.pdf)): + - Sensor Set 1: + - 2x [InvenSense ICM-42688-P IMU](https://www.invensense.tdk.com/products/motion-tracking/6-axis/icm-42688-p/) + - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi088/) + - [Bosch BMM150 Magnetometer](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmm150-ds001.pdf) + - 2x [Bosch BMP388 Barometer](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390/) + - Sensor Set 3: + - 2x [TDK InvenSense ICM-45686 IMU](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686) + - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi088/) + - [Bosch BMM350 Magnetometer](https://www.bosch-sensortec.com/en/products/motion-sensors/magnetometers/bmm350) + - 2x [Bosch BMP388 Barometer](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390/) + +### Електричні дані + +- Номінальна напруга: + - Максимальна вхідна напруга: 6 В + - Вхід USB Power: 4.75~5.25V + - Вхід Servo Rail: 0\~36V +- Номінальний струм: + - `TELEM1` output current limiter: 1.5A + - Комбінований обмежувач вихідного струму всіх інших портів: 1.5A + +### Механічні характеристики + +- Розміри + - Flight controller module: 39 x 32 x 16 mm + - Baseboard: 95 x 50 x 19 mm +- Weight: 90 g +- Operating temperature: -40°C to 85°C + +### Інтерфейси + +- 12 PWM/DShot outputs (8 DShot-capable, 4 PWM-only) +- 1x RC input, SBUS/PPM +- 1x dedicated DSM/Spektrum RC input +- 3x TELEM ports (`TELEM1`, `TELEM2`, `TELEM3`), full flow control +- 2x GPS ports (`GPS1` full GPS plus safety switch and buzzer, `GPS2` basic) +- 4x I2C +- 3x CAN-FD +- 1x SPI bus, 2 chip-select lines, 2 data-ready lines, 1 sync line, 1 reset line +- 1x NFC antenna port (connected to the SE051 secure element) +- 100BASE-T1 Ethernet (single 2-wire port) +- USB 2.0 +- microSD card slot +- Dual redundant power input (5V via Molex connectors) + +## Where To Buy {#store} + +Order from the [Agam Robotics store](https://www.agamrobotics.com/product-page/agam-pixhawk-6x-full-set). + +## Зборка/інсталяція + +Agam Autopilot v6X-RT is a Pixhawk-standard v6X-RT board, electrically and mechanically identical to the NXP reference design, differing from it only in enclosure. +Wiring is similar to the [Holybro Pixhawk 6X](../flight_controller/pixhawk6x.md#connections) and other boards that follow the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf). + +For wiring and assembly, follow the [Pixhawk 6X Wiring Quick Start](../assembly/quick_start_pixhawk6x.md), which applies to this board other than the enclosure. + +## З'єднання + +The connectors follow the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf), which defines the pinout of each port type. +For the physical layout of the ports on the board see the [Agam Autopilot v6X-RT baseboard ports](https://agamrobotics.gitbook.io/docs/autopilots-flight-controller/quickstart/baseboard-port) documentation. + +## Схема розташування виводів + +Agam Autopilot v6X-RT's pinout is the same as other v6X-RT-family boards: + +- [DS-012 Pixhawk Autopilot v6X Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-012%20Pixhawk%20Autopilot%20v6X%20Standard.pdf) +- [DS-010 Pixhawk Autopilot Bus Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf) +- [DS-009 Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf) +- [Agam Autopilot v6X-RT Baseboard Port pinouts](https://agamrobotics.gitbook.io/docs/autopilots-flight-controller/quickstart/baseboard-port) (agamrobotics.gitbook.io) + +Notes: + +- The [camera capture pin](../camera/fc_connected_camera.md#camera-capture-configuration) (`PI0`) is pin 2 on the AD&IO port, marked `FMU_CAP`. + +## Налаштування послідовного порту + +| UART | Пристрій | Порт | +| -------- | ---------- | ------- | +| LPUART1 | /dev/ttyS0 | Консоль | +| LPUART3 | /dev/ttyS1 | GPS | +| LPUART4 | /dev/ttyS2 | TELEM1 | +| LPUART5 | /dev/ttyS3 | GPS2 | +| LPUART6 | /dev/ttyS4 | PX4IO | +| LPUART8 | /dev/ttyS5 | TELEM2 | +| LPUART10 | /dev/ttyS6 | TELEM3 | +| LPUART11 | /dev/ttyS7 | EXT2 | + +## Radio Control {#radio_control} + +Для того щоб керувати транспортним засобом _вручну_, потрібна система радіоуправління (RC) (PX4 не потребує системи радіоуправління для автономних режимів польоту). +Вам потрібно [вибрати сумісний передавач/приймач](../getting_started/rc_transmitter_receiver.md) і _зв'язати_ їх таким чином, щоб вони взаємодіяли (ознайомтеся з інструкціями, що додаються до вашого конкретного передавача/приймача). + +The ports and supported protocols are: + +- `RC IN` (FMU): SBUS/PPM +- `DSM RC` (FMU): Spektrum/DSM + +For PPM and S.Bus receivers, a single signal wire carries all channels. +If your receiver outputs individual PWM signals (one wire per channel) it must be connected via a [PPM encoder](../getting_started/rc_transmitter_receiver.md). + +## Номінальна напруга + +_Agam Autopilot v6X-RT_ can be triple-redundant on the power supply if three power sources are supplied. +The three power rails are: **POWER1**, **POWER2** and **USB**. +The **POWER1** & **POWER2** ports use a 6-circuit [2.00mm Pitch CLIK-Mate Wire-to-Board PCB Receptacle](https://www.molex.com/en-us/products/part-detail/5024430670). + +### Максимальна напруга нормальної роботи + +За таких умов всі джерела живлення будуть використовуватися в цьому порядку для живлення системи: + +1. **POWER1** and **POWER2** inputs (4.9V to 5.5V) +2. **USB** input (4.75V to 5.25V) + +### Абсолютна максимальна напруга + +За таких умов система не буде витрачати жодної потужності (не буде працювати), але залишиться неушкодженою. + +1. **POWER1** and **POWER2** inputs (operational range 4.1V to 5.7V, 0V to 10V undamaged) +2. **USB** input (operational range 4.1V to 5.7V, 0V to 6V undamaged) +3. Servo input: VDD_SERVO pin of **FMU PWM OUT** (0V to 42V undamaged) + +Digital I2C battery monitoring is enabled by default. +Analog/ADC battery monitoring is also supported. + +## Збірка прошивки + +:::tip +Most users will not need to build this firmware from PX4 v2.0. +It will be pre-built and automatically installed by _QGroundControl_ when appropriate hardware is connected. +::: + +To [build PX4](../dev_setup/building_px4.md) for this target: + +```sh +make agam_fmu-v6xrt_default +``` + +## Debug Port {#debug_port} + +The [PX4 System Console](../debug/system_console.md) and [SWD interface](../debug/swd_debug.md) run on the **FMU Debug** port. + +The pinout and connector comply with the [Pixhawk Debug Full](../debug/swd_debug.md#pixhawk-debug-full) interface defined in the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf) (JST SH 1mm pitch, 10-pin connector). +Pin 6 is `SPI6_MOSI_EXTERNAL1`, which is the pad's `JTAG_TDO` function and carries `SWO` when the debug port is in serial-wire mode. + +| Pin | Сигнал | Вольтаж | +| ------------------------------ | -------------- | --------------------- | +| 1 (red) | `FMU_VDD_3V3` | +3.3V | +| 2 (black) | `FMU_USART_TX` | +3.3V | +| 3 (black) | `FMU_USART_RX` | +3.3V | +| 4 (black) | `FMU_SWD_IO` | +3.3V | +| 5 (black) | `FMU_SWD_CK` | +3.3V | +| 6 (black) | `SWO` | +3.3V | +| 7 (чорний) | NFC GPIO | +3.3V | +| 8 (чорний) | PH11 | +3.3V | +| 9 (чорний) | `FMU_nRST` | +3.3V | +| 10 (чорний) | `GND` | GND | + +Інформацію про використання цього порту див: + +- [SWD Debug Port](../debug/swd_debug.md) +- [PX4 System Console](../debug/system_console.md) + +## Периферійні пристрої + +- [Agam GNSS01 CAN](https://agamrobotics.gitbook.io/docs/gnss-and-rtk-systems/agam-gnss01-can) +- [Agam GNSS02 CAN RTK](https://agamrobotics.gitbook.io/docs/gnss-and-rtk-systems/agam-gnss02-can-rtk) +- [Agam GNSS Base RTK](https://agamrobotics.gitbook.io/docs/gnss-and-rtk-systems/agam-gnss-base-rtk) +- [Agam FloRange Sensor](https://agamrobotics.gitbook.io/docs/sensors/agam-florange-sensor) +- [Rangefinders/Distance sensors](../sensor/rangefinders.md) +- [Telemetry Radio Modules](https://holybro.com/collections/telemetry-radios?orderby=date) + +## Подальша інформація + +- [Update Pixhawk 6X-RT Bootloader](../advanced_config/bootloader_update_v6xrt.md) +- [Agam Autopilot v6X-RT Documentation](https://agamrobotics.gitbook.io/docs/autopilots-flight-controller/quickstart) (Agam Robotics Docs) +- [Agam Autopilot v6X-RT setup video playlist](https://www.youtube.com/playlist?list=PLv71BKC3TLci9fgwV4U6_2C2Uxtrm3SQE) (YouTube, Agam Robotics) +- [Pixhawk 6X Wiring QuickStart](../assembly/quick_start_pixhawk6x.md) +- [Agam Digital Power Module (DPM01)](https://agamrobotics.gitbook.io/docs/digital-power-modules-dpm/dpm01-6s) +- [Agam Analog Power Module (APM)](https://agamrobotics.gitbook.io/docs/analog-power-modules-apm/generic) +- [Announcing the Pixhawk FMUv6X-RT](https://dronecode.org/announcing-the-pixhawk-fmuv6x-rt/) (Dronecode Foundation) +- [Pixhawk FMUv6X-RT open standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-020%20Pixhawk%20Autopilot%20v6X-RT%20Standard.pdf) +- [Стандарт шини автопілота Pixhawk](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf) +- [Стандарт Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf) diff --git a/docs/uk/flight_controller/autopilot_manufacturer_supported.md b/docs/uk/flight_controller/autopilot_manufacturer_supported.md index fdc9a610e8e..1e56ab00dd6 100644 --- a/docs/uk/flight_controller/autopilot_manufacturer_supported.md +++ b/docs/uk/flight_controller/autopilot_manufacturer_supported.md @@ -19,6 +19,7 @@ This category includes boards that are not fully compliant with the pixhawk stan - [3DR Control N1](../flight_controller/3dr_ctrl-n1.md) - [Accton Godwit GA1](../flight_controller/accton-godwit_ga1.md) - [AEDROX AEDROXH7](../flight_controller/aedrox_aedroxh7.md) +- [Agam Autopilot v6X-RT](../flight_controller/agam_v6xrt.md) - [AirMind MindPX](../flight_controller/mindpx.md) - [AirMind MindRacer](../flight_controller/mindracer.md) - [Amovlab Flycore](../flight_controller/amovlab_flycore.md) @@ -47,6 +48,7 @@ This category includes boards that are not fully compliant with the pixhawk stan - [MicoAir H743 Lite](../flight_controller/micoair743-lite.md) - [ModalAI VOXL 2](../flight_controller/modalai_voxl_2.md) - [mRo Control Zero](../flight_controller/mro_control_zero_f7.md) +- [NWBlue Pro H757](../flight_controller/nwblue_pro-h757.md) - [Radiolink PIX6](../flight_controller/radiolink_pix6.md) - [Sky-Drones AIRLink](../flight_controller/airlink.md) - [SPRacing SPRacingH7EXTREME](../flight_controller/spracingh7extreme.md) @@ -54,3 +56,4 @@ This category includes boards that are not fully compliant with the pixhawk stan - [ThePeach FCC-K1](../flight_controller/thepeach_k1.md) - [ThePeach FCC-R1](../flight_controller/thepeach_r1.md) - [X-MAV AP-H743-R1](../flight_controller/x-mav_ap-h743r1.md) +- [SIYI-UniFC-6-PICO](../flight_controller/siyi-unifc-6-pico.md) diff --git a/docs/uk/flight_controller/nwblue_pro-h757.md b/docs/uk/flight_controller/nwblue_pro-h757.md new file mode 100644 index 00000000000..1c20c83f24d --- /dev/null +++ b/docs/uk/flight_controller/nwblue_pro-h757.md @@ -0,0 +1,245 @@ +# NWBlue Pro H757 + + + +:::warning +PX4 не розробляє цей (або будь-який інший) автопілот. Contact the manufacturer for hardware support or compliance issues. +::: + +The _NWBlue Pro H757_ is a 36 x 36 mm FPV flight controller built around a [CubePilot CubeNode H757](https://docs.cubepilot.org/user-guides/cubenode/pin-descriptions) module carrying an STM32H757 microcontroller. + +![NWBlue Pro H757](../../assets/flight_controller/nwblue_pro-h757/nwblue_pro-h757.png) + +:::info +This flight controller is [manufacturer supported](../flight_controller/autopilot_manufacturer_supported.md). +::: + +## Where to Buy {#store} + +Order from [NWBlue](https://nwblue.com/products/pro-h757-fpv-flight-controller) (US). + +## Specifications {#specifications} + +- **Processor** + - **Main FMU processor:** STM32H757 (32-bit Arm® Cortex®-M7 at 480 MHz, 2 MB Flash, 1 MB RAM), on a CubePilot CubeNode module +- **Sensors** + - **IMU:** [InvenSense ICM-45686](https://invensense.tdk.com/products/motion-tracking/6-axis/icm-45686/) (SPI3, inside the CubeNode module) + - **Barometer:** [Infineon DPS368](https://www.infineon.com/part/DPS368) (SPI3) + - **Magnetometer:** [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html) (I2C3, internal) +- **Interfaces** + - **PWM outputs:** 9, [DShot](../peripherals/dshot.md) and [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry) capable + - **Serial ports:** 6 (`TELEM1`, `TELEM2`, `TELEM3`, `GPS1`, `RC`, and a spare receive-only port on the VTX connector) + - **I2C buses:** 1 external (on the `GPS` connector, for an external compass) and 1 internal (magnetometer) + - **CAN buses:** 1 ([DroneCAN](../dronecan/index.md)) + - **USB:** USB-C + - **RC input:** Yes, on a dedicated `RC` connector + - **SD card:** MicroSD slot (SDMMC2) + - **Other:** buzzer output (external components required), RGB status LED, SWD +- **Electrical data** + - **Input voltage:** 4S to 12S LiPo on the `ESC` connector (`VBAT`) + - **5 V output:** 3.5 A, current limited, shared by the `RC`, `GPS`, `TELEM` and `CAN` connectors + - **10 V / 12 V output:** 3.5 A, on the `VTX` and `Power Out` connectors + - **Power monitoring:** battery voltage through an onboard 21:1 divider; battery current from an external current sensor wired to the `ESC` connector +- **Mechanical data** + - **Dimensions:** 36 x 36 x 18 mm (including connectors) + - **Mounting pattern:** 30.5 x 30.5 mm + + +## Manufacturer Documentation + +Connector pinouts, wiring diagrams and mechanical drawings are in the [NWBlue Pro H757 documentation](https://docs.nwblue.com/nw-blue/products/autopilots/proh757/overview). +3D models are available on the [3D Models](https://docs.nwblue.com/nw-blue/products/autopilots/proh757/3d-models) page. + +## Збірка прошивки + +:::tip +Most users will not need to build this firmware. +It is pre-built and automatically installed by _QGroundControl_ when appropriate hardware is connected. +::: + +To [build PX4](../dev_setup/building_px4.md) for this target from source: + +```sh +make nwblue_pro-h757_default +``` + +## Radio Control {#radio_control} + +Для того щоб керувати транспортним засобом _вручну_, потрібна система радіоуправління (RC) (PX4 не потребує системи радіоуправління для автономних режимів польоту). + +Вам потрібно [вибрати сумісний передавач/приймач](../getting_started/rc_transmitter_receiver.md) і _зв'язати_ їх таким чином, щоб вони взаємодіяли (ознайомтеся з інструкціями, що додаються до вашого конкретного передавача/приймача). + + + +The `RC` connector is wired directly to the FMU (UART4) and powered from the 5 V rail. +PX4 autodetects receivers on this port that use S.BUS, S.BUS2, Spektrum DSM / DSM2 / DSM-X, Yuneec ST24, Graupner SUMD, CRSF, or GHST. +PPM is not supported: the RC pins have no capture channel on the timer that PX4 uses for PPM decoding. + +Both TX and RX are broken out, so CRSF and GHST telemetry back to the transmitter works over the same cable. + +## GPS & Compass {#gps_compass} + +The `GPS` connector carries `GPS1` (UART8) together with the external I2C bus for a compass. +The module should be [mounted on the frame](../assembly/mount_gps_compass.md) as far away from other electronics as possible, with the direction marker pointing towards the front of the vehicle. + +## Схема розташування виводів + +The full pinout with connector locations is on the [manufacturer's pinout page](https://docs.nwblue.com/nw-blue/products/autopilots/proh757/pinout). + +### ESC + +| Pin | Сигнал | +| --- | -------------------------------------------- | +| 1 | VBAT in (4S to 12S) | +| 2 | GND | +| 3 | Current sense | +| 4 | ESC telemetry (USART1 RX) | +| 5 | Output 1 | +| 6 | Output 2 | +| 7 | Output 3 | +| 8 | Output 4 | + +### PWM AUX + +| Pin | Сигнал | +| --- | -------- | +| 1 | Output 5 | +| 2 | Output 6 | +| 3 | Output 7 | +| 4 | Output 8 | +| 5 | Output 9 | +| 6 | GND | + +### RC (UART4) + +| Pin | Сигнал | +| --- | ------ | +| 1 | 5V | +| 2 | TX | +| 3 | RX | +| 4 | GND | + +### GPS (UART8) + +| Pin | Сигнал | +| --- | ------ | +| 1 | 5V | +| 2 | TX | +| 3 | RX | +| 4 | SCL | +| 5 | SDA | +| 6 | GND | + +### TELEM1 (UART7) + +| Pin | Сигнал | +| --- | ------ | +| 1 | 5V | +| 2 | TX | +| 3 | RX | +| 4 | NC | +| 5 | NC | +| 6 | GND | + +### VTX (USART6) + +| Pin | Сигнал | +| --- | ------------------------------ | +| 1 | 10V / 12V | +| 2 | GND | +| 3 | TX (USART6) | +| 4 | RX (USART6) | +| 5 | RX (USART2) | +| 6 | GND | + +### CAN + +| Pin | Сигнал | +| --- | -------------------------- | +| 1 | 5V | +| 2 | CAN_H | +| 3 | CAN_L | +| 4 | GND | + +### Power Out + +| Pin | Сигнал | +| --- | --------- | +| 1 | VBAT out | +| 2 | GND | +| 3 | 10V / 12V | + +### SWD + +| Pin | Сигнал | +| --- | -------------------- | +| 1 | 3.3V | +| 2 | SWDIO | +| 3 | SWCLK | +| 4 | GND | + +## Налаштування послідовного порту + +| UART | Пристрій | PX4 Default | З’єднання | Pins (TX / RX) | +| ------ | ---------- | ----------- | --------- | --------------------------------- | +| USART1 | /dev/ttyS0 | TEL3 | ESC | — / PB7 | +| USART2 | /dev/ttyS1 | — | VTX | — / PA3 | +| UART4 | /dev/ttyS2 | RC | RC | PA0 / PB8 | +| USART6 | /dev/ttyS3 | TEL2 | VTX | PC6 / PC7 | +| UART7 | /dev/ttyS4 | TEL1 | TELEM1 | PE8 / PE7 | +| UART8 | /dev/ttyS5 | GPS1 | GPS | PE1 / PE0 | + +No port has flow control. +USART1 and USART2 are receive-only: only the RX pin is broken out. + +TEL3 is the ESC telemetry input and is configured for it by default ([DSHOT_TEL_CFG](../advanced_config/parameter_reference.md#DSHOT_TEL_CFG) = `103`). + +## PWM Виходи + +The board provides 9 PWM outputs, all of which support [DShot](../peripherals/dshot.md). +Outputs 1 to 4 are on the `ESC` connector, outputs 5 to 9 on the `PWM AUX` connector. + +The outputs are split across 4 timer groups: + +| Виводи | Таймер | +| ---------- | ------ | +| 1, 2, 3, 4 | Timer1 | +| 5, 6 | Timer4 | +| 7, 8 | Timer3 | +| 9 | Timer2 | + +All outputs within the same group must use the same protocol and update rate. + +[Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry) works on every output except output 6. +That output is TIM4_CH4, and the STM32H7 DMAMUX has no request line for it, so the capture DMA needed for the ESC response cannot be set up. +Use output 6 for plain DShot or PWM. + +## OSD + +There is no analog OSD chip on this board, so analog video cannot be overlaid. +An HD VTX can render the OSD itself over MSP DisplayPort: connect it to the VTX connector (USART6, TEL2) and set [MSP_OSD_CONFIG](../advanced_config/parameter_reference.md#MSP_OSD_CONFIG) to `102`. +See [OSD](../peripherals/osd.md) for details. + +The port is not claimed by default, so it can be used for MAVLink or any other protocol instead. + +## Battery Monitoring + +The board is powered from the `ESC` connector. +The voltage divider is set by default ([BAT1_V_DIV](../advanced_config/parameter_reference.md#BAT1_V_DIV) = `21.0`). + +Current sensing is fed from the ESC connector, so [BAT1_A_PER_V](../advanced_config/parameter_reference.md#BAT1_A_PER_V) depends on the current sensor in use and has to be [calibrated](../config/battery.md). + +## Відладочний порт + +There is no dedicated debug UART. +The system console and MAVLink both run over USB. +SWD is broken out for use with a debugger. + + + +## Оновлення завантажувача PX4 + +Boards that ship without the PX4 bootloader must have it flashed before PX4 firmware can be installed. +Download the [nwblue_pro-h757_bootloader.bin](https://github.com/PX4/PX4-Autopilot/blob/main/boards/nwblue/pro-h757/extras/nwblue_pro-h757_bootloader.bin) bootloader binary and follow the [DFU Bootloader Update](../advanced_config/bootloader_update_from_betaflight.md#dfu-bootloader-update) instructions. + +Once the PX4 bootloader is flashed, firmware can be installed normally via _QGroundControl_. diff --git a/docs/uk/flight_controller/siyi-unifc-6-pico.md b/docs/uk/flight_controller/siyi-unifc-6-pico.md new file mode 100644 index 00000000000..4ada33fdbe3 --- /dev/null +++ b/docs/uk/flight_controller/siyi-unifc-6-pico.md @@ -0,0 +1,154 @@ +# SIYI UniFC 6 PICO + + + +:::warning +PX4 не розробляє цей (або будь-який інший) автопілот. +Contact the [manufacturer](https://siyi.biz/) for hardware support or compliance issues. +::: + +The _SIYI UniFC 6 PICO_ is a flight controller designed by SIYI Technology. +It features high-performance sensors, dual CAN bus, Ethernet connectivity, and extensive I/O options. + + + +:::info +This flight controller is [manufacturer supported](../flight_controller/autopilot_manufacturer_supported.md). +::: + +## Основні характеристики + +- **MCU:** STM32H743II (32 Bit Arm® Cortex®-M7, 480 MHz, 2MB Flash, 1MB RAM) +- **IMU (Dual):** TDK InvenSense ICM-45686 (primary, SPI4) + Bosch BMI088 accel/gyro (secondary, SPI1) +- **Barometer (Dual):** InvenSense ICP201XX (internal at address 0x63, external at address 0x64) +- **Magnetometer:** iSentek IST8310 +- **Interfaces:** + - 6x UARTs (including GPS, telemetry, and RC ports) + - 2x CAN (DroneCAN / UAVCAN) + - 4x I²C (2 external, 2 internal) + - 1x dedicated RC Input (SBUS / DSM / SUMD) + - 14x PWM outputs (DShot-capable) + - SDMMC1 4-bit Micro-SD slot (high-speed logging) + - Ethernet (RMII, LAN8742A PHY) + - USB + - Onboard safety button +- **Power:** + - Single analog battery voltage/current channel (BAT1) + - Voltage sensing up to 14S LiPo by default + - On-board BECs for peripheral power (consult manufacturer for exact rail specifications) + +## Де купити + +Order from [SIYI](https://siyi.biz/). + +## Physical / Mechanical + +- Weight: 37.9g +- Dimensions: 49.0 x 42.6 x 16.2mm +- Operating temperature: -20 ~ 85°C + +## Характеристики + +### Processors & Sensors + +- **FMU Processor:** STM32H743II + - 32 Bit Arm® Cortex®-M7, 480 MHz + - 2MB Flash, 1MB RAM +- **On-board Sensors:** + - Accel/Gyro 1: TDK InvenSense ICM-45686 (SPI4) + - Accel/Gyro 2: Bosch BMI088 (SPI1) + - Barometer 1: InvenSense ICP201XX (I²C3, address `0x63`) + - Barometer 2: InvenSense ICP201XX (I²C2, address `0x64`) + - Compass: iSentek IST8310 (I²C3, address `0x0E`) + +### Power Configuration + +The board provides **one analog battery monitoring channel**: + +- **BAT1** - Battery voltage and current sensed on `ADC1_INP6` (voltage, PF12) and `ADC1_INP2` (current, PF11). + +The channel feeds PX4's standard analog battery driver with a default 18.181 voltage divider and 36.366 A/V current ratio, supporting up to 14S LiPo batteries out of the box. + +## Connectors & Pinouts + +The following image shows the port connection details, including RC, UARTs, CAN, I2C, PWM, and LAN connections. + + + +The board exposes the following connectors and solder pads: + +- `TELEM1` (6-pin) - primary MAVLink radio link (USART2) +- `TELEM2` (6-pin) - companion computer / secondary MAVLink (USART6) +- `GPS1` (10-pin JST-GH) - UBX / NMEA GPS (USART1) +- `GPS2` (6-pin) - secondary GPS (UART4) +- `USART3` (4-pin) - generic auxiliary UART breakout (USART3) +- `RCIN` (3-pin) - SBUS / DSM / SUMD receiver input (UART8) +- `CAN1` (4-pin) - FDCAN1 (DroneCAN / UAVCAN) +- `CAN2` (4-pin) - FDCAN2 (DroneCAN / UAVCAN) +- `I2C` (4-pin) - external I²C +- `PWM` - 14 PWM outputs (M1–M14) +- `LAN` (4-pin) - Ethernet (RMII data channels only) + +### Standard Serial Port Mapping + +| Physical UART | PCB Silk Label | PX4 Slot (QGC) | Default Usage | +| ------------- | -------------- | --------------------------------- | ------------------------------------------- | +| USART1 | `GPS1` | GPS 1 | GPS | +| USART2 | `TELEM1` | TELEM 1 | MAVLink (Primary) | +| USART3 | `USART3` | TELEM 3 | User Auxiliary | +| UART4 | `GPS2` | GPS 2 | Secondary GPS | +| USART6 | `TELEM2` | TELEM 2 | MAVLink (Companion) | +| UART8 | `RCIN` | RC | RC Input (SBUS/DSM/SUMD) | + +### Відладочний порт + +The NSH console is exposed over USB CDC out of the box and is available via QGroundControl's MAVLink Console. + +### RC-вхід + +RC Input is mapped to **UART8** through the dedicated `RCIN` connector. + +Only the receive line (`RX8`) is broken out, so the port supports: + +- Single-wire SBUS (inverted) +- Spektrum DSM +- Graupner SUMD + +Configure the receiver protocol with the relevant `RC_*_PRT_CFG` parameter from QGroundControl, pointing it at the `RC` slot. + +### PWM Output Groups + +The 14 PWM outputs are organized into four timer groups. Channels in the same group must use the same output rate and DShot mode: + +| Group | Таймер | Channels | +| ----- | ------ | -------- | +| 1 | TIM1 | M1–M4 | +| 2 | TIM4 | M5–M8 | +| 3 | TIM5 | M9–M12 | +| 4 | TIM12 | M13–M14 | + +Channels within the same group need to use the same output rate. +If any channel in a group uses DShot then all channels in the group need to use DShot. + +### Ethernet + +The board features an Ethernet port with RMII interface (LAN8742A PHY). +Only the four RMII data channels are broken out to external pins: RMII_RXD0, RMII_RXD1, RMII_TXD0, RMII_TXD1. +Other RMII signals (REF_CLK, CRS_DV, MDC, MDIO) are connected internally to the onboard PHY chip. +MAVLink is pre-configured on Ethernet interface (MAV_2_CONFIG set to 1000). + +## Building / Loading Firmware + +:::tip +Most users will not need to build this firmware (from PX4 v2.0). +It is pre-built and automatically installed by _QGroundControl_ when appropriate hardware is connected. +::: + +To [build PX4](../dev_setup/building_px4.md) for this target from source: + +```sh +make siyi_unifc-6-pico_default +``` + +Initial firmware flashing can be done over USB via QGroundControl. +The bootloader status does not follow the standard generic PX4 LED indications (Green = Bootloader / Error, Blue = Active / Activity, Red = Powered). diff --git a/docs/uk/gps_compass/u-center.md b/docs/uk/gps_compass/u-center.md index a361cb534a0..522f2a41aaf 100644 --- a/docs/uk/gps_compass/u-center.md +++ b/docs/uk/gps_compass/u-center.md @@ -12,6 +12,10 @@ Heading and static-base-on-UART2 setups cannot use this feature. For more information see [Constraints](#constraints) below. ::: +:::warning +u-blox firmware cannot be updated over UART2. On ARK DroneCAN GPS modules, use the debug passthrough in [ARK RTK GPS](../dronecan/ark_rtk_gps.md#updating-ublox-f9p-module). +::: + ## Підключення Connect the adapter's RX to the receiver's `UART2` TX, its TX to `UART2` RX, and share ground. diff --git a/docs/uk/middleware/dds_topics.md b/docs/uk/middleware/dds_topics.md index 001a7cc1806..869ef2d6923 100644 --- a/docs/uk/middleware/dds_topics.md +++ b/docs/uk/middleware/dds_topics.md @@ -206,6 +206,7 @@ See messages - [LoggerStatus](../msg_docs/LoggerStatus.md) - [MagWorkerData](../msg_docs/MagWorkerData.md) - [MagnetometerBiasEstimate](../msg_docs/MagnetometerBiasEstimate.md) +- [ManualControlSetpointV0](../msg_docs/ManualControlSetpointV0.md) - [ManualControlSwitches](../msg_docs/ManualControlSwitches.md) - [MavlinkLog](../msg_docs/MavlinkLog.md) - [MavlinkTunnel](../msg_docs/MavlinkTunnel.md) @@ -239,6 +240,7 @@ See messages - [PowerMonitor](../msg_docs/PowerMonitor.md) - [PpsCapture](../msg_docs/PpsCapture.md) - [PrecLandStatus](../msg_docs/PrecLandStatus.md) +- [PrecTakeoffStatus](../msg_docs/PrecTakeoffStatus.md) - [PurePursuitStatus](../msg_docs/PurePursuitStatus.md) - [PwmInput](../msg_docs/PwmInput.md) - [Px4ioStatus](../msg_docs/Px4ioStatus.md) @@ -268,6 +270,8 @@ See messages - [SensorBaro](../msg_docs/SensorBaro.md) - [SensorCorrection](../msg_docs/SensorCorrection.md) - [SensorGnssRelative](../msg_docs/SensorGnssRelative.md) +- [SensorGnssRf](../msg_docs/SensorGnssRf.md) +- [SensorGnssSpectrum](../msg_docs/SensorGnssSpectrum.md) - [SensorGnssStatus](../msg_docs/SensorGnssStatus.md) - [SensorGyro](../msg_docs/SensorGyro.md) - [SensorGyroFft](../msg_docs/SensorGyroFft.md) diff --git a/docs/uk/modules/modules_driver_distance_sensor.md b/docs/uk/modules/modules_driver_distance_sensor.md index 25719fc89ee..44baa7548aa 100644 --- a/docs/uk/modules/modules_driver_distance_sensor.md +++ b/docs/uk/modules/modules_driver_distance_sensor.md @@ -6,31 +6,37 @@ Source: [drivers/distance_sensor/broadcom/afbrs50](https://github.com/PX4/PX4-Au ### Опис -Драйвер для Broadcom AFBRS50. +Driver for the Broadcom AFBR-S50 time-of-flight rangefinder. ### Приклади -Attempt to start driver on a specified serial device. - ``` afbrs50 start -``` - -Stop driver - -``` afbrs50 stop ``` +Run an absolute range offset calibration against a flat target at a known +distance (in meters), then check the result. Offsets persist to +SENS_AFBR_OFS_LO/HI and are re-applied at startup. + +``` +afbrs50 cal start 0.3 +afbrs50 cal status +``` + ### Usage {#afbrs50_usage} ``` afbrs50 [arguments...] Commands: - start Start driver - -d Serial device + start - stop Stop driver + cal Range offset calibration: cal start | status | + stop + + stop + + status print status info ``` ## gy_us42 diff --git a/docs/uk/modules/modules_driver_imu.md b/docs/uk/modules/modules_driver_imu.md index 31602c7b29f..68388849e77 100644 --- a/docs/uk/modules/modules_driver_imu.md +++ b/docs/uk/modules/modules_driver_imu.md @@ -739,6 +739,9 @@ icm42688p [arguments...] default: 0 [-C ] Input clock frequency (Hz) default: 0 + [-B ] Anti-alias filter bandwidth: 126, 258 or 394 Hz (0: chip + default 585 Hz) + default: 0 [-6] Drive ICM-42686 stop @@ -825,6 +828,9 @@ iim42652 [arguments...] default: 0 [-C ] Input clock frequency (Hz) default: 0 + [-B ] Anti-alias filter bandwidth: 126, 258 or 394 Hz (0: chip + default 585 Hz) + default: 0 stop @@ -854,6 +860,9 @@ iim42653 [arguments...] default: 0 [-C ] Input clock frequency (Hz) default: 0 + [-B ] Anti-alias filter bandwidth: 126, 258 or 394 Hz (0: chip + default 585 Hz) + default: 0 stop diff --git a/docs/uk/msg_docs/ManualControlSetpoint.md b/docs/uk/msg_docs/ManualControlSetpoint.md index 55563590b5a..17a45a152ef 100644 --- a/docs/uk/msg_docs/ManualControlSetpoint.md +++ b/docs/uk/msg_docs/ManualControlSetpoint.md @@ -4,35 +4,49 @@ pageClass: is-wide-page # ManualControlSetpoint (Повідомлення UORB) +Manual control input. + +This message provides a representation of manual control input sources, +such as RC controllers and MAVLink controller (Joystick). + +It defines the `manual_control_input` topic to represent each configured input, +and the `manual_control_setpoint` topic to represent the input that is currently +in charge of the vehicle (based on parameter COM_RC_IN_MODE). +`manual_control_setpoint` is the topic that is published to the controllers. + +The message includes fields for the roll, pitch, yaw, throttle and flaps, along with auxiliary channels and button states. + **TOPICS:** manual_control_setpoint manual_control_input ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| ---------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | | | time since system start (microseconds) | -| timestamp_sample | `uint64` | | | the timestamp of the raw data (microseconds) | -| valid | `bool` | | | | -| data_source | `uint8` | | | | -| roll | `float32` | | | move right, positive roll rotation, right side down | -| pitch | `float32` | | | move forward, negative pitch rotation, nose down | -| yaw | `float32` | | | positive yaw rotation, clockwise when seen top down | -| throttle | `float32` | | | move up, positive thrust, -1 is minimum available 0% or -100% +1 is 100% thrust | -| flaps | `float32` | | | position of flaps switch/knob/lever [-1, 1] | -| aux1 | `float32` | | | | -| aux2 | `float32` | | | | -| aux3 | `float32` | | | | -| aux4 | `float32` | | | | -| aux5 | `float32` | | | | -| aux6 | `float32` | | | | -| sticks_moving | `bool` | | | manual control override request in an auto or offboard mode, only gets true if feature is enabled | -| buttons | `uint16` | | | From uint16 buttons field of Mavlink manual_control message | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | | | time since system start (microseconds) | +| timestamp_sample | `uint64` | | | the timestamp of the raw data (microseconds) | +| valid | `bool` | | | | +| data_source | `uint8` | | | | +| source_system_id | `uint8` | | | MAVLink system ID of the manual control source (Invalid: 0) | +| source_component_id | `uint8` | | | MAVLink component ID of the manual control source (Invalid: 0) | +| roll | `float32` | | | move right, positive roll rotation, right side down | +| pitch | `float32` | | | move forward, negative pitch rotation, nose down | +| yaw | `float32` | | | positive yaw rotation, clockwise when seen top down | +| throttle | `float32` | | | move up, positive thrust, -1 is minimum available 0% or -100% +1 is 100% thrust | +| flaps | `float32` | | | position of flaps switch/knob/lever [-1, 1] | +| aux1 | `float32` | | | | +| aux2 | `float32` | | | | +| aux3 | `float32` | | | | +| aux4 | `float32` | | | | +| aux5 | `float32` | | | | +| aux6 | `float32` | | | | +| sticks_moving | `bool` | | | manual control override request in an auto or offboard mode, only gets true if feature is enabled | +| buttons | `uint16` | | | From uint16 buttons field of Mavlink manual_control message | ## Constants | Назва | Тип | Значення | Опис | | ----------------------------------------------------------------------------------------- | -------- | -------- | ---------------------------------------------------------------- | -| MESSAGE_VERSION | `uint32` | 0 | | +| MESSAGE_VERSION | `uint32` | 1 | | | SOURCE_UNKNOWN | `uint8` | 0 | | | SOURCE_RC | `uint8` | 1 | radio control (input_rc) | | SOURCE_MAVLINK_0 | `uint8` | 2 | mavlink instance 0 | @@ -50,7 +64,19 @@ pageClass: is-wide-page Click here to see original file ```c -uint32 MESSAGE_VERSION = 0 +# Manual control input +# +# This message provides a representation of manual control input sources, +# such as RC controllers and MAVLink controller (Joystick). +# +# It defines the `manual_control_input` topic to represent each configured input, +# and the `manual_control_setpoint` topic to represent the input that is currently +# in charge of the vehicle (based on parameter COM_RC_IN_MODE). +# `manual_control_setpoint` is the topic that is published to the controllers. +# +# The message includes fields for the roll, pitch, yaw, throttle and flaps, along with auxiliary channels and button states. + +uint32 MESSAGE_VERSION = 1 uint64 timestamp # time since system start (microseconds) uint64 timestamp_sample # the timestamp of the raw data (microseconds) @@ -67,6 +93,8 @@ uint8 SOURCE_MAVLINK_4 = 6 # mavlink instance 4 uint8 SOURCE_MAVLINK_5 = 7 # mavlink instance 5 uint8 data_source +uint8 source_system_id # [@invalid 0] MAVLink system ID of the manual control source +uint8 source_component_id # [@invalid 0] MAVLink component ID of the manual control source # Any of the channels may not be available and be set to NaN # to indicate that it does not contain valid data. diff --git a/docs/uk/msg_docs/ManualControlSetpointV0.md b/docs/uk/msg_docs/ManualControlSetpointV0.md new file mode 100644 index 00000000000..54986cf0da8 --- /dev/null +++ b/docs/uk/msg_docs/ManualControlSetpointV0.md @@ -0,0 +1,103 @@ +--- +pageClass: is-wide-page +--- + +# ManualControlSetpointV0 (UORB message) + +**TOPICS:** manual_control_setpoint manual_control_input + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ---------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | | | time since system start (microseconds) | +| timestamp_sample | `uint64` | | | the timestamp of the raw data (microseconds) | +| valid | `bool` | | | | +| data_source | `uint8` | | | | +| roll | `float32` | | | move right, positive roll rotation, right side down | +| pitch | `float32` | | | move forward, negative pitch rotation, nose down | +| yaw | `float32` | | | positive yaw rotation, clockwise when seen top down | +| throttle | `float32` | | | move up, positive thrust, -1 is minimum available 0% or -100% +1 is 100% thrust | +| flaps | `float32` | | | position of flaps switch/knob/lever [-1, 1] | +| aux1 | `float32` | | | | +| aux2 | `float32` | | | | +| aux3 | `float32` | | | | +| aux4 | `float32` | | | | +| aux5 | `float32` | | | | +| aux6 | `float32` | | | | +| sticks_moving | `bool` | | | manual control override request in an auto or offboard mode, only gets true if feature is enabled | +| buttons | `uint16` | | | From uint16 buttons field of Mavlink manual_control message | + +## Constants + +| Назва | Тип | Значення | Опис | +| ----------------------------------------------------------------------------------------- | -------- | -------- | ---------------------------------------------------------------- | +| MESSAGE_VERSION | `uint32` | 0 | | +| SOURCE_UNKNOWN | `uint8` | 0 | | +| SOURCE_RC | `uint8` | 1 | radio control (input_rc) | +| SOURCE_MAVLINK_0 | `uint8` | 2 | mavlink instance 0 | +| SOURCE_MAVLINK_1 | `uint8` | 3 | mavlink instance 1 | +| SOURCE_MAVLINK_2 | `uint8` | 4 | mavlink instance 2 | +| SOURCE_MAVLINK_3 | `uint8` | 5 | mavlink instance 3 | +| SOURCE_MAVLINK_4 | `uint8` | 6 | mavlink instance 4 | +| SOURCE_MAVLINK_5 | `uint8` | 7 | mavlink instance 5 | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/px4_msgs_old/msg/ManualControlSetpointV0.msg) + +:::details +Click here to see original file + +```c +uint32 MESSAGE_VERSION = 0 + +uint64 timestamp # time since system start (microseconds) +uint64 timestamp_sample # the timestamp of the raw data (microseconds) + +bool valid + +uint8 SOURCE_UNKNOWN = 0 +uint8 SOURCE_RC = 1 # radio control (input_rc) +uint8 SOURCE_MAVLINK_0 = 2 # mavlink instance 0 +uint8 SOURCE_MAVLINK_1 = 3 # mavlink instance 1 +uint8 SOURCE_MAVLINK_2 = 4 # mavlink instance 2 +uint8 SOURCE_MAVLINK_3 = 5 # mavlink instance 3 +uint8 SOURCE_MAVLINK_4 = 6 # mavlink instance 4 +uint8 SOURCE_MAVLINK_5 = 7 # mavlink instance 5 + +uint8 data_source + +# Any of the channels may not be available and be set to NaN +# to indicate that it does not contain valid data. + +# Stick positions [-1,1] +# on a common RC mode 1/2/3/4 remote/joystick the stick deflection: -1 is down/left, 1 is up/right +# Note: QGC sends throttle/z in range [0,1000] - [0,1]. The MAVLink input conversion [0,1] to [-1,1] is at the moment kept backwards compatible. +# Positive values are generally used for: +float32 roll # move right, positive roll rotation, right side down +float32 pitch # move forward, negative pitch rotation, nose down +float32 yaw # positive yaw rotation, clockwise when seen top down +float32 throttle # move up, positive thrust, -1 is minimum available 0% or -100% +1 is 100% thrust + +float32 flaps # position of flaps switch/knob/lever [-1, 1] + +float32 aux1 +float32 aux2 +float32 aux3 +float32 aux4 +float32 aux5 +float32 aux6 + +bool sticks_moving # manual control override request in an auto or offboard mode, only gets true if feature is enabled + +uint16 buttons # From uint16 buttons field of Mavlink manual_control message + +# TOPICS manual_control_setpoint manual_control_input +# DEPRECATED: float32 x +# DEPRECATED: float32 y +# DEPRECATED: float32 z +# DEPRECATED: float32 r +``` + +::: diff --git a/docs/uk/msg_docs/PrecTakeoffStatus.md b/docs/uk/msg_docs/PrecTakeoffStatus.md new file mode 100644 index 00000000000..4c4ca0437a6 --- /dev/null +++ b/docs/uk/msg_docs/PrecTakeoffStatus.md @@ -0,0 +1,62 @@ +--- +pageClass: is-wide-page +--- + +# PrecTakeoffStatus (UORB message) + +Precision takeoff status. + +Published by: navigator (prec_takeoff.cpp). +Subscribed by: vision_target_estimator, flight_mode_manager (FlightTaskAuto). + +ONGOING while a vertical takeoff setpoint is active and MIS_TKO_PREC is set. DONE is published when the +takeoff altitude is reached, then STOPPED once the takeoff is no longer active. Published every Navigator cycle. + +**TOPICS:** prec_takeoff_status + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ------------------------------------------------------------------------ | -------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| state | `uint8` | | [PREC_TAKEOFF_STATE](#PREC_TAKEOFF_STATE) | Current precision-takeoff state | +| setpoint_adjusted | `bool` | | | True after a valid target adjusted the horizontal setpoint | + +## Enums + +### PREC_TAKEOFF_STATE {#PREC_TAKEOFF_STATE} + +Used in field(s): [state](#fld_state) + +| Назва | Тип | Значення | Опис | +| ---------------------------------------------------------------------------------------------------------------------------------- | ------- | -------- | --------------------------------------------------------------- | +| PREC_TAKEOFF_STATE_STOPPED | `uint8` | 0 | Not active | +| PREC_TAKEOFF_STATE_ONGOING | `uint8` | 1 | Takeoff active; the estimator may still be acquiring the target | +| PREC_TAKEOFF_STATE_DONE | `uint8` | 2 | Takeoff altitude reached | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/PrecTakeoffStatus.msg) + +:::details +Click here to see original file + +```c +# Precision takeoff status. +# +# Published by: navigator (prec_takeoff.cpp). +# Subscribed by: vision_target_estimator, flight_mode_manager (FlightTaskAuto). +# +# ONGOING while a vertical takeoff setpoint is active and MIS_TKO_PREC is set. DONE is published when the +# takeoff altitude is reached, then STOPPED once the takeoff is no longer active. Published every Navigator cycle. + +uint64 timestamp # [us] Time since system start + +uint8 state # [@enum PREC_TAKEOFF_STATE] Current precision-takeoff state +bool setpoint_adjusted # True after a valid target adjusted the horizontal setpoint +uint8 PREC_TAKEOFF_STATE_STOPPED = 0 # Not active +uint8 PREC_TAKEOFF_STATE_ONGOING = 1 # Takeoff active; the estimator may still be acquiring the target +uint8 PREC_TAKEOFF_STATE_DONE = 2 # Takeoff altitude reached +``` + +::: diff --git a/docs/uk/msg_docs/SensorGnssRf.md b/docs/uk/msg_docs/SensorGnssRf.md new file mode 100644 index 00000000000..575cd5aadee --- /dev/null +++ b/docs/uk/msg_docs/SensorGnssRf.md @@ -0,0 +1,129 @@ +--- +pageClass: is-wide-page +--- + +# SensorGnssRf (UORB message) + +GNSS RF status. + +Reports RF block status for a GNSS receiver, decoded from the u-blox UBX-MON-RF message. +Includes antenna status/power, jamming/interference indicators, automatic gain control (AGC), +noise level, and I/Q demodulation metrics. Published by the `gps` driver (UBX protocol only), once +per RF block, via the block-specific topics below. + +**TOPICS:** sensor_gnss_rf_block0 sensor_gnss_rf_block1 sensor_gnss_rf_block2 + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| timestamp_sample | `uint64` | us | | Timestamp of the raw data | +| device_id | `uint32` | | | Unique device ID for the sensor that does not change between power cycles | +| block_id | `uint8` | | | Only used for multi-topic publishing | +| antenna_status | `uint8` | | [ANTENNA_STATUS](#ANTENNA_STATUS) | Status of the antenna supervisor state machine | +| antenna_power | `uint8` | | [ANTENNA_POWER](#ANTENNA_POWER) | Antenna power state | +| post_status | `uint32` | | | Power-on self-test (POST) status word (vendor-specific bitmask) | +| noise_per_ms | `uint16` | | | Noise level as measured by the GNSS receiver core | +| automatic_gain_control | `uint16` | | [0 : 8191] | Automatic Gain Control (AGC) monitor value (8191 = 100% of max gain) | +| jamming_indicator | `uint8` | | [0 : 255] | Continuous wave (CW) jamming indicator (0 = no CW jamming, 255 = strong CW jamming) | +| jamming_state | `uint8` | | [JAMMING_STATE](#JAMMING_STATE) | Jamming state | +| i_offset | `int8` | | [-128 : 127] | Imbalance of the I-part of the complex signal (0 = no imbalance) | +| i_magnitude | `uint8` | | [0 : 255] | Magnitude of the I-part of the complex signal (0 = no signal, 255 = max magnitude) | +| q_offset | `int8` | | [-128 : 127] | Imbalance of the Q-part of the complex signal (0 = no imbalance) | +| q_magnitude | `uint8` | | [0 : 255] | Magnitude of the Q-part of the complex signal (0 = no signal, 255 = max magnitude) | +| center_frequency | `uint32` | Hz | | Nominal center frequency of the RF block. 0 = unknown. | + +## Enums + +### ANTENNA_STATUS {#ANTENNA_STATUS} + +Used in field(s): [antenna_status](#fld_antenna_status) + +| Назва | Тип | Значення | Опис | +| ----------------------------------------------------------------------------------------------------- | ------- | -------- | ---------------------- | +| ANTENNA_STATUS_INIT | `uint8` | 0 | Initializing | +| ANTENNA_STATUS_UNKNOWN | `uint8` | 1 | Status unknown | +| ANTENNA_STATUS_OK | `uint8` | 2 | Antenna OK | +| ANTENNA_STATUS_SHORT | `uint8` | 3 | Short circuit detected | +| ANTENNA_STATUS_OPEN | `uint8` | 4 | Open circuit detected | + +### ANTENNA_POWER {#ANTENNA_POWER} + +Used in field(s): [antenna_power](#fld_antenna_power) + +| Назва | Тип | Значення | Опис | +| --------------------------------------------------------------------------------------------------- | ------- | -------- | ------------------- | +| ANTENNA_POWER_OFF | `uint8` | 0 | Power off | +| ANTENNA_POWER_ON | `uint8` | 1 | Power on | +| ANTENNA_POWER_UNKNOWN | `uint8` | 2 | Power state unknown | + +### JAMMING_STATE {#JAMMING_STATE} + +Used in field(s): [jamming_state](#fld_jamming_state) + +| Назва | Тип | Значення | Опис | +| ----------------------------------------------------------------------------------------------------- | ------- | -------- | ------------------------------- | +| JAMMING_STATE_UNKNOWN | `uint8` | 0 | Unknown | +| JAMMING_STATE_OK | `uint8` | 1 | No jamming detected | +| JAMMING_STATE_WARNING | `uint8` | 2 | Interference visible but fix OK | +| JAMMING_STATE_CRITICAL | `uint8` | 3 | Interference visible and no fix | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/SensorGnssRf.msg) + +:::details +Click here to see original file + +```c +# GNSS RF status +# +# Reports RF block status for a GNSS receiver, decoded from the u-blox UBX-MON-RF message. +# Includes antenna status/power, jamming/interference indicators, automatic gain control (AGC), +# noise level, and I/Q demodulation metrics. Published by the `gps` driver (UBX protocol only), once +# per RF block, via the block-specific topics below. + +uint64 timestamp # [us] Time since system start +uint64 timestamp_sample # [us] Timestamp of the raw data + +uint32 device_id # Unique device ID for the sensor that does not change between power cycles + +uint8 block_id # [-] Only used for multi-topic publishing + +uint8 antenna_status # [@enum ANTENNA_STATUS] Status of the antenna supervisor state machine +uint8 ANTENNA_STATUS_INIT = 0 # Initializing +uint8 ANTENNA_STATUS_UNKNOWN = 1 # Status unknown +uint8 ANTENNA_STATUS_OK = 2 # Antenna OK +uint8 ANTENNA_STATUS_SHORT = 3 # Short circuit detected +uint8 ANTENNA_STATUS_OPEN = 4 # Open circuit detected + +uint8 antenna_power # [@enum ANTENNA_POWER] Antenna power state +uint8 ANTENNA_POWER_OFF = 0 # Power off +uint8 ANTENNA_POWER_ON = 1 # Power on +uint8 ANTENNA_POWER_UNKNOWN = 2 # Power state unknown + +uint32 post_status # [-] Power-on self-test (POST) status word (vendor-specific bitmask) + +uint16 noise_per_ms # [-] Noise level as measured by the GNSS receiver core +uint16 automatic_gain_control # [-] [@range 0, 8191] Automatic Gain Control (AGC) monitor value (8191 = 100% of max gain) +uint8 jamming_indicator # [-] [@range 0, 255] Continuous wave (CW) jamming indicator (0 = no CW jamming, 255 = strong CW jamming) + +uint8 jamming_state # [@enum JAMMING_STATE] Jamming state +uint8 JAMMING_STATE_UNKNOWN = 0 # Unknown +uint8 JAMMING_STATE_OK = 1 # No jamming detected +uint8 JAMMING_STATE_WARNING = 2 # Interference visible but fix OK +uint8 JAMMING_STATE_CRITICAL = 3 # Interference visible and no fix + +int8 i_offset # [-] [@range -128, 127] Imbalance of the I-part of the complex signal (0 = no imbalance) +uint8 i_magnitude # [-] [@range 0, 255] Magnitude of the I-part of the complex signal (0 = no signal, 255 = max magnitude) +int8 q_offset # [-] [@range -128, 127] Imbalance of the Q-part of the complex signal (0 = no imbalance) +uint8 q_magnitude # [-] [@range 0, 255] Magnitude of the Q-part of the complex signal (0 = no signal, 255 = max magnitude) + +uint32 center_frequency # [Hz] Nominal center frequency of the RF block. 0 = unknown. + +# One topic per RF block ID +# TOPICS sensor_gnss_rf_block0 sensor_gnss_rf_block1 sensor_gnss_rf_block2 +``` + +::: diff --git a/docs/uk/msg_docs/SensorGnssSpectrum.md b/docs/uk/msg_docs/SensorGnssSpectrum.md new file mode 100644 index 00000000000..c79e970b377 --- /dev/null +++ b/docs/uk/msg_docs/SensorGnssSpectrum.md @@ -0,0 +1,62 @@ +--- +pageClass: is-wide-page +--- + +# SensorGnssSpectrum (UORB message) + +GNSS spectrum analysis. + +Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN +message (enabled via the GPS_UBX_SPECTRUM parameter). +Published by the `gps` driver (UBX protocol only), once per RF block, via the block-specific topics below. +The center frequency of bin i is: f(i) = center_frequency + spectrum_span \* (i - 127) / 256 + +**TOPICS:** sensor_gnss_spectrum_block0 sensor_gnss_spectrum_block1 sensor_gnss_spectrum_block2 + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ----------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| timestamp_sample | `uint64` | us | | Timestamp of the raw data | +| device_id | `uint32` | | | Unique device ID for the sensor that does not change between power cycles | +| block_id | `uint8` | | | Only used for multi-topic publishing. Use center_frequency to determine which RF band it is. | +| spectrum | `uint8[256]` | (2^-2)dB | | Spectrum magnitude per bin (number of points = spectrum_span / resolution) | +| spectrum_span | `uint32` | Hz | | Frequency span covered by the spectrum | +| resolution | `uint32` | Hz | | Frequency resolution of the spectrum (bin width) | +| center_frequency | `uint32` | Hz | | Center frequency of the spectrum span | +| programmable_gain_amplifier | `uint8` | dB | | Programmable gain amplifier setting | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/SensorGnssSpectrum.msg) + +:::details +Click here to see original file + +```c +# GNSS spectrum analysis +# +# Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN +# message (enabled via the GPS_UBX_SPECTRUM parameter). +# Published by the `gps` driver (UBX protocol only), once per RF block, via the block-specific topics below. +# The center frequency of bin i is: f(i) = center_frequency + spectrum_span * (i - 127) / 256 + +uint64 timestamp # [us] Time since system start +uint64 timestamp_sample # [us] Timestamp of the raw data + +uint32 device_id # Unique device ID for the sensor that does not change between power cycles + +uint8 block_id # [-] Only used for multi-topic publishing. Use center_frequency to determine which RF band it is. + +uint8[256] spectrum # [(2^-2)dB] Spectrum magnitude per bin (number of points = spectrum_span / resolution) +uint32 spectrum_span # [Hz] Frequency span covered by the spectrum +uint32 resolution # [Hz] Frequency resolution of the spectrum (bin width) +uint32 center_frequency # [Hz] Center frequency of the spectrum span +uint8 programmable_gain_amplifier # [dB] Programmable gain amplifier setting + +# One topic per RF block ID +# TOPICS sensor_gnss_spectrum_block0 sensor_gnss_spectrum_block1 sensor_gnss_spectrum_block2 +``` + +::: diff --git a/docs/uk/msg_docs/SensorMag.md b/docs/uk/msg_docs/SensorMag.md index e3e8b425ebd..7e4d246e89b 100644 --- a/docs/uk/msg_docs/SensorMag.md +++ b/docs/uk/msg_docs/SensorMag.md @@ -18,6 +18,7 @@ pageClass: is-wide-page | y | `float32` | Gauss | | magnetic field in the FRD board frame Y-axis | | z | `float32` | Gauss | | magnetic field in the FRD board frame Z-axis | | temperature | `float32` | °C | | Temperature. | +| range | `float32` | Gauss | | full-scale measurement range, 0 if unknown | | error_count | `uint32` | | | | ## Constants @@ -46,6 +47,8 @@ float32 z # [Gauss] magnetic field in the FRD board frame Z-axis float32 temperature # [°C] Temperature. +float32 range # [Gauss] full-scale measurement range, 0 if unknown + uint32 error_count uint8 ORB_QUEUE_LENGTH = 4 diff --git a/docs/uk/msg_docs/SensorUwb.md b/docs/uk/msg_docs/SensorUwb.md index 577a8660657..54d92978b1c 100644 --- a/docs/uk/msg_docs/SensorUwb.md +++ b/docs/uk/msg_docs/SensorUwb.md @@ -4,35 +4,41 @@ pageClass: is-wide-page # SensorUwb (Повідомлення UORB) -UWB distance contains the distance information measured by an ultra-wideband positioning system,. such as Pozyx or NXP Rddrone. +Ultra-wideband (UWB) distance sensor. + +Distance and angle-of-arrival ranging data from an ultra-wideband (UWB) positioning +system, such as Pozyx or NXP Rddrone. Published and consumed internally by the UWB +ranging driver (src/drivers/uwb/uwb_sr150), which parses serial ranging results from +the sensor module and publishes them on this topic; no other module in the codebase +currently subscribes to it. **TOPICS:** sensor_uwb ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| ---------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | | | time since system start (microseconds) | -| sessionid | `uint32` | | | UWB SessionID | -| time_offset | `uint32` | | | Time between Ranging Rounds in ms | -| counter | `uint32` | | | Number of Ranges since last Start of Ranging | -| mac | `uint16` | | | MAC adress of Initiator (controller) | -| mac_dest | `uint16` | | | MAC adress of Responder (Controlee) | -| status | `uint16` | | | status feedback # | -| nlos | `uint8` | | | None line of site condition y/n | -| distance | `float32` | | | distance in m to the UWB receiver | -| aoa_azimuth_dev | `float32` | | | Angle of arrival of first incomming RX msg | -| aoa_elevation_dev | `float32` | | | Angle of arrival of first incomming RX msg | -| aoa_azimuth_resp | `float32` | | | Angle of arrival of first incomming RX msg at the responder | -| aoa_elevation_resp | `float32` | | | Angle of arrival of first incomming RX msg at the responder | -| aoa_azimuth_fom | `uint8` | | | AOA Azimuth FOM | -| aoa_elevation_fom | `uint8` | | | AOA Elevation FOM | -| aoa_dest_azimuth_fom | `uint8` | | | AOA Azimuth FOM | -| aoa_dest_elevation_fom | `uint8` | | | AOA Elevation FOM | -| orientation | `uint8` | | | Direction the sensor faces from MAV_SENSOR_ORIENTATION enum | -| offset_x | `float32` | | | UWB initiator offset in X axis (NED drone frame) | -| offset_y | `float32` | | | UWB initiator offset in Y axis (NED drone frame) | -| offset_z | `float32` | | | UWB initiator offset in Z axis (NED drone frame) | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ---------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| timestamp | `uint64` | us | | Time since system start | +| sessionid | `uint32` | | | UWB SessionID | +| time_offset | `uint32` | | | Time between Ranging Rounds in ms | +| counter | `uint32` | | | Number of Ranges since last Start of Ranging | +| mac | `uint16` | | | MAC address of Initiator (controller) | +| mac_dest | `uint16` | | | MAC address of Responder (Controlee) | +| status | `uint16` | | | Ranging status code passed through from the UWB module's measurement result | +| nlos | `uint8` | | | Non-line-of-sight condition (y/n) | +| distance | `float32` | m | | Distance to the UWB receiver | +| aoa_azimuth_dev | `float32` | deg | | Angle of arrival of first incoming RX msg | +| aoa_elevation_dev | `float32` | deg | | Angle of arrival of first incoming RX msg | +| aoa_azimuth_resp | `float32` | deg | | Angle of arrival of first incoming RX msg at the responder | +| aoa_elevation_resp | `float32` | deg | | Angle of arrival of first incoming RX msg at the responder | +| aoa_azimuth_fom | `uint8` | | | AOA Azimuth Figure of Merit (FOM) | +| aoa_elevation_fom | `uint8` | | | AOA Elevation FOM | +| aoa_dest_azimuth_fom | `uint8` | | | AOA Azimuth FOM | +| aoa_dest_elevation_fom | `uint8` | | | AOA Elevation FOM | +| orientation | `uint8` | | | Direction the sensor faces from MAV_SENSOR_ORIENTATION enum. Standard configuration has antennas facing down and azimuth aligned in the forward direction. | +| offset_x | `float32` | | | UWB initiator offset in X axis (NED drone frame) | +| offset_y | `float32` | | | UWB initiator offset in Y axis (NED drone frame) | +| offset_z | `float32` | | | UWB initiator offset in Z axis (NED drone frame) | ## Source Message @@ -42,40 +48,43 @@ UWB distance contains the distance information measured by an ultra-wideband pos Click here to see original file ```c -# UWB distance contains the distance information measured by an ultra-wideband positioning system, -# such as Pozyx or NXP Rddrone. +# Ultra-wideband (UWB) distance sensor +# +# Distance and angle-of-arrival ranging data from an ultra-wideband (UWB) positioning +# system, such as Pozyx or NXP Rddrone. Published and consumed internally by the UWB +# ranging driver (src/drivers/uwb/uwb_sr150), which parses serial ranging results from +# the sensor module and publishes them on this topic; no other module in the codebase +# currently subscribes to it. -uint64 timestamp # time since system start (microseconds) +uint64 timestamp # [us] Time since system start -uint32 sessionid # UWB SessionID -uint32 time_offset # Time between Ranging Rounds in ms -uint32 counter # Number of Ranges since last Start of Ranging -uint16 mac # MAC adress of Initiator (controller) - -uint16 mac_dest # MAC adress of Responder (Controlee) -uint16 status # status feedback # -uint8 nlos # None line of site condition y/n -float32 distance # distance in m to the UWB receiver +uint32 sessionid # UWB SessionID +uint32 time_offset # Time between Ranging Rounds in ms +uint32 counter # Number of Ranges since last Start of Ranging +uint16 mac # [-] MAC address of Initiator (controller) +uint16 mac_dest # [-] MAC address of Responder (Controlee) +uint16 status # [-] Ranging status code passed through from the UWB module's measurement result +uint8 nlos # [-] Non-line-of-sight condition (y/n) +float32 distance # [m] Distance to the UWB receiver #Angle of arrival, Angle in Degree -60..+60; FOV in both axis is 120 degrees -float32 aoa_azimuth_dev # Angle of arrival of first incomming RX msg -float32 aoa_elevation_dev # Angle of arrival of first incomming RX msg -float32 aoa_azimuth_resp # Angle of arrival of first incomming RX msg at the responder -float32 aoa_elevation_resp # Angle of arrival of first incomming RX msg at the responder +float32 aoa_azimuth_dev # [deg] Angle of arrival of first incoming RX msg +float32 aoa_elevation_dev # [deg] Angle of arrival of first incoming RX msg +float32 aoa_azimuth_resp # [deg] Angle of arrival of first incoming RX msg at the responder +float32 aoa_elevation_resp # [deg] Angle of arrival of first incoming RX msg at the responder # Figure of merit for the angle measurements -uint8 aoa_azimuth_fom # AOA Azimuth FOM -uint8 aoa_elevation_fom # AOA Elevation FOM -uint8 aoa_dest_azimuth_fom # AOA Azimuth FOM -uint8 aoa_dest_elevation_fom # AOA Elevation FOM +uint8 aoa_azimuth_fom # AOA Azimuth Figure of Merit (FOM) +uint8 aoa_elevation_fom # AOA Elevation FOM +uint8 aoa_dest_azimuth_fom # AOA Azimuth FOM +uint8 aoa_dest_elevation_fom # AOA Elevation FOM # Initiator physical configuration -uint8 orientation # Direction the sensor faces from MAV_SENSOR_ORIENTATION enum - # Standard configuration is Antennas facing down and azimuth aligened in forward direction -float32 offset_x # UWB initiator offset in X axis (NED drone frame) -float32 offset_y # UWB initiator offset in Y axis (NED drone frame) -float32 offset_z # UWB initiator offset in Z axis (NED drone frame) +uint8 orientation # Direction the sensor faces from MAV_SENSOR_ORIENTATION enum. Standard configuration has antennas facing down and azimuth aligned in the forward direction. +float32 offset_x # UWB initiator offset in X axis (NED drone frame) +float32 offset_y # UWB initiator offset in Y axis (NED drone frame) +float32 offset_z # UWB initiator offset in Z axis (NED drone frame) ``` ::: diff --git a/docs/uk/msg_docs/VehicleCommand.md b/docs/uk/msg_docs/VehicleCommand.md index 5c5d51e8aae..aebcc66fb60 100644 --- a/docs/uk/msg_docs/VehicleCommand.md +++ b/docs/uk/msg_docs/VehicleCommand.md @@ -1680,6 +1680,7 @@ Change heading/course. param1: heading type (0=course-over-ground, 1=heading). p | FAILURE_TYPE_SLOW | `uint8` | 5 | | | FAILURE_TYPE_DELAYED | `uint8` | 6 | | | FAILURE_TYPE_INTERMITTENT | `uint8` | 7 | | +| FAILURE_TYPE_DRIFT | `uint8` | 8 | | | RC_TYPE_SPEKTRUM | `uint8` | 0 | | | RC_TYPE_CRSF | `uint8` | 1 | | | RC_SUB_TYPE_SPEKTRUM_DSM2 | `uint8` | 0 | | @@ -1892,6 +1893,7 @@ uint8 FAILURE_TYPE_WRONG = 4 uint8 FAILURE_TYPE_SLOW = 5 uint8 FAILURE_TYPE_DELAYED = 6 uint8 FAILURE_TYPE_INTERMITTENT = 7 +uint8 FAILURE_TYPE_DRIFT = 8 # Used as param1 in DO_CHANGE_SPEED command. uint8 SPEED_TYPE_AIRSPEED = 0 diff --git a/docs/uk/msg_docs/index.md b/docs/uk/msg_docs/index.md index 591fa2adc18..d3819033b3f 100644 --- a/docs/uk/msg_docs/index.md +++ b/docs/uk/msg_docs/index.md @@ -30,7 +30,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [HomePosition](HomePosition.md) — GPS home position in WGS84 coordinates. - [LateralControlConfiguration](LateralControlConfiguration.md) — Fixed Wing Lateral Control Configuration message. - [LongitudinalControlConfiguration](LongitudinalControlConfiguration.md) — Fixed Wing Longitudinal Control Configuration message. -- [ManualControlSetpoint](ManualControlSetpoint.md) +- [ManualControlSetpoint](ManualControlSetpoint.md) — Manual control input. - [ModeCompleted](ModeCompleted.md) — Mode completion result, published by an active mode. Можливі значення nav_state визначені в повідомленні VehicleStatus. Note that this is not always published (e.g. when a user switches modes or on. failsafe activation). - [RaptorInput](RaptorInput.md) — Raptor Input. - [RaptorStatus](RaptorStatus.md) — Raptor Status. @@ -65,6 +65,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [EventV0](EventV0.md) — this message is required here in the msg_old folder because other msg are depending on it. Events interface. - [HomePositionV0](HomePositionV0.md) — GPS home position in WGS84 coordinates. - [HomePositionV1](HomePositionV1.md) — GPS home position in WGS84 coordinates. +- [ManualControlSetpointV0](ManualControlSetpointV0.md) - [RegisterExtComponentReplyV0](RegisterExtComponentReplyV0.md) - [RegisterExtComponentRequestV0](RegisterExtComponentRequestV0.md) — Request to register an external component. - [RegisterExtComponentRequestV1](RegisterExtComponentRequestV1.md) — Request to register an external component. @@ -221,6 +222,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [PowerMonitor](PowerMonitor.md) — power monitor message. - [PpsCapture](PpsCapture.md) - [PrecLandStatus](PrecLandStatus.md) — Precision-landing runtime status: a single state captures both whether precision landing is active and which phase it is in. +- [PrecTakeoffStatus](PrecTakeoffStatus.md) — Precision takeoff status. - [PurePursuitStatus](PurePursuitStatus.md) — Pure pursuit status. - [PwmInput](PwmInput.md) - [Px4ioStatus](Px4ioStatus.md) @@ -252,6 +254,8 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [SensorCombined](SensorCombined.md) — Sensor readings in SI-unit form. These fields are scaled and offset-compensated where possible and do not. change with board revisions and sensor updates. - [SensorCorrection](SensorCorrection.md) — Sensor corrections in SI-unit form for the voted sensor. - [SensorGnssRelative](SensorGnssRelative.md) — GNSS relative positioning information in NED frame. NED кадр визначається як локальна топологічна система на задній станції. +- [SensorGnssRf](SensorGnssRf.md) — GNSS RF status. +- [SensorGnssSpectrum](SensorGnssSpectrum.md) — GNSS spectrum analysis. - [SensorGnssStatus](SensorGnssStatus.md) — Gnss quality indicators. - [SensorGps](SensorGps.md) — GPS position in WGS84 coordinates. the field 'timestamp' is for the position & velocity (microseconds). - [SensorGyro](SensorGyro.md) @@ -263,7 +267,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [SensorPreflightMag](SensorPreflightMag.md) — Pre-flight sensor check metrics. The topic will not be updated when the vehicle is armed. - [SensorSelection](SensorSelection.md) — Sensor ID's for the voted sensors output on the sensor_combined topic. Will be updated on startup of the sensor module and when sensor selection changes. - [SensorTemp](SensorTemp.md) -- [SensorUwb](SensorUwb.md) — UWB distance contains the distance information measured by an ultra-wideband positioning system,. such as Pozyx or NXP Rddrone. +- [SensorUwb](SensorUwb.md) — Ultra-wideband (UWB) distance sensor. - [SensorsStatus](SensorsStatus.md) — Sensor check metrics. This will be zero for a sensor that's primary or unpopulated. - [SensorsStatusImu](SensorsStatusImu.md) — Sensor check metrics. This will be zero for a sensor that's primary or unpopulated. - [SystemPower](SystemPower.md) diff --git a/docs/uk/releases/1.18.md b/docs/uk/releases/1.18.md index ad40b190e86..edb352a0781 100644 --- a/docs/uk/releases/1.18.md +++ b/docs/uk/releases/1.18.md @@ -84,6 +84,8 @@ For users upgrading from v1.17, please take a moment to review the following bef 11. **Update AFBR-S50 startup scripts.** The `-r` command-line rotation flag is removed; set the mounting orientation via [SENS_AFBR_ROT](../advanced_config/parameter_reference.md#SENS_AFBR_ROT) instead. ([PX4-Autopilot#27385](https://github.com/PX4/PX4-Autopilot/pull/27385)) + `SENS_AFBR_S_RATE`, `SENS_AFBR_L_RATE`, `SENS_AFBR_THRESH` and `SENS_AFBR_HYSTER` are removed with the distance-based range switching; rate and dual frequency mode are now set per module by [SENS_AFBR_PROF](../advanced_config/parameter_reference.md#SENS_AFBR_PROF), or explicitly with [SENS_AFBR_RATE](../advanced_config/parameter_reference.md#SENS_AFBR_RATE) and [SENS_AFBR_DFM](../advanced_config/parameter_reference.md#SENS_AFBR_DFM). + ([PX4-Autopilot#28454](https://github.com/PX4/PX4-Autopilot/pull/28454)) ## Підтримка обладнання diff --git a/docs/uk/sim_flightgear/index.md b/docs/uk/sim_flightgear/index.md index f637d8ad8b4..50f96f66292 100644 --- a/docs/uk/sim_flightgear/index.md +++ b/docs/uk/sim_flightgear/index.md @@ -93,12 +93,6 @@ The supported vehicles and `make` commands are listed below (click on the links _QGroundControl_ should be able to automatically connect to the simulated vehicle. :::info -For the full list of FlightGear build targets (highlighted) run: - -```sh -make px4_sitl_nolockstep list_vmd_make_targets | grep flightgear_ -``` - For additional information see: [FlightGear Vehicles](../sim_flightgear/vehicles.md) (this includes information about "unsupported" vehicles, and adding new vehicles). ::: diff --git a/docs/uk/sim_flightgear/vehicles.md b/docs/uk/sim_flightgear/vehicles.md index f834f9e5558..037d6f6e566 100644 --- a/docs/uk/sim_flightgear/vehicles.md +++ b/docs/uk/sim_flightgear/vehicles.md @@ -10,10 +10,6 @@ This simulator is [community supported and maintained](../simulation/community_s This topic lists/displays the vehicles supported by the PX4 [FlightGear](../sim_flightgear/index.md) simulation, and the `make` commands required to run them (the commands are run from terminal in the **PX4-Autopilot** directory). Підтримувані типи: літак, автогир та ровер (існують конкретні рамки в межах цих типів). -:::tip -For the full list of build targets run `make px4_sitl list_vmd_make_targets` (filter out those that start with `flightgear_`). -::: - :::info The [FlightGear](../sim_flightgear/index.md) page shows how to install and use FlightGear in more detail (this page is a summary of vehicle-specific features). ::: diff --git a/docs/uk/sim_gazebo_classic/index.md b/docs/uk/sim_gazebo_classic/index.md index 4a081864c39..81f6db6a698 100644 --- a/docs/uk/sim_gazebo_classic/index.md +++ b/docs/uk/sim_gazebo_classic/index.md @@ -62,10 +62,6 @@ make px4_sitl gazebo-classic The supported vehicles and `make` commands are listed below (click links to see vehicle images). -:::info -For the full list of build targets run `make px4_sitl list_vmd_make_targets` (and filter on those that start with `gazebo-classic_`). -::: - | Транспортний засіб | Команда | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | | [Quadrotor](../sim_gazebo_classic/vehicles.md#quadrotor-default) | `make px4_sitl gazebo-classic` | diff --git a/docs/uk/sim_jmavsim/index.md b/docs/uk/sim_jmavsim/index.md index e4c3836739a..5d305df3c40 100644 --- a/docs/uk/sim_jmavsim/index.md +++ b/docs/uk/sim_jmavsim/index.md @@ -24,7 +24,8 @@ jMAVSim can also be used for HITL Simulation ([as shown here](../simulation/hitl jMAVSim requires JDK 17 or later. On Ubuntu and Windows, the [standard development environment setup](../dev_setup/dev_env.md) scripts install all required dependencies including Java. -On macOS, you need to install Java manually as shown below. +On macOS, `./Tools/setup/macos.sh --sim-tools` installs a suitable JDK and links it into `/Library/Java/JavaVirtualMachines` (see [macOS Development Environment](../dev_setup/dev_env_mac.md)). +If you set up without `--sim-tools`, install Java manually as shown below. ### macOS diff --git a/docs/uk/simulation/gazebo_container_gui.md b/docs/uk/simulation/gazebo_container_gui.md new file mode 100644 index 00000000000..29131492b12 --- /dev/null +++ b/docs/uk/simulation/gazebo_container_gui.md @@ -0,0 +1,154 @@ +# Gazebo Container GUI + +The [Gazebo runtime and ROS development images](px4_sitl_prebuilt_packages.md) can display the Gazebo Harmonic GUI through a Linux X server or Windows WSLg. +Both use the same X11 client libraries and Qt configuration. +The X server runs outside the application container; installing Xvfb inside the image would not forward a window to your desktop. + +The examples use software rendering to avoid depending on GPU passthrough. +Gazebo still renders the 3D scene, but performance depends on the CPU. +Leave `HEADLESS` unset or empty: `HEADLESS=0` also disables the GUI. + +## Linux + +Use Docker Engine from a local graphical-session terminal, with `DISPLAY` set and the host's `xauth` command installed. +Xorg and Wayland desktops with XWayland are supported by this X11 route. +The following command copies only the current display's authentication records into a private temporary file: + +```bash +( + set -euo pipefail + umask 077 + : "${DISPLAY:?Open a terminal in your local graphical session}" + IMAGE="${IMAGE:-px4io/px4-sitl-gazebo:latest}" + auth=$(mktemp) + trap 'rm -f "$auth"' EXIT + + xauth nlist "$DISPLAY" | + sed 's/^..../ffff/' | + xauth -f "$auth" nmerge - + if [ ! -s "$auth" ]; then + echo "No Xauthority cookie for $DISPLAY; check the host XAUTHORITY setting." >&2 + exit 1 + fi + + docker run --rm -it --name px4-gazebo --network host \ + --mount type=bind,src=/tmp/.X11-unix,dst=/tmp/.X11-unix,readonly \ + --mount "type=bind,src=$auth,dst=/tmp/px4.xauth,readonly" \ + -e "DISPLAY=$DISPLAY" -e XAUTHORITY=/tmp/px4.xauth \ + -e QT_QPA_PLATFORM=xcb -e LIBGL_ALWAYS_SOFTWARE=1 \ + -e ROS_DOMAIN_ID=83 \ + "$IMAGE" +) +``` + +The copied cookie uses a wildcard address family so the container's hostname does not need to match the host's. +Authentication remains enabled. +Only give this cookie to trusted images: it grants access to your X session. +Do not use `xhost +`, `--privileged` or shared host IPC. +The example assumes ordinary rootful Docker; rootless or user-namespace-remapped installations may require different file ownership, not world-readable cookie permissions. + +### GPU Acceleration + +Once software rendering works, remove `-e LIBGL_ALWAYS_SOFTWARE=1` and add the appropriate options before the image name: + +| Linux GPU | Docker Options | +| -------------------------------------------------------- | --------------------------------------------------------------------------- | +| Intel/AMD with DRM render devices | `--device=/dev/dri` | +| NVIDIA with the host driver and NVIDIA Container Toolkit | `--gpus all -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics,display` | + +NVIDIA's default compute/utility capabilities alone do not provide the graphics/display libraries. +See the [NVIDIA Container Toolkit documentation](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#driver-capabilities). +GPU access remains opt-in; the images do not force software rendering globally. + +## Windows With WSLg + +Use Windows 11, an up-to-date WSL2 Ubuntu distribution, and Docker Desktop's Linux-container backend with [WSL integration](https://docs.docker.com/desktop/features/wsl/) enabled for that distribution. +Run the commands below from its Ubuntu terminal, not PowerShell. +WSLg supplies the X server; a separate Windows X server is not required. + +```bash +( + set -euo pipefail + IMAGE="${IMAGE:-px4io/px4-sitl-gazebo:latest}" + if [ "${DISPLAY:-}" != :0 ] || [ ! -S /mnt/wslg/.X11-unix/X0 ]; then + echo "WSLg display unavailable; check WSLg and Docker Desktop WSL integration." >&2 + exit 1 + fi + + docker run --rm -it --name px4-gazebo \ + --mount type=bind,src=/mnt/wslg/.X11-unix,dst=/tmp/.X11-unix,readonly \ + -e DISPLAY=:0 -e QT_QPA_PLATFORM=xcb \ + -e LIBGL_ALWAYS_SOFTWARE=1 -e ROS_DOMAIN_ID=83 \ + "$IMAGE" +) +``` + +This follows [Microsoft's X11 container interface](https://github.com/microsoft/wslg/blob/main/samples/container/Containers.md), using the resolved WSLg socket directory. +The recipe has not yet been exercised on a Windows host with these images. +Standard WSLg does not require creating an Xauthority file or changing `xhost` access rules. +Do not replace its `DISPLAY` with a Windows host IP from older X-server instructions. +Do not forward `WAYLAND_DISPLAY`: this recipe deliberately selects Qt's XCB backend. + +If Docker cannot bind the socket, confirm integration with the Ubuntu distribution and follow [WSLg display diagnostics](https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues-with-WSLg). +The software-rendering example does not require `/dev/dxg` or Windows GPU passthrough. +Windows GPU acceleration has additional driver, Mesa and Docker-backend requirements; it is not implied by Docker's support for GPU compute. + +## ROS Development Image + +Before running either platform's example, select the ROS variant: + +```bash +export IMAGE=px4io/px4-sitl-gazebo-ros2:latest +``` + +It opens a ROS-enabled shell instead of starting PX4 automatically. +In that shell, start the Agent: + +```sh +MicroXRCEAgent udp4 -p 8888 +``` + +From a second host terminal, start PX4 and the Gazebo GUI: + +```sh +docker exec -it px4-gazebo /usr/local/bin/ros2-entrypoint.sh px4-gazebo +``` + +The [ROS topic and Go-to example commands](px4_sitl_prebuilt_packages.md#go-to-example) also apply; use `px4-gazebo` as the container name. +Use distinct `ROS_DOMAIN_ID` values for independent simulations. + +## Діагностика + +While the container is running, inspect the OpenGL implementation: + +```sh +docker exec px4-gazebo glxinfo -B +``` + +Software rendering should report a renderer such as `llvmpipe`. +Ogre 2 needs a working OpenGL 3.3-class-or-newer implementation and its required extensions; upstream recommends OpenGL 4.3 or newer. +See [Gazebo's rendering troubleshooting](https://gazebosim.org/docs/harmonic/troubleshooting/). +Successfully displaying a simple X11 window is not sufficient evidence that Gazebo can render. + +If PX4 starts but the window does not appear, launch the GUI with visible diagnostics: + +```sh +docker exec px4-gazebo gz sim -g -v 4 +``` + +For XCB plugin loading failures, add `-e QT_DEBUG_PLUGINS=1` to that `docker exec` command. +The images include Qt SVG support for GUI icons and set `QT_X11_NO_MITSHM=1` because the container and host X server do not share an IPC namespace. + +## macOS And Linux Virtual Machines + +Gazebo containers on macOS are supported headlessly, using `-e HEADLESS=1`. +XQuartz 2.8.5 accepted an authenticated X11 connection in our evaluation, but its indirect OpenGL path failed to render Gazebo with both Ogre 2 and Ogre 1. +Changing the Qt backend to software did not provide a working fallback. +The limitation was rendering, not an inability to speak X11. +For SIH, use [native Hawkeye](../sim_hawkeye/index.md) instead. + +A Linux desktop VM is another way to use and evaluate the Linux GUI path from macOS. +On Apple Silicon, use an Ubuntu 24.04 ARM64 guest and ARM64 container images. +Run Docker and the Linux commands above inside the guest, initially with software rendering. +The GUI appears on the VM's desktop without passing through XQuartz. +An isolated Linux Xvfb server can also exercise socket forwarding, authorization and Mesa rendering automatically, but does not validate desktop integration or physical GPU drivers. diff --git a/docs/uk/simulation/index.md b/docs/uk/simulation/index.md index 4ebe4c3bc34..97124ef2289 100644 --- a/docs/uk/simulation/index.md +++ b/docs/uk/simulation/index.md @@ -53,7 +53,7 @@ To run PX4 SITL without setting up a build environment, [pre-built packages and | **Community/Ecosystem** | Large Gazebo community, model repos | PX4-internal | | **Faster-than-Realtime** | Так | Так | | **Runs on FC Hardware** | Ні | Yes (SYS_HITL=2) | -| **macOS Apple Silicon** | Unstable (known issues) | Works natively | +| **macOS Apple Silicon** | Works (via Homebrew) | Works natively | | **Lockstep** | Так | Так | :::tip @@ -63,7 +63,7 @@ For a detailed analysis of PX4 simulation user needs, priorities, and pain point ### Which Simulator Should I Use? - **Full-featured simulation with 3D rendering, custom worlds, camera/lidar sensors, or rich sensor ecosystems:** Use [Gazebo](../sim_gazebo_gz/index.md). Largest ecosystem, custom models and plugins, photorealistic rendering, extensive sensor library, large community. -- **Fast headless iteration, controls research, zero-dependency setup, or macOS:** Use [SIH](../sim_sih/index.md). Runs entirely inside PX4 with no external dependencies, headless by default for maximum speed, physics parameters directly tunable via `SIH_*` params. Supports ROS 2 via uXRCE-DDS. +- **Fast headless iteration, controls research, or zero-dependency setup:** Use [SIH](../sim_sih/index.md). Runs entirely inside PX4 with no external dependencies, headless by default for maximum speed, physics parameters directly tunable via `SIH_*` params. Supports ROS 2 via uXRCE-DDS. - **Hardware integration testing without propellers:** Use [SIH on flight controller hardware](../sim_sih/index.md#sih-on-flight-controller-hardware) (`SYS_HITL=2`). :::info diff --git a/docs/uk/simulation/px4_sitl_prebuilt_packages.md b/docs/uk/simulation/px4_sitl_prebuilt_packages.md index d6dedcb4c27..668e480b21e 100644 --- a/docs/uk/simulation/px4_sitl_prebuilt_packages.md +++ b/docs/uk/simulation/px4_sitl_prebuilt_packages.md @@ -86,47 +86,133 @@ Tags follow PX4 versions (e.g. `v1.17.0`). ### Запуск +On Docker Desktop (macOS/Windows), the containers automatically send MAVLink to the host using `host.docker.internal`. +Run QGroundControl, MAVSDK or Hawkeye on the host without publishing their listening ports with Docker `-p`. + ```bash # SIH -docker run --rm -it -p 14550:14550/udp px4io/px4-sitl:latest +docker run --rm -it px4io/px4-sitl:latest -# Gazebo -docker run --rm -it -p 14550:14550/udp px4io/px4-sitl-gazebo:latest +# Gazebo (headless) +docker run --rm -it -e HEADLESS=1 px4io/px4-sitl-gazebo:latest ``` +For a visible Gazebo window on Linux or Windows/WSLg, use the [Gazebo Container GUI](gazebo_container_gui.md) instructions. +On macOS, run Gazebo headlessly or use a Linux desktop VM. + Pass environment variables with `-e`: ```bash -docker run --rm -it -p 14550:14550/udp \ +docker run --rm -it \ -e PX4_SIM_MODEL=sihsim_airplane \ px4io/px4-sitl:latest ``` -The quick-start command above only exposes the QGroundControl port. -To use MAVSDK, uXRCE-DDS (ROS 2), or MAVSim Viewer, expose the additional ports: +The default destination ports are: -```bash -docker run --rm -it \ - -p 14550:14550/udp \ - -p 14540:14540/udp \ - -p 8888:8888/udp \ - -p 19410:19410/udp \ - px4io/px4-sitl:latest -``` +| Порт | Протокол | Used by | +| ----- | -------- | ---------------------------------------------------- | +| 14550 | UDP | QGroundControl | +| 14540 | UDP | MAVSDK / offboard API | +| 8888 | UDP | uXRCE-DDS agent (ROS 2) | +| 19410 | UDP | [Hawkeye](../sim_hawkeye/index.md) SIH visualisation | -| Порт | Протокол | Used by | -| ----- | -------- | ---------------------------------------------- | -| 14550 | UDP | QGroundControl | -| 14540 | UDP | MAVSDK / offboard API | -| 8888 | UDP | uXRCE-DDS agent (ROS 2) | -| 19410 | UDP | SIH display (MAVSim Viewer) | - -On Linux, you can skip individual port flags and use `--network host` instead: +On Linux, add `--network host`: ```bash docker run --rm -it --network host px4io/px4-sitl:latest ``` +Alternatively, use bridged networking with `--add-host=host.docker.internal:host-gateway`. +When that hostname is unavailable, PX4 retains its localhost defaults. +The runtime images also target the host for DDS; the ROS development images keep DDS inside the container. + +### Hawkeye Visualisation + +Both `px4io/px4-sitl` and `px4io/px4-sitl-ros2` automatically stream SIH state to the host on UDP 19410. +After starting PX4, launch [Hawkeye](../sim_hawkeye/index.md) on the host: + +```sh +hawkeye -udp 19410 +``` + +Use the platform-specific networking options above; no manual MAVLink stream commands or ROS bridge are needed. +Do not publish port 19410 with Docker `-p`, because Hawkeye must bind that port on the host. + +### ROS 2 Development Images + +The ROS development variants add ROS 2 Jazzy, Micro XRCE-DDS Agent v2.4.3, `px4_msgs`, and the [PX4 ROS 2 Interface Library](../ros2/px4_ros2_interface_lib.md), including its examples and development tools. +They also include PX4 source-build dependencies for SITL, without installing the NuttX toolchain. +They support `amd64` and `arm64`, with the same version tags as the runtime images. +The ROS message definitions match the packaged PX4 firmware. + +| Зображення | Симулятор | +| ---------------------------------- | -------------------------------- | +| `px4io/px4-sitl-ros2:` | SIH, without Gazebo dependencies | +| `px4io/px4-sitl-gazebo-ros2:` | Gazebo Harmonic | + +Unlike the runtime images, these open a shell with ROS and the workspace at `/opt/px4_ros2` already sourced. +PX4 and the DDS Agent are started explicitly and communicate inside the same container. + +```sh +# Terminal 1: open the development environment and start the Agent. +docker run --rm -it --name px4-ros2 \ + -e ROS_DOMAIN_ID=83 \ + -v "$PWD:/workspace" px4io/px4-sitl-ros2:latest +MicroXRCEAgent udp4 -p 8888 + +# Terminal 2: start the packaged SIH simulator. +docker exec -it px4-ros2 /usr/local/bin/ros2-entrypoint.sh px4 + +# Terminal 3: inspect the ROS topics. +docker exec -it px4-ros2 /usr/local/bin/ros2-entrypoint.sh ros2 topic list +``` + +For headless Gazebo, use `px4io/px4-sitl-gazebo-ros2` and replace `px4` with `env HEADLESS=1 px4-gazebo`. +For a visible window, configure the container's display using [Gazebo Container GUI](gazebo_container_gui.md#ros-development-image) and leave `HEADLESS` unset. +Host ROS nodes require additional DDS networking configuration; the example keeps ROS, the Agent and PX4 together and does not require host networking. + +When testing modified PX4 firmware, rebuild the ROS workspace against its message definitions rather than using the bundled library. +Use `--entrypoint /bin/bash` and source `/opt/ros/jazzy/setup.bash` to start without the bundled workspace. +For source builds and selecting an interface-library commit, see [Testing A PX4 Checkout With ROS](../dev_setup/sitl_container_builds.md#testing-a-px4-checkout-with-ros). +The standalone `ghcr.io/px4/px4-dev-ros2` toolchain provides Ubuntu 22.04/ROS Humble (`main-humble`) and Ubuntu 24.04/ROS Jazzy (`main-jazzy`) variants for `amd64` and `arm64`, without bundled source checkouts, firmware or a compiled workspace. +It is also available on Docker Hub as `px4io/px4-dev-ros2`, with matching distro-qualified tags in both registries. +Release tags retain the Git tag and ROS suffix, for example `v1.18.0-humble` and `v1.18.0-jazzy`; release publication does not move the manually published `main-*` tags. +Humble support is limited to this standalone toolchain; the packaged SIH/Gazebo ROS images above remain Jazzy-only. +ROS integration CI uses this toolchain, builds PX4 from the pull request, and regenerates messages from that checkout. + +#### Go-To Example + +With the Agent and PX4 running as above, start the bundled example from a host terminal: + +```sh +docker exec -it px4-ros2 /usr/local/bin/ros2-entrypoint.sh \ + ros2 run example_mode_goto_cpp example_mode_goto +``` + +Wait for the example to register and for PX4 to report `Ready for takeoff!`. +At the PX4 `pxh>` prompt, start a simulated take-off: + +```text +commander takeoff +``` + +Once the vehicle is hovering, activate the example: + +```text +commander mode ext1 +``` + +With only this example registered, `ext1` selects `Go-to Example`, which flies a triangular path. +Take off before selecting it: the example prevents arming while its mode is active. +Hawkeye can visualise this flight without changing the ROS setup. + +To land, enter `commander mode auto:land` at the PX4 prompt. +To stop the container, run `docker stop px4-ros2` from the host. +Use a different `ROS_DOMAIN_ID` for each independent ROS simulation to avoid cross-talk. + +For local builds, publishing, cache behaviour and SBOMs, see [Building SITL Containers](../dev_setup/sitl_container_builds.md). + ## Налаштування These options apply to both `.deb` packages and containers. @@ -143,7 +229,7 @@ SIH: PX4_SIM_MODEL=sihsim_airplane px4 # Container -docker run --rm -it -p 14550:14550/udp px4io/px4-sitl:latest -e PX4_SIM_MODEL=sihsim_airplane +docker run --rm -it -e PX4_SIM_MODEL=sihsim_airplane px4io/px4-sitl:latest ``` Gazebo: @@ -153,7 +239,7 @@ Gazebo: PX4_SIM_MODEL=gz_x500 px4-gazebo # Container -docker run --rm -it -p 14550:14550/udp px4io/px4-sitl-gazebo:latest -e PX4_SIM_MODEL=gz_x500 +docker run --rm -it -e HEADLESS=1 -e PX4_SIM_MODEL=gz_x500 px4io/px4-sitl-gazebo:latest ``` See [SIH Supported Vehicles](../sim_sih/index.md#supported-vehicle-types) and [Gazebo Vehicles](../sim_gazebo_gz/vehicles.md) for the full lists. @@ -279,7 +365,8 @@ PX4_SIM_MODEL=sihsim_quadx px4 -d ### Runtime directories (created on first run, per user) ```sh -$XDG_DATA_HOME/px4/rootfs// # parameters, dataman, eeprom +$XDG_DATA_HOME/px4/rootfs// # filesystem root +$XDG_DATA_HOME/px4/rootfs//fs/ # storage: parameters, dataman, logs, eeprom ``` ## Building .deb Files Locally diff --git a/docs/uk/test_and_ci/integration_testing_px4_ros2_interface.md b/docs/uk/test_and_ci/integration_testing_px4_ros2_interface.md index 755507bccf3..9fafe3e44b7 100644 --- a/docs/uk/test_and_ci/integration_testing_px4_ros2_interface.md +++ b/docs/uk/test_and_ci/integration_testing_px4_ros2_interface.md @@ -7,15 +7,24 @@ This topic outlines the integration tests for the [PX4 ROS 2 Interface Library]( ## CI Testing При відкритті запиту на PX4, CI запускає тест з інтеграції до бібліотеки. +It builds the pull request's PX4 firmware and a matching ROS workspace, then runs the tests using [SIH](../sim_sih/index.md). +SIH runs the physics simulation inside PX4 and does not require Gazebo Classic or Gazebo Harmonic. ## Running Tests Locally -Тести можуть також бути виконані локально з PX4: +Follow [Testing A PX4 Checkout With ROS](../dev_setup/sitl_container_builds.md#testing-a-px4-checkout-with-ros) to build `px4_sitl_sih` and a matching ROS workspace. +Run the following commands from the PX4 repository root, inside the ROS development environment: -```sh +```bash +source /opt/px4_ros2_ci/install/setup.bash ./test/ros_test_runner.py ``` +If you used another workspace location, source its `install/setup.bash` instead. +The runner defaults to `test/ros_tests/config-sih.json` and `build/px4_sitl_sih/`, matching CI. +The SIH configuration selects the `quadx` model for all three integration suites. +SIH does not support the runner's `--gui` option. + І щоб керувати лише одним випадком: ```sh @@ -27,3 +36,17 @@ This topic outlines the integration tests for the [PX4 ROS 2 Interface Library]( ```sh ./test/ros_test_runner.py --list-cases ``` + +## Legacy Gazebo Classic Testing + +For an existing Gazebo Classic setup, select both its configuration and firmware build directory explicitly: + +```sh +./test/ros_test_runner.py \ + --config-file test/ros_tests/config.json \ + --build-dir build/px4_sitl_default/ \ + --model iris +``` + +This requires separately built Gazebo Classic plugins and matching ROS sources. +The Gazebo Harmonic containers do not provide Gazebo Classic.