diff --git a/docs/uk/SUMMARY.md b/docs/uk/SUMMARY.md index 599e127ac2f..7799a7430d0 100644 --- a/docs/uk/SUMMARY.md +++ b/docs/uk/SUMMARY.md @@ -71,7 +71,7 @@ - [Trimming Guide](config_fw/trimming_guide_fixedwing.md) - [Flying (Basics)](flying/basic_flying_fw.md) - [Режим польоту](flight_modes_fw/index.md) - - [Position Mode (FW)](flight_modes_fw/position.md) + - [Cruise Mode (FW)](flight_modes_fw/cruise.md) - [Altitude Mode (FW)](flight_modes_fw/altitude.md) - [Stabilized Mode (FW)](flight_modes_fw/stabilized.md) - [Acro Mode (FW)](flight_modes_fw/acro.md) @@ -125,6 +125,7 @@ - [Flight Termination Configuration](advanced_config/flight_termination.md) - [Посібник з Першого Польоту](flying/first_flight_guidelines.md) - [Політ](flying/index.md) + - [Mode Requirements](flight_modes/mode_requirements.md) - [Місії](flying/missions.md) - [Звіт про польоти](getting_started/flight_reporting.md) - [Аналіз журналу польотів](log/flight_log_analysis.md) @@ -169,6 +170,7 @@ - [AEDROX AEDROXH7](flight_controller/aedrox_aedroxh7.md) - [AirMind MindPX](flight_controller/mindpx.md) - [AirMind MindRacer](flight_controller/mindracer.md) + - [Amovlab Flycore](flight_controller/amovlab_flycore.md) - [ARK Electronics ARKV6X](flight_controller/ark_v6x.md) - [ARK Electronics ARKV6S](flight_controller/ark_v6s.md) - [ARK FPV Flight Controller](flight_controller/ark_fpv.md) @@ -312,6 +314,7 @@ - [Актуатори](actuators/index.md) - [Розподіл приводу](config/actuators.md) + - [Motor Failure Recovery](config/motor_failure_recovery.md) - [Калібрування ESC (плати контролю двигунів)](advanced_config/esc_calibration.md) - [ESCs & Двигуни](peripherals/esc_motors.md) - [ESC Protocols](esc/esc_protocols.md) @@ -392,6 +395,7 @@ - [Конфігурація Gimbal \(Mount\)](advanced/gimbal_control.md) - [Grippers](peripherals/gripper.md) - [Servo Gripper](peripherals/gripper_servo.md) + - [Electro-Permanent Magnet (EPM)](peripherals/gripper_epm.md) - [Периферія](peripherals/index.md) - [ADSB/FLARM/UTM (уникнення трафіку)](peripherals/adsb_flarm.md) @@ -925,6 +929,7 @@ - [jMAVSim Simulation](sim_jmavsim/index.md) - [Multi-Vehicle Sim with JMAVSim](sim_jmavsim/multi_vehicle.md) - [JSBSim Simulation](sim_jsbsim/index.md) + - [PteroSim Simulation](sim_pterosim/index.md) - [RotorPy Simulation](sim_rotorpy/index.md) - [X-Plane Simulation](sim_xplane/index.md) - [Hardware Simulation](simulation/hardware.md) diff --git a/docs/uk/actuators/index.md b/docs/uk/actuators/index.md index 22a2caf0484..5e126bbdda6 100644 --- a/docs/uk/actuators/index.md +++ b/docs/uk/actuators/index.md @@ -4,6 +4,8 @@ - [Розподіл приводів](../config/actuators.md) — Налаштування виводів керуючого контролера для конкретних функцій та типів ЕСП/сервоприводів. +- [Motor Failure Recovery](../config/motor_failure_recovery.md) — How allocation is reconfigured if a motor fails. + - [ESCs & двигуни](../peripherals/esc_motors.md) — ESCs такі як[DShot](../peripherals/dshot.md) (рекомендовано) та DroneCAN. - [ESC Калібрування](../advanced_config/esc_calibration.md) — Калібрування для ЕСП зі звичайним PWM (не потрібно для ESC/сервоприводів з DShot/CAN). diff --git a/docs/uk/advanced/parameters_and_configurations.md b/docs/uk/advanced/parameters_and_configurations.md index fb064a7ca7e..2fd58a5b44f 100644 --- a/docs/uk/advanced/parameters_and_configurations.md +++ b/docs/uk/advanced/parameters_and_configurations.md @@ -13,7 +13,7 @@ This section discusses the _param_ subsystem in detail. [Системна консоль PX4](../debug/system_console.md) пропонує інструмент [param](../modules/modules_command.md#param), за допомогою якого можна встановлювати параметри, зчитувати їх значення, зберігати їх, а також експортувати й зберігати у файлах та відновлювати з них. -### Отримання та встановлення параметрів +### Getting Parameters Команда `param show` виводить усі параметри системи: @@ -42,6 +42,22 @@ param show -c Ви можете використати `param show-for-airframe`, щоб показати всі параметри, які було змінено від значень за замовчуванням лише для поточного файлу літального апарату (та значень за замовчуванням, які він імпортує). +### Setting Parameters + +Use `param set` to change a specific parameter: + +```sh +param set SYS_AUTOSTART 1103 # Load airframe 1103 on next boot if SYS_AUTOCONFIG==1 +param set FW_T_F_ALT_ERR 20 # Enable TECS fast descend if >20m above altitude setpoint +``` + +Use `param bitset` and `param bitclear` to modify individual bits of a parameter (only for `INT32`): + +```sh +param bitclear EKF2_SENS_EN 3 # Disable GPS fusion (lowest 2 bits -> 0b11), leaving other settings intact +param bitset PWM_MAIN_REV 24 # Set output range for main PWM 4 and 5 to reversed (0b11000), leaving others intact +``` + ### Параметри експорту та завантаження Ви можете зберігати будь-які параметри, які були _змінені_ (які відрізняються від параметрів за замовчуванням). diff --git a/docs/uk/advanced_features/precland.md b/docs/uk/advanced_features/precland.md index be6a28766f9..6105124ef36 100644 --- a/docs/uk/advanced_features/precland.md +++ b/docs/uk/advanced_features/precland.md @@ -111,6 +111,20 @@ commander mode auto:precland ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + + ## Налаштування програмного забезпечення ### Налаштування IR Сенсора/Бікона diff --git a/docs/uk/config/_autotune.md b/docs/uk/config/_autotune.md index 32cb059b995..a9b26476ea1 100644 --- a/docs/uk/config/_autotune.md +++ b/docs/uk/config/_autotune.md @@ -40,7 +40,7 @@ The airframe must fly well enough to handle moderate disturbances, and should be 1. Виконайте звичайний контрольний перелік безпеки перед польотом, щоб переконатися, що зона польоту чиста і має достатньо місця. -2. Take off and
hover at 1m above ground in [Altitude mode](../flight_modes_mc/altitude.md) or [Stabilized mode](../flight_modes_mc/manual_stabilized.md)
fly at cruise speed in [Position mode](../flight_modes_fw/position.md) or [Altitude mode](../flight_modes_fw/altitude.md)
. +2. Take off and
hover at 1m above ground in [Altitude mode](../flight_modes_mc/altitude.md) or [Stabilized mode](../flight_modes_mc/manual_stabilized.md)
fly at cruise speed in [Cruise mode](../flight_modes_fw/cruise.md) or [Altitude mode](../flight_modes_fw/altitude.md)
. 3. Use the RC transmitter roll stick to perform the following maneuver, tilting the vehicle just a few degrees: _roll left > roll right > center_ (The whole maneuver should take about 3 seconds). Транспортний засіб повинен стабілізуватися протягом 2 коливань. @@ -131,7 +131,7 @@ Additional notes:
-- Autotuning can also be run in [Altitude mode](../flight_modes_fw/altitude.md) or [Position mode](../flight_modes_fw/position.md). +- Autotuning can also be run in [Altitude mode](../flight_modes_fw/altitude.md) or [Cruise mode](../flight_modes_fw/cruise.md). However running the test while flying straight requires a larger safe area for tuning, and does not give a significantly better tuning result.
diff --git a/docs/uk/config/actuators.md b/docs/uk/config/actuators.md index 4485378f864..355a3d07836 100644 --- a/docs/uk/config/actuators.md +++ b/docs/uk/config/actuators.md @@ -132,7 +132,9 @@ If bidiectional motors are used, make sure to select the **Reversible** checkbox ![Reversible](../../assets/config/actuators/qgc_geometry_reversible_marked.png) -Note that you will need to also ensure that the ESC associated with bidirectional motors is configured appropriately (e.g. 3D mode enabled for DShot ESCs, which can be achieved via [DShot commands](../peripherals/dshot.md#commands)). +Note that you will also need to ensure that the ESC associated with bidirectional motors is configured appropriately. +For DShot ESC you will need to enable 3D mode using [DShot commands](../peripherals/dshot.md#commands). +For DroneCAN ESC you will need [firmware that supports reversal](../dronecan/escs.md#reversible-motors) and an appropriate configuration. ### Геометрія поверхонь керування diff --git a/docs/uk/config/motor_failure_recovery.md b/docs/uk/config/motor_failure_recovery.md new file mode 100644 index 00000000000..52b83a45269 --- /dev/null +++ b/docs/uk/config/motor_failure_recovery.md @@ -0,0 +1,108 @@ +# Motor Failure Recovery + + + +PX4 can reconfigure [control allocation (mixing)](../concept/control_allocation.md) in flight when a motor failure is detected, so that the vehicle can keep flying on the motors that are left. + +The failure action is selected with [CA_FAILURE_MODE](#CA_FAILURE_MODE). +This can be set to `0` (the default) to simply warn the user, or `1` to remove the failed motor from allocation. +Hexarotor frames provide additional recovery options, which are outlined in the following sections. + +:::warning +A vehicle flying with a failed motor has less control authority and thrust margin than a healthy one. +Fly gently and land as soon as it is safe to do so. +::: + +## Гексаротор + +### Stop or Reverse the Opposite Motor + +Modes `1` and `2` only differ on a hexarotor; on any other airframe both simply remove the failed motor. + +On a hexarotor the rotor opposite the failed one is the rotor that used to cancel its drag (yaw) torque, so what happens to it decides how much yaw authority is left: + +- Mode `1` stops it, leaving four symmetric rotors and no yaw bias to trim, but a third of the thrust is gone and the heading can still drift. +- Mode `2` keeps it in the allocation and lets it spin backwards. Driving a rotor in reverse inverts both its thrust and its drag torque, so it can still generate yaw torque. This needs an ESC that can actually reverse the motor. + +The opposite motor is taken from the configured [geometry](actuators.md#motor-geometry-multicopter): it is the counter-rotating rotor closest to the failed rotor's antipode, and it is only computed for a 6-rotor multirotor geometry. + +### Reverse Thrust Fraction + +A propeller spun backwards produces less thrust than it does forwards, and [CA_REV_THR_FRAC](#CA_REV_THR_FRAC) tells the allocator what fraction to expect (default `0.4`, i.e. 40%, which is representative of a standard multicopter propeller). +A symmetric (3D) propeller produces almost the same thrust either way, so it should be set closer to `1.0`. + +A value in the right region is best, but it is not critical: a hexarotor still recovers with `1.0` set on a propeller whose real fraction is 0.4. + +### ESC Requirements for Reversing + +Mode `2` reverses whichever motor sits opposite the one that failed, and any of the six can fail, so every motor on the vehicle has to be able to reverse (not just one of them). + +Reversing needs all of the following: + +1. Motors and ESCs that can be driven backwards. +2. Reversal enabled in the ESC configuration. + This is set in the ESC (PX4 does not set it for you). +3. [CA_FAILURE_MODE](#CA_FAILURE_MODE) = `2`. +4. For DShot ESCs only: [DSHOT_3D_ENABLE](../advanced_config/parameter_reference.md#DSHOT_3D_ENABLE) = `1`. + +Nothing else is required, in particular the motors do _not_ have to be marked as [bidirectional](actuators.md#bidirectional-motors) ([CA_R_REV](../advanced_config/parameter_reference.md#CA_R_REV)). +PX4 makes the recovery motor reversible by itself while handling the failure, and returns it to forward-only if the failure clears. + +#### DroneCAN + +Reverse is part of the protocol: PX4 sends the recovery motor a negative `RawCommand`, and an ESC configured for bidirectional operation spins it backwards. +No additional PX4 parameter is needed. +See [Reversible motors](../dronecan/escs.md#reversible-motors) in _DroneCAN ESCs_. + +#### DShot + +A reversible output is encoded using the DShot 3D split range, where neutral sits in the middle of the range +The ESC has to be running in 3D mode, which is a persistent ESC setting (see [ESC Commands](../peripherals/dshot.md#commands)), and PX4 has to be told about it with [DSHOT_3D_ENABLE](../advanced_config/parameter_reference.md#DSHOT_3D_ENABLE). +`DSHOT_3D_ENABLE` puts every motor on the matching encoding. +This has nothing to do with [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry), which is about eRPM telemetry rather than reversing a motor. + +:::warning +`DSHOT_3D_ENABLE` and the 3D setting in the ESCs must always agree, whether or not a motor has failed. +If the ESCs run in 3D mode while `DSHOT_3D_ENABLE` is `0`, the lower part of the throttle range is sent in the range those ESCs read as reverse, and the vehicle is not flyable. +::: + +#### PWM, OneShot, and Other Protocols + +These cannot reverse a motor, so [CA_FAILURE_MODE](#CA_FAILURE_MODE) has to be `1` or `0`. +With mode `2` the recovery motor would sit at around half throttle forwards instead of reversing, which is worse than stopping it. + +:::warning +PX4 does not check whether an ESC can reverse, and a reverse command sent to an ESC that is not set up for it comes out as forward thrust. +Before flying with mode `2`, confirm on the bench that each motor really does spin backwards, for example from the sign of the reported RPM. +::: + +## Failure Detection + +Recovery reacts to the motor failure flag raised by the [failure detector](safety.md#motor-failure-trigger), which is set when either: + +- an ESC stops sending telemetry, or reports a fault. + This requires [COM_ARM_CHK_ESCS](../advanced_config/parameter_reference.md#COM_ARM_CHK_ESCS) to be enabled. +- the current reported by an ESC is outside the band expected for its commanded thrust. + This requires [FD_ACT_EN](safety.md#FD_ACT_EN) to be enabled, and the [MOTFAIL\_\*](safety.md#motor-failure-trigger) thresholds to be tuned for the vehicle. + +Either path needs ESC telemetry, so recovery is only possible with telemetry-capable ESCs (such as [DroneCAN](../dronecan/escs.md) or [DShot with telemetry](../peripherals/dshot.md#esc-telemetry)). +Note that the two are gated by different parameters: an ESC that goes silent triggers recovery with `FD_ACT_EN` disabled, as long as `COM_ARM_CHK_ESCS` is enabled. + +The current-based check **latches**: once a motor is flagged it stays flagged until the vehicle disarms. +This is deliberate, because the recovery stops the failed motor, which would otherwise make it look healthy again and clear the failure. +The ESC offline/fault check does clear if the ESC starts reporting again, in which case all motors are restored to the allocation and any runtime reverse is removed. + +To exercise the whole chain you can take an ESC offline with [failure injection](../debug/failure_injection.md): `failure esc off -i `. + +## Параметри + +| Parameter | Опис | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) | What to do on a single motor failure.
`0` (default): Ignore and report failure.
`1`: Remove failed motor from allocation. Hexarotor: also stop the opposite motor.
`2`: Remove failed motor from allocation. Hexarotor: also reverse the opposite motor. | +| [CA_REV_THR_FRAC](../advanced_config/parameter_reference.md#CA_REV_THR_FRAC) | Fraction of forward thrust that the recovery motor is expected to produce in reverse (default `0.4`). Only used by mode `2`. | + +## Дивіться також + +- [Safety Configuration (Failsafes)](../config/safety.md), covering the failure detector and motor failure detection. +- [Control Allocation (Mixing)](../concept/control_allocation.md) +- [Actuator Configuration and Testing](actuators.md), covering geometry, motor order and bidirectional motors. diff --git a/docs/uk/config/safety.md b/docs/uk/config/safety.md index bcefebc86ba..c8db653ab04 100644 --- a/docs/uk/config/safety.md +++ b/docs/uk/config/safety.md @@ -80,13 +80,28 @@ You can configure both the levels and the failsafe actions at each level in QGro ![Safety - Battery (QGC)](../../assets/qgc/setup/safety/safety_battery.png) -The most common configuration is to set the values and action as above (with `Warn > Failsafe > Emergency`), and to set the [Failsafe Action](#COM_LOW_BAT_ACT) to warn at "warn level", trigger Return mode at "Failsafe level", and land immediately at "Emergency level". +You should set the failsafe levels with `Warn > Failsafe > Emergency` as shown above. +Note that PX4 will warn if the battery drops to the "Warn level" for any of action settings. + +The failsafe actions can then be set to one of: + +- `0: Warning` — Warn only. +- `2: Land mode` — Land at the "Failsafe level". +- `3: Return at critical level, land at emergency level`: (recommended) — Return mode at "Failsafe" level, Land at "Emergency level". +- `4: Return at critical level, terminate at emergency level` — Return mode at "Failsafe" level, [Flight termination](#act_term) at "Emergency level". + + ::: tip + This option may be preferred for vehicles that have a [parachute](../peripherals/parachute.md), as it enables controlled landing when there is no power at all. + + If it is not available in the setup screen, [set the parameter](../advanced_config/parameters.md) directly to [COM_LOW_BAT_ACT = 4](../advanced_config/parameter_reference.md#COM_LOW_BAT_ACT). + +::: Налаштування та вибрані параметри показані нижче. | Налаштування | Parameter | Опис | | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| Failsafe Action | [COM_LOW_BAT_ACT](../advanced_config/parameter_reference.md#COM_LOW_BAT_ACT) | Warn, Return, or Land based when capacity drops below the trigger levels. | +| Failsafe Action | [COM_LOW_BAT_ACT](../advanced_config/parameter_reference.md#COM_LOW_BAT_ACT) | Warn, Land, or Return and then Land or Terminate when capacity drops below the trigger levels. | | Battery Warn Level | [BAT_LOW_THR](../advanced_config/parameter_reference.md#BAT_LOW_THR) | Відсоткова ємність для попереджень (або інших дій). | | Battery Failsafe Level | [BAT_CRIT_THR](../advanced_config/parameter_reference.md#BAT_CRIT_THR) | Відсоткова ємність для дії Повернення (або інших дій, якщо вибрано одну дію). | | Battery Emergency Level | [BAT_EMERGEN_THR](../advanced_config/parameter_reference.md#BAT_EMERGEN_THR) | Відсоткова ємність для спрацьовування дії Land (негайно). | @@ -220,18 +235,27 @@ The relevant parameters shown below. ### Position Loss Failsafe Action -Multicopters will switch to [Altitude mode](../flight_modes_mc/altitude.md) if a height estimate is available, otherwise [Stabilized mode](../flight_modes_mc/manual_stabilized.md). +Multicopters flying in a position-dependent manual mode, such as [Position mode](../flight_modes_mc/position.md), will switch to [Altitude mode](../flight_modes_mc/altitude.md) if a height estimate is available, and otherwise [Stabilized mode](../flight_modes_mc/manual_stabilized.md). -Fixed-wing planes, and VTOLs not configured to land in hover ([NAV_FORCE_VT](../advanced_config/parameter_reference.md#NAV_FORCE_VT)), have a parameter ([FW_GPSF_LT](../advanced_config/parameter_reference.md#FW_GPSF_LT)) that defines how long they will loiter (circle with a constant roll angle ([FW_GPSF_R](../advanced_config/parameter_reference.md#FW_GPSF_R)) at the current altitude) after losing position before attempting to land. -If VTOLs have are configured to switch to hover for landing ([NAV_FORCE_VT](../advanced_config/parameter_reference.md#NAV_FORCE_VT)) then they will first transition and then descend. +If manual control is lost as well, or in autonomous modes, PX4 instead attempts _Return mode_ (needs a valid global position and home position), falling back to _Land mode_ (needs a local position estimate), and finally to [Descend mode (MC)](../flight_modes_mc/descend.md) if no position estimate is available at all. + +Fixed-wing planes flying in a position-dependent manual mode, such as [Cruise mode](../flight_modes_fw/cruise.md), will similarly switch to [Altitude mode](../flight_modes_fw/altitude.md) if a height estimate is available, and otherwise [Stabilized mode](../flight_modes_fw/stabilized.md). +If manual control is lost as well, or in autonomous modes, PX4 again attempts _Return mode_, falling back to _Land mode_, and finally to [Descend mode (FW)](../flight_modes_fw/descend.md). +In [Descend mode (FW)](../flight_modes_fw/descend.md), the vehicle first loiters — circling with a constant roll angle ([FW_GPSF_R](../advanced_config/parameter_reference.md#FW_GPSF_R)) at the current altitude — for [FW_GPSF_LT](../advanced_config/parameter_reference.md#FW_GPSF_LT) seconds, before descending. + +VTOLs follow the fixed-wing behaviour above, unless configured to land in hover ([NAV_FORCE_VT](../advanced_config/parameter_reference.md#NAV_FORCE_VT)), in which case they instead first transition to hover and then follow the multicopter behaviour. + +You can set [COM_POS_FS_ACT](#COM_POS_FS_ACT) to `Terminate` to engage [Flight termination](#act_term) instead of Descend mode. +This is is intended for unpiloted vehicles that carry a parachute. Відповідними параметрами є: -| Parameter | Опис | -| ----------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [FW_GPSF_LT](../advanced_config/parameter_reference.md#FW_GPSF_LT) | Fixed-wing only: Loiter time (waiting at current altitude for position estimation recovery before starting to descend). Установіть значення 0 для відключення. | -| [FW_GPSF_R](../advanced_config/parameter_reference.md#FW_GPSF_R) | Фіксований кут крену/кочення під час кілочення. | -| [NAV_FORCE_VT](../advanced_config/parameter_reference.md#NAV_FORCE_VT) | If true, force VTOL takeoff and landing, even in `Descend` failsafe. | +| Parameter | Опис | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [COM_POS_FS_ACT](../advanced_config/parameter_reference.md#COM_POS_FS_ACT) | Action when the failsafe would otherwise Descend. `0`: Descend if possible (default), `1`: Terminate. | +| [FW_GPSF_LT](../advanced_config/parameter_reference.md#FW_GPSF_LT) | Fixed-wing only: Loiter time (waiting at current altitude for position estimation recovery before starting to descend). Установіть значення 0 для відключення. | +| [FW_GPSF_R](../advanced_config/parameter_reference.md#FW_GPSF_R) | Фіксований кут крену/кочення під час кілочення. | +| [NAV_FORCE_VT](../advanced_config/parameter_reference.md#NAV_FORCE_VT) | If true, force VTOL takeoff and landing, even in `Descend` failsafe. | ### Position Accuracy Low Failsafe @@ -324,15 +348,15 @@ The quad-chute can also be triggered by sending a MAVLINK [MAV_CMD_DO_VTOL_TRANS Параметри, які контролюють те, коли спрацює квадро-шнур, перераховані в таблиці нижче. -| Parameter | Опис | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [COM_QC_ACT](../advanced_config/parameter_reference.md#COM_QC_ACT) | Дія чотирьох канатів після переходу на польот на багатокоптер. Can be set to: [Warning](#act_warn), [Return](#act_return), [Land](#act_land), [Hold](#act_hold). | -| [VT_FW_QC_HMAX](../advanced_config/parameter_reference.md#VT_FW_QC_HMAX) | Максимальна висота квадрокута, нижче якої не спрацьовує аварійний відпуск квадрокута. Це запобігає швидкому спуску квадрокутника на велику висоту, що може розрядити батарею (і саме це може спричинити крах). Висота є відносною до землі, дому або місцевого походження (за вподобанням, в залежності від доступності). | -| [VT_QC_ALT_LOSS](../advanced_config/parameter_reference.md#VT_QC_ALT_LOSS) | Uncommanded descent quad-chute altitude threshold.

In altitude controlled modes, such as [Hold mode](../flight_modes_fw/hold.md), [Position mode](../flight_modes_fw/position.md), [Altitude mode](../flight_modes_fw/altitude.md), or [Mission mode](../flight_modes_fw/mission.md), a vehicle should track its current "commanded" altitude setpoint. Запускається аварійний парашут у випадку, якщо транспортний засіб падає надто далеко нижче заданої точки (на величину, визначену в цьому параметрі).

Зверніть увагу, що аварійний парашут запускається лише у випадку, якщо транспортний засіб постійно втрачає висоту нижче заданої точки; він не запускається, якщо задана точка висоти зростає швидше, ніж може рухатися транспортний засіб. | -| [VT_QC_T_ALT_LOSS](../advanced_config/parameter_reference.md#VT_QC_T_ALT_LOSS) | Поріг втрати висоти для спрацьовування квадропарашута під час переходу VTOL до польоту на фіксованому крилі. Quad-chute спрацьовує, якщо транспортний засіб падає на таку висоту нижче своєї початкової висоти перед завершенням переходу. | -| [VT_FW_MIN_ALT](../advanced_config/parameter_reference.md#VT_FW_MIN_ALT) | Мінімальна висота над домашнім місцем для польотів на фіксованих крилах. Коли висота падає нижче цієї величини під час польоту на фіксованому крилі, тригерується квадрокупол. | -| [VT_FW_QC_R](../advanced_config/parameter_reference.md#VT_FW_QC_R) | Абсолютний поріг обертання для спрацьовування квадро-шнура в режимі FW. | -| [VT_FW_QC_P](../advanced_config/parameter_reference.md#VT_FW_QC_P) | Абсолютний поріг чутливості для виклику квадро-шлюзу у режимі FW. | +| Parameter | Опис | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [COM_QC_ACT](../advanced_config/parameter_reference.md#COM_QC_ACT) | Дія чотирьох канатів після переходу на польот на багатокоптер. Can be set to: [Warning](#act_warn), [Return](#act_return), [Land](#act_land), [Hold](#act_hold). | +| [VT_FW_QC_HMAX](../advanced_config/parameter_reference.md#VT_FW_QC_HMAX) | Максимальна висота квадрокута, нижче якої не спрацьовує аварійний відпуск квадрокута. Це запобігає швидкому спуску квадрокутника на велику висоту, що може розрядити батарею (і саме це може спричинити крах). Висота є відносною до землі, дому або місцевого походження (за вподобанням, в залежності від доступності). | +| [VT_QC_ALT_LOSS](../advanced_config/parameter_reference.md#VT_QC_ALT_LOSS) | Uncommanded descent quad-chute altitude threshold.

In altitude controlled modes, such as [Hold mode](../flight_modes_fw/hold.md), [Cruise mode](../flight_modes_fw/cruise.md), [Altitude mode](../flight_modes_fw/altitude.md), or [Mission mode](../flight_modes_fw/mission.md), a vehicle should track its current "commanded" altitude setpoint. Запускається аварійний парашут у випадку, якщо транспортний засіб падає надто далеко нижче заданої точки (на величину, визначену в цьому параметрі).

Зверніть увагу, що аварійний парашут запускається лише у випадку, якщо транспортний засіб постійно втрачає висоту нижче заданої точки; він не запускається, якщо задана точка висоти зростає швидше, ніж може рухатися транспортний засіб. | +| [VT_QC_T_ALT_LOSS](../advanced_config/parameter_reference.md#VT_QC_T_ALT_LOSS) | Поріг втрати висоти для спрацьовування квадропарашута під час переходу VTOL до польоту на фіксованому крилі. Quad-chute спрацьовує, якщо транспортний засіб падає на таку висоту нижче своєї початкової висоти перед завершенням переходу. | +| [VT_FW_MIN_ALT](../advanced_config/parameter_reference.md#VT_FW_MIN_ALT) | Мінімальна висота над домашнім місцем для польотів на фіксованих крилах. Коли висота падає нижче цієї величини під час польоту на фіксованому крилі, тригерується квадрокупол. | +| [VT_FW_QC_R](../advanced_config/parameter_reference.md#VT_FW_QC_R) | Абсолютний поріг обертання для спрацьовування квадро-шнура в режимі FW. | +| [VT_FW_QC_P](../advanced_config/parameter_reference.md#VT_FW_QC_P) | Абсолютний поріг чутливості для виклику квадро-шлюзу у режимі FW. | ## High Wind Failsafe @@ -390,7 +414,7 @@ If the vehicle descends more than [FD_ALT_LOSS](#FD_ALT_LOSS) meters below the s ### Motor Failure Trigger The failure detector can be configured to detect a motor failure while armed (and trigger an associated action) if the ESC current falls outside expected threshold for more than [MOTFAIL_TIME](#MOTFAIL_TIME) seconds. -Motor failures are non-latching: if the failure condition clears, the failure is cleared. +A motor flagged by this current check stays flagged until the vehicle disarms, because the reaction to a failure may stop the motor and thereby make it look healthy again. The undercurrent and overcurrent conditions are defined by: @@ -399,14 +423,17 @@ undercurrent: {esc current} < {MOTFAIL_C2T} * {motor command [0,1]} - {MOTFAIL_O overcurrent: {esc current} > {MOTFAIL_C2T} * {motor command [0,1]} + {MOTFAIL_OFF} ``` +The action on motor failure is set with [CA_FAILURE_MODE](#CA_FAILURE_MODE). +Actions depend on the vehicle type, and might include warning the user, removing failed motors from control allocation, disabling symmetrically opposite motors, and so on. +For more information see [Motor Failure Recovery](motor_failure_recovery.md). + | Parameter | Опис | | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [FD_ACT_EN](../advanced_config/parameter_reference.md#FD_ACT_EN) | Enable/disable the motor failure trigger completely. | | [MOTFAIL_C2T](../advanced_config/parameter_reference.md#MOTFAIL_C2T) | Slope between normalized motor command [0–1] and expected steady-state current (FD_ACT_MOT_C2T at 100%) (A/%). | -| [MOTFAIL_OFF](../advanced_config/parameter_reference.md#MOTFAIL_OFF) | Under/over-current detection threshold offset (A). Added to the expected current to form the upper bound. Subtracted from the expected current to form the lower bound. | -| | | +| [MOTFAIL_OFF](../advanced_config/parameter_reference.md#MOTFAIL_OFF) | Under/over-current detection threshold offset (A). Added/subtracted to the expected current to form the upper and lower bounds. | | [MOTFAIL_TIME](../advanced_config/parameter_reference.md#MOTFAIL_TIME) | Hysteresis time (s) for which the current threshold must remain exceeded before a motor failure is triggered. | -| [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) | Configure to not only warn about a motor failure but remove the first motor that detects a failure from the allocation effectiveness which turns off the motor and tries to operate the vehicle without it until disarming the next time. | +| [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) | Failure mode. See [Motor Failure Recovery](motor_failure_recovery.md). | ### External Automatic Trigger System (ATS) diff --git a/docs/uk/config_fw/position_tuning_guide_fixedwing.md b/docs/uk/config_fw/position_tuning_guide_fixedwing.md index 69e19aaa924..33bc2a3cbf2 100644 --- a/docs/uk/config_fw/position_tuning_guide_fixedwing.md +++ b/docs/uk/config_fw/position_tuning_guide_fixedwing.md @@ -74,7 +74,7 @@ Fly in stabilized mode, reduce throttle to `FW_THR_MIN` and adjust the pitch ang Specify the target climb and sink rate for autonomous missions by adjusting [FW_T_CLMB_R_SP](../advanced_config/parameter_reference.md#FW_T_CLMB_R_SP) and [FW_T_SINK_R_SP](../advanced_config/parameter_reference.md#FW_T_SINK_R_SP). Ці параметри вказують на швидкість, з якою транспортний засіб буде підніматися або сходити, щоб змінити висоту. -Furthermore, these two values define the height rate limits commanded by the user in [Altitude mode](../flight_modes_fw/altitude.md) and [Position mode](../flight_modes_fw/position.md). +Furthermore, these two values define the height rate limits commanded by the user in [Altitude mode](../flight_modes_fw/altitude.md) and [Cruise mode](../flight_modes_fw/cruise.md). ### Налаштування контролю траєкторії FW (Позиція) diff --git a/docs/uk/dronecan/ark_rtk_gps.md b/docs/uk/dronecan/ark_rtk_gps.md index 79e7cc747b8..eaacd572641 100644 --- a/docs/uk/dronecan/ark_rtk_gps.md +++ b/docs/uk/dronecan/ark_rtk_gps.md @@ -96,6 +96,8 @@ You may need to [configure the following parameters](../dronecan/index.md#qgc-ca | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [CANNODE_NODE_ID](../advanced_config/parameter_reference.md#CANNODE_NODE_ID) | CAN node ID (0 for dynamic allocation). If set to 0 (default), dynamic node allocation is used. Set to 1-125 to use a static node ID. | | [CANNODE_TERM](../advanced_config/parameter_reference.md#CANNODE_TERM) | Вбудована завершення шини CAN. Set to `1` if this is the last node on the CAN bus. | +| [GPS_UBX_BAUD1](../advanced_config/parameter_reference.md#GPS_UBX_BAUD1) | UART1 baudrate after the link is auto-detected. Board default is `921600`. | +| [GPS_UBX_BAUD2](../advanced_config/parameter_reference.md#GPS_UBX_BAUD2) | UART2 baudrate (default `230400`). | ### Setting Up Rover and Fixed Base diff --git a/docs/uk/dronecan/ark_x20_rtk_gps.md b/docs/uk/dronecan/ark_x20_rtk_gps.md index 3279ce852b4..2ef0fc224a1 100644 --- a/docs/uk/dronecan/ark_x20_rtk_gps.md +++ b/docs/uk/dronecan/ark_x20_rtk_gps.md @@ -98,6 +98,8 @@ You may need to [configure the following parameters](../dronecan/index.md#qgc-ca | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [CANNODE_NODE_ID](../advanced_config/parameter_reference.md#CANNODE_NODE_ID) | CAN node ID (0 for dynamic allocation). If set to 0 (default), dynamic node allocation is used. Set to 1-125 to use a static node ID. | | [CANNODE_TERM](../advanced_config/parameter_reference.md#CANNODE_TERM) | Вбудована завершення шини CAN. Set to `1` if this is the last node on the CAN bus. | +| [GPS_UBX_BAUD1](../advanced_config/parameter_reference.md#GPS_UBX_BAUD1) | UART1 baudrate after the link is auto-detected. Board default is `921600`. | +| [GPS_UBX_BAUD2](../advanced_config/parameter_reference.md#GPS_UBX_BAUD2) | UART2 baudrate (default `230400`). | ### Setting Up Rover and Fixed Base diff --git a/docs/uk/dronecan/escs.md b/docs/uk/dronecan/escs.md index d645e95423a..85104ab371d 100644 --- a/docs/uk/dronecan/escs.md +++ b/docs/uk/dronecan/escs.md @@ -31,3 +31,26 @@ In addition to the general setup, such as setting `UAVCAN_ENABLE` to `3`: - Select the specific CAN interface(s) used for ESC data output using the [UAVCAN_ESC_IFACE](../advanced_config/parameter_reference.md#UAVCAN_ESC_IFACE) parameter (all that all interfaces are selected by default). - Configure the [motor order and servo outputs](../config/actuators.md). + +## Reversible Motors {#reversible-motors} + + + +Motors can be reversible "on the fly" (bidirectional) if the motor hardware supports reversal, the ESC firmware is configured for 3D/bidirectional operation, and the motor is set as [bidirectional](../config/actuators.md#bidirectional-motors) in the actuator configuration. + +When configured as bidirectional, PX4 commands the motor with a _signed_ `uavcan.equipment.esc.RawCommand` value, as defined by the DroneCAN ESC message protocol: + +- **Zero:** Motor stop / neutral +- **Positive values:** Forward thrust +- **Negative values:** Reverse thrust + +Motors that are not configured as bidirectional continue to receive positive values only. + +:::tip +Verifying Operation +Check the sign of the RPM reported in the ESC telemetry to confirm that the ESC is interpreting negative commands correctly and actively spinning the motor in reverse. +::: + +Reversible motors may also be used in [Motor Failure Recovery](../config/motor_failure_recovery.md) to keep a hexarotor controllable after a single motor failure. +That case still needs ESCs configured for reversal. +However it is not necessary to set the motor as bidirectional in the actuator configuration, because PX4 makes the recovery motor reversible as it handles the failure. diff --git a/docs/uk/dronecan/index.md b/docs/uk/dronecan/index.md index 89092a7684c..a1feed41014 100644 --- a/docs/uk/dronecan/index.md +++ b/docs/uk/dronecan/index.md @@ -76,6 +76,9 @@ DroneCAN was previously known as UAVCAN v0 (or just UAVCAN). - [Avionics Anonymous Laser Altimeter UAVCAN Interface](../dronecan/avanon_laser_interface.md) - [RaccoonLab uRangefidner and Rangefinders Adapter](https://docs.raccoonlab.co/guide/rangefinder/) +- Захоплювачі + - [DroneCAN Electro-Permanent Magnet (EPM)](../peripherals/gripper_epm.md) + - Оптичний потік(Optical Flow) - [Ark Flow](ark_flow.md) - [Ark Flow MR](ark_flow_mr.md) @@ -280,6 +283,13 @@ If the rangefinder is connected via DroneCAN (whether inbuilt or separate), you - [UAVCAN_PUB_ARM](../advanced_config/parameter_reference.md#UAVCAN_PUB_ARM) ([Arming Status](https://dronecan.github.io/Specification/7._List_of_standard_data_types/#armingstatus)): Publish when using DroneCAN components that require the PX4 arming status as a precondition for use. +#### Захоплювачі + +DroneCAN grippers do not require any `UAVCAN_SUB_*`, `UAVCAN_PUB_*`, `CANNODE_SUB_*`, or `CANNODE_PUB_*` parameters. +When DroneCAN is enabled, PX4 automatically publishes [`uavcan.equipment.hardpoint.Command`](https://dronecan.github.io/Specification/7._List_of_standard_data_types/#uavcanequipmenthardpoint) messages to forward `MAV_CMD_DO_GRIPPER` commands. + +See [Electro-Permanent Magnet (EPM)](../peripherals/gripper_epm.md) for an example setup. + ### ESC & Servos [DroneCAN ESCs and servos](../dronecan/escs.md) require the [motor order and servo outputs](../config/actuators.md) to be configured. diff --git a/docs/uk/features_mc/index.md b/docs/uk/features_mc/index.md index 42466de3074..ee3ff773b46 100644 --- a/docs/uk/features_mc/index.md +++ b/docs/uk/features_mc/index.md @@ -7,3 +7,4 @@ This section lists features that are specific to (or customised for) multicopter - [Точна посадка](../advanced_features/precland.md) - [Terrain Following/Holding](../flying/terrain_following_holding.md) - [Запуск з катапульти або підкиданням](../flight_modes_mc/throw_launch.md) +- [Motor Failure Recovery](../config/motor_failure_recovery.md) diff --git a/docs/uk/flight_controller/amovlab_flycore.md b/docs/uk/flight_controller/amovlab_flycore.md new file mode 100644 index 00000000000..4c46c2b71c3 --- /dev/null +++ b/docs/uk/flight_controller/amovlab_flycore.md @@ -0,0 +1,344 @@ +# Amovlab Flycore + + + +:::warning +PX4 не розробляє цей (або будь-який інший) автопілот. +Contact the [manufacturer](https://amovlab.com/) for hardware support or compliance issues. +::: + +The Amovlab Flycore is an STM32H743-based flight controller for PX4-powered vehicles. +It integrates a UM982 GNSS module on the primary GPS interface, has dual onboard IMUs, an onboard barometer, 10 FMU PWM outputs, dual CAN, USB, three telemetry ports, an external GPS2 port, an external RC port, a standard SD card slot, and exposed buzzer and SWD pads. + +![Amovlab Flycore flight controller](../../assets/flight_controller/amovlab_flycore/amovlab_flycore_product.jpg) + +:::info +This flight controller is intended for inclusion in the [manufacturer supported](../flight_controller/autopilot_manufacturer_supported.md) board list. +::: + +## Specifications {#specifications} + +- **Processor** + - **Main FMU processor:** STM32H743 (32-bit Arm® Cortex®-M7, 480 MHz, 2 MB flash, 1 MB RAM) + - **IO processor:** None. This board does not have a PX4IO coprocessor. +- **Sensors** + - **IMU:** Bosch BMI088 (SPI), InvenSense ICM-42688P (SPI) + - **Barometer:** MS5611 (SPI) + - **GNSS:** Onboard UM982 module connected to `GPS1` + - **Magnetometer:** None fitted by default. `GPS1` and `GPS2` do not include compass I2C lines. +- **Interfaces** + - **PWM outputs:** 10 FMU outputs + - **Serial ports:** 7 + - **Telemetry ports:** 3 (`TELEM1`, `TELEM2`, `TELEM3`) + - **GPS ports:** 2 + - `GPS1`: internal connection to the onboard UM982 GNSS module + - `GPS2`: external GPS connector + - **I2C ports:** 2 external buses configured in firmware (`I2C1`, `I2C4`) + - **SPI buses:** 3 + - `SPI1`: BMI088 IMU and MS5611 barometer + - `SPI2`: ICM-42688P IMU + - `SPI4`: onboard flash + - **CAN buses:** 2 + - **USB:** Yes + - **RC input:** Yes, on the FMU `RC` port + - **Supported RC protocols:** SBUS, DSM/DSMX, CRSF, GHST, PPM + - **Analog battery inputs:** 1 voltage input and 1 current input + - **Additional analog inputs:** None exposed to users + - **Buzzer:** Exposed pads + - **SWD:** Exposed pads + - **SD card:** Standard SD card slot +- **Electrical data** + - **Power input:** XT30 connector, 15-28 V + - **Minimum input current:** 0.1 A + - **Battery voltage sensing range:** 3S-6S LiPo + - **Battery current sensing range:** 1-60 A + - **Servo/PWM output rail:** Externally powered. The board only provides PWM signal outputs. +- **Mechanical data** + - **Dimensions:** 120 mm x 55 mm x 26.3 mm + - **Weight:** 60 g + - **Mounting:** 50 mm x 115 mm hole spacing, 2.5 mm hole diameter + +## Where to Buy {#store} + +For purchasing, contact [shudajun@amovauto.com](mailto:shudajun@amovauto.com). + +## З'єднання + +The board includes the following main external connections: + +- `POWER`: XT30, 15-28 V input +- `USB` +- `TELEM1` +- `TELEM2` +- `TELEM3` +- `GPS2`: external GPS connector, without compass I2C +- `RC` +- `CAN1` +- `CAN2` +- `I2C1` +- `I2C4` +- `PWM OUT 1-10` +- Standard SD card slot +- Buzzer pads +- SWD pads +- UART8 debug console pads + +The external peripheral signal connectors use JST GH connectors with 1.25 mm pitch. +Flycore uses Pixhawk-style port names for common interfaces such as `TELEM`, `GPS`, `CAN`, `I2C`, and `RC`, but the fitted connectors and pin assignments are board-specific and are not claimed to fully comply with the DS-009 Pixhawk Connector Standard. +Use the [Pinouts](#pinouts) section as the authoritative connector definition for this board. +This does not apply to `POWER` (XT30), USB, the SD card slot, RTK antenna interfaces, or the exposed buzzer, SWD, and UART8 debug console pads. + +`GPS1` is not exposed as an external connector on the flight controller. +It is connected internally to the onboard UM982 GNSS module and does not include safety-switch pins or compass I2C lines. + +## Schematic Diagram + +![Amovlab Flycore connector layout](../../assets/flight_controller/amovlab_flycore/amovlab_flycore_pinout.jpg) + +## Схема розташування виводів + +The following pinouts use the signal names from the manufacturer interface definition. +Pin 1 starts from the right side of the connector, as shown below: + +![Amovlab Flycore pin 1 orientation](../../assets/flight_controller/amovlab_flycore/amovlab_flycore_pin1_orientation.png) + +### CAN1 Port + +| Pin | Сигнал | +| --- | -------------------------- | +| 1 | CAN_L | +| 2 | CAN_H | +| 3 | GND | +| 4 | VCC | + +### GPS2 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | RX | +| 2 | TX | +| 3 | GND | +| 4 | VCC | + +### TELEM3 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | RX | +| 2 | TX | +| 3 | GND | +| 4 | VCC | + +### I2C1 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | SDA | +| 2 | SCL | +| 3 | GND | +| 4 | VCC | + +### I2C4 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | SDA | +| 2 | SCL | +| 3 | GND | +| 4 | VCC | + +### PWM Port + +| Pin | Сигнал | +| --- | ---------------------------- | +| 1 | GND | +| 2 | BUZZER | +| 3 | FMU_CH8 | +| 4 | FMU_CH7 | +| 5 | FMU_CH6 | +| 6 | FMU_CH5 | +| 7 | FMU_CH4 | +| 8 | FMU_CH3 | +| 9 | FMU_CH2 | +| 10 | FMU_CH1 | + +### TELEM2 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | GND | +| 2 | RX | +| 3 | TX | + +### RTK COM2 Port + +| Pin | Сигнал | +| --- | ------ | +| 1 | RX | +| 2 | TX | +| 3 | GND | +| 4 | PPS | + +## Sensor and Bus Configuration + +The default Flycore PX4 port matches the hardware as shipped: + +- **Onboard sensors:** BMI088, ICM-42688P, and MS5611. +- **Onboard GNSS:** UM982 connected to `GPS1`. +- **External GPS:** `GPS2` is available for an external GPS receiver, but does not provide compass I2C lines. +- **Default firmware:** `rc.board_sensors` starts only the onboard IMUs and barometer. It does not start magnetometers or other external sensors that are not fitted by default. + +Flycore has no onboard magnetometer and its GPS connectors do not include compass I2C. +If a magnetometer is required, use a supported external magnetometer connected through `I2C1`, `I2C4`, or another compatible interface provided by the vehicle setup. + +Without a magnetometer, yaw in flight relies on GPS course when available and other estimator settings as configured in QGroundControl. +Plan missions accordingly for GPS-denied operation. + +## Power {#power} + +The flight controller can be powered from the **POWER** connector. + +Power ports: + +- `POWER`: XT30 connector, 15-28 V input, 0.1 A minimum input current + +:::warning +The PWM output ports are not powered by the POWER port. +The output rail must be [separately powered](../peripherals/pwm_escs_and_servo.md) if it needs to power servos or other hardware. +This is generally true for VTOL and fixed-wing vehicles, but not necessarily true for multicopters. +::: + +The battery voltage sensing range is 3S-6S LiPo. + +The battery current sensing range is 1-60 A. + +PX4 configures analog battery monitoring using `BAT1_V_DIV=10.89` and `BAT1_A_PER_V=36.367515152` by default. +The board only provides PWM signal outputs; provide external rail power before connecting servos or other payloads that need power from the output rail. + +For battery and power module configuration see [Battery and Power Module Setup](../config/battery.md). + +## Налаштування послідовного порту + +| UART | Пристрій | Порт | Flow Control | +| ------ | ---------- | --------------- | :----------: | +| USART2 | /dev/ttyS0 | `TELEM1` | Так | +| USART3 | /dev/ttyS1 | `TELEM2` | Ні | +| UART4 | /dev/ttyS2 | `GPS1` | Ні | +| UART5 | /dev/ttyS3 | `TELEM3` | Ні | +| USART6 | /dev/ttyS4 | `RC` | Ні | +| UART7 | /dev/ttyS5 | `GPS2` | Ні | +| UART8 | /dev/ttyS6 | `Debug Console` | Ні | + +`GPS1` is used by the onboard UM982 GNSS module. +`GPS2` is the external GPS port. +The debug console is exposed on UART8 pads; no connector is fitted by default. The UART8 pad pinout is board-specific. + +## Radio Control {#radio_control} + +Для того щоб керувати транспортним засобом _вручну_, потрібна система радіоуправління (RC) (PX4 не потребує системи радіоуправління для автономних режимів польоту). + +Вам потрібно [вибрати сумісний передавач/приймач](../getting_started/rc_transmitter_receiver.md) і _зв'язати_ їх таким чином, щоб вони взаємодіяли (ознайомтеся з інструкціями, що додаються до вашого конкретного передавача/приймача). + +The RC port is connected to the FMU, not to a PX4IO coprocessor. + +The `RC` port supports SBUS, DSM/DSMX, CRSF, GHST, and PPM receivers. +The board configuration enables PX4 RC input and maps the RC serial port to `/dev/ttyS4`. + +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. +For more information, see [RC receivers](../getting_started/rc_transmitter_receiver.md). + +## GPS & Compass {#gps_compass} + +PX4 supports GPS modules connected to the GPS port(s) listed below. +GPS modules 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 GPS ports are: + +- `GPS1` (FMU): Internal connection to the onboard UM982 GNSS module. This is not exposed as an external connector and does not include safety-switch pins or compass I2C lines. +- `GPS2` (FMU): External GPS connector. This port does not include compass I2C lines. + +Flycore has no onboard magnetometer. +The `GPS1` and `GPS2` interfaces do not provide compass I2C, so a GPS/compass module connected to `GPS2` will only use the GPS serial interface unless the compass is connected through another compatible external interface. + +## Telemetry Radios (Optional) {#telemetry} + +[Телеметричні радіостанції](../telemetry/index.md) можуть використовуватися для зв'язку та управління транспортним засобом у польоті з наземної станції (наприклад, ви можете направляти БПЛА до певної позиції або завантажувати нове завдання). + +The vehicle-based radio should be connected to a TELEM port — **TELEM1**, **TELEM2**, or **TELEM3**. +If connected to **TELEM1**, no further configuration is required. +Інша радіостанція підключається до вашого комп'ютера або мобільного пристрою наземної станції (зазвичай за допомогою USB). + +## PWM Outputs {#pwm_outputs} + +This flight controller supports up to 10 FMU PWM outputs (`MAIN`). + +Outputs 1-7 support [DShot](../peripherals/dshot.md) and [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry). + +Outputs 8-10 do not support DShot. + +The 10 outputs are split into 3 groups: + +- Outputs 1-4 are in group 1, using Timer 1. +- Outputs 5-7 are in group 2, using Timer 3. +- Outputs 8-10 are in group 3, using Timer 4. + +All outputs within the same group must use the same output protocol and rate. + +## SD-карта + +This board has a standard SD card slot. + +## Збірка прошивки + +To [build PX4](../dev_setup/building_px4.md) for this target: + +```sh +make amovlab_flycore_default +``` + +Build and upload via USB: + +```sh +make amovlab_flycore_default upload +``` + +Build the bootloader: + +```sh +make amovlab_flycore_bootloader +``` + +## Bootloader / Board ID + +- **Board ID:** 1218 (`boards/amovlab/flycore/firmware.prototype`) +- **Bootloader USB product string:** `PX4 BL AMOV FLYCORE` + +## Default Airframe + +For hardware type `FLYCORE000000`, `rc.board_defaults` sets `SYS_AUTOSTART` to **4014** (generic multicopter airframe class). + +Adjust the airframe in QGroundControl to match your vehicle. + +Amovlab recommends this flight controller for the Amovlab SU17 platform. + +## Відладочний порт + +The PX4 system console is exposed on UART8 pads. +No connector is fitted by default. + +The UART8 pad pinout is board-specific and does not use a standard fitted connector. + +## Підтримувані платформи / Конструкції + +The Flycore can be used with airframes supported by the selected PX4 configuration, including multicopters and other vehicles that match the available PWM, CAN, serial, and sensor interfaces. + +Amovlab recommends Flycore for the Amovlab SU17 platform. + +## Maintenance + +- **Vendor:** Amovlab +- **PX4 board target:** `amovlab_flycore_default` +- **PX4 hardware architecture:** `AMOVLAB_FLYCORE` +- **PX4 hardware type:** `FLYCORE000000` +- **Hardware version/revision:** `0x000` / `0x000` diff --git a/docs/uk/flight_controller/autopilot_manufacturer_supported.md b/docs/uk/flight_controller/autopilot_manufacturer_supported.md index 4452b550dca..3f67f426ecd 100644 --- a/docs/uk/flight_controller/autopilot_manufacturer_supported.md +++ b/docs/uk/flight_controller/autopilot_manufacturer_supported.md @@ -21,6 +21,7 @@ This category includes boards that are not fully compliant with the pixhawk stan - [AEDROX AEDROXH7](../flight_controller/aedrox_aedroxh7.md) - [AirMind MindPX](../flight_controller/mindpx.md) - [AirMind MindRacer](../flight_controller/mindracer.md) +- [Amovlab Flycore](../flight_controller/amovlab_flycore.md) - [ARK Electronics ARKV6X](../flight_controller/ark_v6x.md) (and [ARK Electronics Pixhawk Autopilot Bus Carrier](../flight_controller/ark_pab.md)) - [ARK Electronics ARKV6S](../flight_controller/ark_v6s.md) - [ARK FPV Flight Controller](../flight_controller/ark_fpv.md) diff --git a/docs/uk/flight_modes/mode_requirements.md b/docs/uk/flight_modes/mode_requirements.md new file mode 100644 index 00000000000..8366e0db957 --- /dev/null +++ b/docs/uk/flight_modes/mode_requirements.md @@ -0,0 +1,294 @@ +# Mode Requirements + +:::info +This documentation was auto-generated from the source code (see [docs/scripts/get_mode_requirements](https://github.com/PX4/PX4-Autopilot/tree/main/docs/scripts/get_mode_requirements)). +::: + +Mode requirements define the set of conditions that must be met in order to arm in a particular flight mode, or to switch to the mode if it is already armed. + +Requirements are defined for internal modes in [mode_requirements.cpp](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/commander/ModeUtil/mode_requirements.cpp), and for ROS 2 external modes in [requirement_flags.hpp](https://github.com/Auterion/px4-ros2-interface-lib/blob/main/px4_ros2_cpp/include/px4_ros2/common/requirement_flags.hpp) (Github `Auterion/px4-ros2-interface-lib` repository). +The mode requirements are the same in both cases. + +The following sections provide an overview of the requirements and what modes they are used in. + +## Requirements Definitions + +| Requirement | Example | +| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `mode_req_angular_velocity` | Angular velocity (gyroscope) | +| `mode_req_attitude` | Attitude/pose (IMU, or theoretically a motion capture system) | +| `mode_req_local_position` | Position relative to EKF2 origin ('0') point (GNSS, VIO, mocap) | +| `mode_req_local_position_relaxed` | Position relative to EKF2 origin ('0') point but accepts poor accuracy (Optical flow)

Typically optical flow. You set zero when you take off and just integrate up the flow. So the absolute position can be very inaccurate but better than nothing. Useful to not drift away quickly and roughly know where you are. | +| `mode_req_global_position` | Position measurement updates in a global coordinate frame (GNSS, or local position and global reference to EKF 0) | +| `mode_req_global_position_relaxed` | Position measurement updates in a global coordinate frame but accepts poor accuracy

Local position and global reference to EKF2 origin | +| `mode_req_local_alt` | Local altitude relative to EKF2 origin ('0') position (Barometer corrected by GNSS altitude over time, distance sensor)

Usually not the distance sensor because if the ground shifts then the coordinate frame would shift with it (range aid problem). | +| `mode_req_mission` | Valid mission in autopilot's storage (Mission mode only requirement)

can be from last time no need to upload fresh | +| `mode_req_offboard_signal` | Offboard heartbeat

MAVLink messages SET_ATTITUDE_TARGET or SET_POSITION_TARGET_LOCAL_NED or SET_POSITION_TARGET_GLOBAL_INT not timing out. Offboard mode specific requirement. | +| `mode_req_home_position` | Global home reference must be set

Specific requirement for Return mode | +| `mode_req_wind_and_flight_time_compliance` | Safety compliance limits on wind and flight time.

Blocks arming or switching into the mode when the estimated wind speed exceeds `COM_WIND_MAX` (if `COM_WIND_MAX_ACT` is set to an action stronger than a warning), or when the flight time exceeds `COM_FLT_TIME_MAX`. Both limits are disabled by default. Modes commanded by a failsafe are exempt (see also `COM_WIND_WARN`). | +| `mode_req_prevent_arming` | Mode prevents arming

The vehicle cannot be armed while this mode is selected. Set for modes such as Land, Orbit, and Return that you can't take off in (they can only be entered in flight). | +| `mode_req_manual_control` | Requires stick input

Manual control can come from an RC system (RC driver -> channel mapping/calibration -> [`manual_control_input`](../msg_docs/ManualControlSetpoint.md)) or from a joystick (MAVLink [MANUAL_CONTROL](https://mavlink.io/en/messages/common.html#MANUAL_CONTROL) message -> `manual_control_input`). A selector configured with [COM_RC_IN_MODE](../advanced_config/parameter_reference.md#COM_RC_IN_MODE) chooses which source is used and publishes it as `manual_control_setpoint`. The requirement is met while the selected source has not timed out. | +| `mode_req_other` | Others requirement.

This is used by external modes. It is intended to specify additional requirements not covered by the existing flags | + +### Naming Conventions + +In general requirement flag names are abstracted from specific sensors. +This is done because particular requirements can often be met by several sensors. +For example, GNSS is the most common source of global position, but it isn't the only one. + +The requirements include frame and accuracy information hints in their names: + +- `global` means an absolute world frame, such as that provided by GNSS. +- `local` means a frame that relative to an initialization point, such as the position of an IMU on boot. +- `relaxed` means that the mode does not require or rely on accurate data: as long as sensors are providing some data the state is considered valid. + Relaxed conditions are used for modes where some sensor data is considered more important than none at all, such as when calculating position via optical flow velocity measurements. + By contrast, a position mode that is not relaxed requires reliable sensor data, and will block arming if inaccuracy is detected. + +Note that a global position requirement can be met if you have a valid _local position_, by mapping the local frame to a global position. +This can be done by setting the global position of the local origin using the MAVLink message [SET_GPS_GLOBAL_ORIGIN](https://mavlink.io/en/messages/common.html#SET_GPS_GLOBAL_ORIGIN), either directly or via a GCS (see [External Position Estimate > Enabling Auto Modes with a Local Position](../ros/external_position_estimation#enabling-auto-modes-with-a-local-position)). +Similarly, if the vehicle has `mode_req_local_position_relaxed`, then you can map to a global position in order to meet the `global_position_relaxed` requirement. +This allows PX4 automatic flight modes that require a global position to be used locally, such as Mission and Return. + +## Fixed-wing (VEHICLE_TYPE_FIXED_WING) + +### [Manual Mode](../flight_modes_fw/manual.md) (NAVIGATION_STATE_MANUAL) + +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Stabilized Mode](../flight_modes_fw/stabilized.md) (NAVIGATION_STATE_STAB) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Acro Mode](../flight_modes_fw/acro.md) (NAVIGATION_STATE_ACRO) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Altitude Mode](../flight_modes_fw/altitude.md) (NAVIGATION_STATE_ALTCTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Cruise Mode](../flight_modes_fw/cruise.md) (NAVIGATION_STATE_POSCTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Guided Course Mode](../flight_modes_fw/guided_course.md) (NAVIGATION_STATE_GUIDED_COURSE) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Hold Mode](../flight_modes_fw/hold.md) (NAVIGATION_STATE_AUTO_LOITER) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position_relaxed`](#mode_req_global_position_relaxed) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Takeoff Mode](../flight_modes_fw/takeoff.md) (NAVIGATION_STATE_AUTO_TAKEOFF) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) + +### [Descend Mode](../flight_modes_fw/descend.md) (NAVIGATION_STATE_DESCEND) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Land Mode](../flight_modes_fw/land.md) (NAVIGATION_STATE_AUTO_LAND) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Return Mode](../flight_modes_fw/return.md) (NAVIGATION_STATE_AUTO_RTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position_relaxed`](#mode_req_global_position_relaxed) +- [`mode_req_home_position`](#mode_req_home_position) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Mission Mode](../flight_modes_fw/mission.md) (NAVIGATION_STATE_AUTO_MISSION) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position_relaxed`](#mode_req_global_position_relaxed) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_mission`](#mode_req_mission) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Offboard Mode](../flight_modes_fw/offboard.md) (NAVIGATION_STATE_OFFBOARD) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_offboard_signal`](#mode_req_offboard_signal) + +### Modes Without a Dedicated Page + +The following internal navigation states have no distinct user-facing behaviour or documentation page on this frame type: + +- **NAVIGATION_STATE_ALTITUDE_CRUISE** — Behaves identically to [Altitude Mode](../flight_modes_fw/altitude.md) on fixed-wing frames — the control-mode flags are the same and there is no separate implementation. +- **NAVIGATION_STATE_POSITION_SLOW** — Behaves identically to [Position Mode](../flight_modes_fw/position.md) on fixed-wing frames — the control-mode flags are the same and there is no separate implementation. +- **NAVIGATION_STATE_ORBIT** — Not implemented for fixed-wing frames; [Hold Mode](../flight_modes_fw/hold.md) is used instead for orbiting a point. +- **NAVIGATION_STATE_AUTO_VTOL_TAKEOFF** — VTOL-specific transition state used for vertical takeoff before transitioning to forward flight; not applicable to plain fixed-wing frames. +- **NAVIGATION_STATE_AUTO_PRECLAND** — Not implemented for fixed-wing frames (precision landing requires hover capability). +- **NAVIGATION_STATE_AUTO_FOLLOW_TARGET** — Not implemented for fixed-wing frames (Follow Me is a multicopter-only flight task). +- **NAVIGATION_STATE_TERMINATION** — Internal flight-termination failsafe state. Not user-selectable; entered automatically when a failsafe action escalates to termination. + +## Multicopter (VEHICLE_TYPE_ROTARY_WING) + +### [Manual/Stabilized Mode](../flight_modes_mc/manual_stabilized.md) (NAVIGATION_STATE_MANUAL) + +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Manual/Stabilized Mode](../flight_modes_mc/manual_stabilized.md) (NAVIGATION_STATE_STAB) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Acro Mode](../flight_modes_mc/acro.md) (NAVIGATION_STATE_ACRO) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Altitude Mode](../flight_modes_mc/altitude.md) (NAVIGATION_STATE_ALTCTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Altitude Cruise Mode](../flight_modes_mc/altitude_cruise.md) (NAVIGATION_STATE_ALTITUDE_CRUISE) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Position Mode](../flight_modes_mc/position.md) (NAVIGATION_STATE_POSCTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Position Slow Mode](../flight_modes_mc/position_slow.md) (NAVIGATION_STATE_POSITION_SLOW) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_manual_control`](#mode_req_manual_control) + +### [Hold Mode](../flight_modes_mc/hold.md) (NAVIGATION_STATE_AUTO_LOITER) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position`](#mode_req_global_position) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Orbit Mode](../flight_modes_mc/orbit.md) (NAVIGATION_STATE_ORBIT) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Takeoff Mode](../flight_modes_mc/takeoff.md) (NAVIGATION_STATE_AUTO_TAKEOFF) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) + +### [Descend Mode](../flight_modes_mc/descend.md) (NAVIGATION_STATE_DESCEND) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Land Mode](../flight_modes_mc/land.md) (NAVIGATION_STATE_AUTO_LAND) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position_relaxed`](#mode_req_local_position_relaxed) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Precision Landing](../advanced_features/precland.md) (NAVIGATION_STATE_AUTO_PRECLAND) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Return Mode](../flight_modes_mc/return.md) (NAVIGATION_STATE_AUTO_RTL) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position`](#mode_req_global_position) +- [`mode_req_home_position`](#mode_req_home_position) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) + +### [Mission Mode](../flight_modes_mc/mission.md) (NAVIGATION_STATE_AUTO_MISSION) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_global_position`](#mode_req_global_position) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_mission`](#mode_req_mission) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Follow Me Mode](../flight_modes_mc/follow_me.md) (NAVIGATION_STATE_AUTO_FOLLOW_TARGET) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_local_alt`](#mode_req_local_alt) +- [`mode_req_local_position`](#mode_req_local_position) +- [`mode_req_prevent_arming`](#mode_req_prevent_arming) +- [`mode_req_wind_and_flight_time_compliance`](#mode_req_wind_and_flight_time_compliance) + +### [Offboard Mode](../flight_modes_mc/offboard.md) (NAVIGATION_STATE_OFFBOARD) + +- [`mode_req_angular_velocity`](#mode_req_angular_velocity) +- [`mode_req_attitude`](#mode_req_attitude) +- [`mode_req_offboard_signal`](#mode_req_offboard_signal) + +### Modes Without a Dedicated Page + +The following internal navigation states have no distinct user-facing behaviour or documentation page on this frame type: + +- **NAVIGATION_STATE_GUIDED_COURSE** — Not implemented for multicopters (course-hold is a fixed-wing-only flight task). +- **NAVIGATION_STATE_AUTO_VTOL_TAKEOFF** — VTOL-specific transition state used for vertical takeoff before transitioning to forward flight; not applicable to plain multicopter frames. +- **NAVIGATION_STATE_TERMINATION** — Internal flight-termination failsafe state. Not user-selectable; entered automatically when a failsafe action escalates to termination. diff --git a/docs/uk/flight_modes/offboard.md b/docs/uk/flight_modes/offboard.md index ba38ae69de7..1e89abdee39 100644 --- a/docs/uk/flight_modes/offboard.md +++ b/docs/uk/flight_modes/offboard.md @@ -17,7 +17,9 @@ A good understanding of [PX4 controller diagrams](../flight_stack/controller_dia Апарат зберігає данні про положення, швидкість, прискорення, орієнтацію, значення сили тяги, відповідно заданим значенням, наданим деяким джерелом, зовнішнім по відношенню до польотного контролера, наприклад комп’ютером. The setpoints may be provided using MAVLink (or a MAVLink API such as [MAVSDK](https://mavsdk.mavlink.io/)) or by [ROS 2](../ros2/index.md). -PX4 requires that the external controller provides a continuous "proof of life" signal by streaming any of the supported MAVLink setpoint messages or the ROS 2 [OffboardControlMode](../msg_docs/OffboardControlMode.md) message. +## Технічний підсумок + +PX4 requires that the external controller provides a continuous 2Hz "proof of life" signal, by streaming any of the supported MAVLink setpoint messages or the ROS 2 [OffboardControlMode](../msg_docs/OffboardControlMode.md) message. The stream should be active before switching to Offboard mode, and PX4 will trigger the configured Offboard-loss failsafe action ([COM_OBL_RC_ACT](../advanced_config/parameter_reference.md#COM_OBL_RC_ACT)) if proof-of-life messages are not received within the timeout configured by [COM_OF_LOSS_T](#COM_OF_LOSS_T). ::: info @@ -31,6 +33,30 @@ The stream should be active before switching to Offboard mode, and PX4 will trig ::: + + +### Mode Requirements — Fixed-Wing + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_offboard_signal`](../flight_modes/mode_requirements.md#mode_req_offboard_signal) — Offboard heartbeat + + + + + +### Mode Requirements — Multicopter + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_offboard_signal`](../flight_modes/mode_requirements.md#mode_req_offboard_signal) — Offboard heartbeat + + + ## Опис Offboard mode is used for controlling vehicle movement and attitude, by setting position, velocity, acceleration, attitude, attitude rates or thrust/torque setpoints. diff --git a/docs/uk/flight_modes/position_fw.md b/docs/uk/flight_modes/position_fw.md index e30e5234a31..30088f73fbb 100644 --- a/docs/uk/flight_modes/position_fw.md +++ b/docs/uk/flight_modes/position_fw.md @@ -1 +1 @@ - + diff --git a/docs/uk/flight_modes_fw/acro.md b/docs/uk/flight_modes_fw/acro.md index 8eb78d4a141..2b0c43eccfb 100644 --- a/docs/uk/flight_modes_fw/acro.md +++ b/docs/uk/flight_modes_fw/acro.md @@ -16,6 +16,17 @@ _Acro mode_ is the manual mode for performing acrobatic maneuvers e.g. rolls, fl Вхідні сигнали стіків крену-тангажу перетворюються на команди кутової швидкості, які стабілізуються автопілотом. Передача дроселя здійснюється безпосередньо для керування розподілом. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри | Parameter | Опис | diff --git a/docs/uk/flight_modes_fw/altitude.md b/docs/uk/flight_modes_fw/altitude.md index 4eaf2d22664..5f2d29e4884 100644 --- a/docs/uk/flight_modes_fw/altitude.md +++ b/docs/uk/flight_modes_fw/altitude.md @@ -8,8 +8,8 @@ The _Altitude_ flight mode is the safest and easiest non-GPS manual mode. Швидкість активно контролюється, якщо встановлений датчик швидкості. :::tip -_Altitude mode_ is similar to [Position mode](../flight_modes_fw/position.md) in that both modes level the vehicle and maintain altitude when sticks are released. -Різниця полягає в тому, що режим позиції утримує фактичний шлях польоту (курс) стабільним проти вітру, тоді як висота лише утримує напрямок. +_Altitude mode_ is similar to [Cruise mode](../flight_modes_fw/cruise.md) in that both modes level the vehicle and maintain altitude when sticks are released. +The difference is that Cruise mode holds the actual flight path (course) steady against wind, while altitude just holds the heading. ::: The vehicle performs a [coordinated turn](https://en.wikipedia.org/wiki/Coordinated_flight) if the roll sticks are non-zero, while the pitch stick controls the rate of ascent/descent. @@ -43,6 +43,19 @@ Altitude mode like [Stabilized mode](../flight_modes_fw/stabilized.md) but with - Потрібен ручний ввід управління (наприклад, за допомогою пульта дистанційного керування, джойстика). - Необхідне джерело вимірювання висоти (зазвичай барометр або GPS) + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри Режим впливає на наступні параметри: diff --git a/docs/uk/flight_modes_fw/cruise.md b/docs/uk/flight_modes_fw/cruise.md new file mode 100644 index 00000000000..97948eeb56b --- /dev/null +++ b/docs/uk/flight_modes_fw/cruise.md @@ -0,0 +1,82 @@ +# Cruise Mode (Fixed-Wing) + +   + +_Cruise mode_ (also shown as _Position_ in some tools) is the easiest and safest manual mode. +It is supported on vehicles that have a position estimate (e.g. GPS). +Це полегшує пілотам контроль висоти транспортного засобу, і зокрема досягати і підтримувати фіксовану висоту. +The mode will hold the vehicle's course against wind. +Швидкість активно контролюється, якщо встановлений датчик швидкості. + +The vehicle performs a [coordinated turn](https://en.wikipedia.org/wiki/Coordinated_flight) if the roll sticks are non-zero, while the pitch stick controls the rate of ascent/descent. +Засувка визначає швидкість повітря — при 50% засувки літак буде утримувати свою поточну висоту з заданою крейсерською швидкістю. + +When all sticks are released/centered (no roll, pitch, yaw, and ~50% throttle) the aircraft will return to straight, level flight, and keep its current altitude and flight path irrespective of wind. +This makes it easy to recover from any problems when flying. +Roll and pitch are angle-controlled (so it is impossible to roll over or loop the vehicle). + +Стік повороту може бути використана для збільшення/зменшення кута приводу автомобіля на поворотах. +Якщо контролер фіксований у центрі, то він самостійно здійснює координацію повороту, що означає, що він застосовує необхідну швидкість розвороту для поточного кута крену, щоб виконати плавний поворот. +The diagram below shows the mode behaviour visually (for a [mode 2 transmitter](../getting_started/rc_transmitter_receiver.md#transmitter_modes)). + +![FW Cruise Mode](../../assets/flight_modes/position_fw.png) + +## Технічний опис + +Cruise mode is like [Altitude mode](../flight_modes_fw/altitude.md) but with course stabilization. +Швидкість також стабілізується, якщо встановлений датчик швидкості. + +- Центровані вхідні показники крену/тангажу/рискання (в межах дедбенду): + - Autopilot levels vehicle and maintains altitude, airspeed and course over ground. +- Зовнішній центр: + - Стік регулює висота польоту. + - Резервний стік керує швидкістю літального апарату, якщо підключений датчик швидкості. Without an airspeed sensor the vehicle will fly level at trim throttle ([FW_THR_TRIM](../advanced_config/parameter_reference.md#FW_THR_TRIM)), increasing or decreasing throttle as needed to climb or descend. + - Стік керування використовує кут крена. Autopilot will maintain [coordinated flight](https://en.wikipedia.org/wiki/Coordinated_flight). + - Стік крену додає додатковий значення швидкості рискання (додається до розрахованого автопілотом для підтримки координованого польоту). + Може бути використаний для ручної зміни кута рискання безпілотного засобу. +- Потрібен ручний ввід управління (наприклад, за допомогою пульта дистанційного керування, джойстика). +- Необхідне джерело вимірювання висоти (зазвичай барометр або GPS) + + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + +## Параметри + +Режим впливає на наступні параметри: + +| Parameter | Опис | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) | Мінімальна швидкість. За замовчуванням: 10 м/с. | +| [FW_AIRSPD_MAX](../advanced_config/parameter_reference.md#FW_AIRSPD_MAX) | Максимальна швидкість. За замовчуванням: 20 м/с. | +| [FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM) | Крейсерська швидкість. За замовчуванням: 15 м/с. | +| [FW_MAN_P_MAX](../advanced_config/parameter_reference.md#FW_MAN_P_MAX) | Установлення максимального кроку в режимі стабілізації кута нахилу. За замовчуванням: 45 градусів. | +| [FW_MAN_R_MAX](../advanced_config/parameter_reference.md#FW_MAN_R_MAX) | Максимальне значення крена в режимі стабілізації кута нахилу. За замовчуванням: 45 градусів. | +| [FW_T_CLMB_R_SP](../advanced_config/parameter_reference.md#FW_T_CLMB_R_SP) | Максимальна задана швидкість підйому. За замовчуванням: 3 м/с. | +| [FW_T_SINK_R_SP](../advanced_config/parameter_reference.md#FW_T_SINK_R_SP) | Максимальне значення зниження швидкості. За замовчуванням: 2 м/с. | +| [FW_PN_R_SLEW_MAX](../advanced_config/parameter_reference.md#FW_PN_R_SLEW_MAX) | Roll setpoint slew rate limit. Default: 90 °/s. | + +## MAVLink Commands + +The following commands are relevant to this mode: + +- [MAV_CMD_DO_CHANGE_SPEED](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_CHANGE_SPEED) — Sets the cruise airspeed for centred throttle stick. + + This requires an airspeed sensor. + Only the airspeed speed type is handled (`param1` must be `0`); other speed types are ignored. + At centered throttle the vehicle holds the commanded airspeed (`param2`) if a positive value is set (non-positive values are ignored). + The value is constrained between [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) and [FW_AIRSPD_MAX](../advanced_config/parameter_reference.md#FW_AIRSPD_MAX), and defaults to [FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM) if no airspeed has been commanded. + Deflecting the throttle stick scales the airspeed toward `FW_AIRSPD_MIN` (back) or `FW_AIRSPD_MAX` (forward) around this value. + The commanded airspeed resets to `FW_AIRSPD_TRIM` on every flight mode change. + +Note, other commands may be supported. diff --git a/docs/uk/flight_modes_fw/descend.md b/docs/uk/flight_modes_fw/descend.md index bc81fb01717..46721838054 100644 --- a/docs/uk/flight_modes_fw/descend.md +++ b/docs/uk/flight_modes_fw/descend.md @@ -1,7 +1,7 @@ # Descend Mode (Fixed-Wing) -_Descend_ is a [failsafe](../config/safety.md) fallback mode. -It is activated automatically by PX4 and cannot be selected by the pilot. It only appears as a status label. +_Descend_ is a [failsafe](../config/safety.md) fallback mode that is activated automatically by PX4. +The mode is published when active but cannot be selected by the pilot. The vehicle descends open-loop: it circles at a fixed bank angle ([FW_GPSF_R](../advanced_config/parameter_reference.md#FW_GPSF_R)) and descends at a fixed 0.5 m/s, but does not control its ground position, so the circle drifts with the wind. It is the last resort used when the vehicle must come down but has no valid position estimate for a controlled descent. @@ -14,21 +14,45 @@ It is the last resort used when the vehicle must come down but has no valid posi ::: -## When It Occurs +## Технічний опис -Descend is the bottom of the failsafe chain (`Hold → Return → Land → Descend`). -PX4 falls through to it whenever a failsafe needs to bring the vehicle down or hold position but the position estimate is missing, so none of the higher options can run. Наприклад: +### When It Occurs + +Descend mode is at the bottom of the failsafe chain (along with [Flight termination](../advanced_config/flight_termination.md)): + +```text +Hold → Return → Land → ( Descend | Terminate ) +``` + +:::tip +[COM_POS_FS_ACT](../advanced_config/parameter_reference.md#COM_POS_FS_ACT) selects whether `Descend` or `Terminate` is used as the failsafe. +::: + +PX4 falls through to Descend mode whenever a failsafe needs to bring the vehicle down or hold position but the position estimate is missing, so none of the higher options can run. +Наприклад: - Losing the position estimate while landing, e.g. GNSS and airspeed sensors fail during [Land](../flight_modes_fw/land.md): the vehicle keeps descending, but now open-loop as _Descend_. - Losing the position estimate in [Hold](../flight_modes_fw/hold.md), [Mission](../flight_modes_fw/mission.md) or [Return](../flight_modes_fw/return.md): with no position to hold, fly to, or return with, the failsafe escalates down to _Descend_. - A Return or Land failsafe (from manual control loss, GCS/data link loss, low battery, geofence breach, …) triggered while no valid position estimate is available: Return and Land can't run, so it degrades to _Descend_. -## Exiting Descend +### Exiting Descend -Descend ends when either: +Descend ends when either the: -- the failsafe condition is resolved (e.g. the position estimate recovers), and the vehicle returns to its previous mode; or -- the pilot takes over by switching to a manual mode ([Position](../flight_modes_fw/position.md), [Altitude](../flight_modes_fw/altitude.md) or [Stabilized](../flight_modes_fw/stabilized.md)). +- failsafe condition is resolved (e.g. the position estimate recovers), and the vehicle returns to its previous mode; or +- pilot takes over by switching to a manual mode ([Cruise](../flight_modes_fw/cruise.md), [Altitude](../flight_modes_fw/altitude.md) or [Stabilized](../flight_modes_fw/stabilized.md)). + + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + ## Дивіться також diff --git a/docs/uk/flight_modes_fw/guided_course.md b/docs/uk/flight_modes_fw/guided_course.md index b8a865bb638..4d844ed30b2 100644 --- a/docs/uk/flight_modes_fw/guided_course.md +++ b/docs/uk/flight_modes_fw/guided_course.md @@ -3,7 +3,7 @@ _Guided Course mode_ maintains a constant ground track (course), altitude, and airspeed without any manual stick input. -The operator controls the vehicle entirely using [GCS commands](#supported-commands), making it the guided equivalent of [Position mode](../flight_modes_fw/position.md). +The operator controls the vehicle entirely using [GCS commands](#supported-commands), making it the guided equivalent of [Cruise mode](../flight_modes_fw/cruise.md). :::tip This mode is suited to situations where an operator wants to guide a fixed-wing vehicle from a GCS without manual control. @@ -47,7 +47,21 @@ The navigator mode (`course.cpp`) sets a position setpoint with `course` (ground The fixed-wing mode manager (`FixedWingModeManager`) detects the finite `course` field and bypasses normal waypoint sequencing, calling `navigateBearing()` from the directional guidance library to compute lateral acceleration and course setpoints. Longitudinal control targets the altitude and airspeed from the setpoint. -## Failsafe Behaviour + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + +### Failsafe Behaviour Guided Course is classified as an `AUTO` mode for failsafe purposes. The following failsafe exception parameters apply: diff --git a/docs/uk/flight_modes_fw/hold.md b/docs/uk/flight_modes_fw/hold.md index e36dc593f61..1d57703718d 100644 --- a/docs/uk/flight_modes_fw/hold.md +++ b/docs/uk/flight_modes_fw/hold.md @@ -94,6 +94,21 @@ Any remaining altitude error is then removed by climbing or sinking once the veh The ramp is (re)started whenever the target altitude changes; a reposition that keeps the same altitude does not change the vehicle's altitude. ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_global_position_relaxed) — Position measurement updates in a global coordinate frame but accepts poor accuracy +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ## Параметри Поведінку режиму утримання можна налаштувати за допомогою наведених нижче параметрів. diff --git a/docs/uk/flight_modes_fw/index.md b/docs/uk/flight_modes_fw/index.md index 65ac51e0f03..ed9b12d0392 100644 --- a/docs/uk/flight_modes_fw/index.md +++ b/docs/uk/flight_modes_fw/index.md @@ -11,12 +11,12 @@ Manual-Easy: -- [Режим позиції](../flight_modes_fw/position.md) — Найпростіший і найбезпечніший ручний режим для транспортних засобів, які мають фіксацію позиції/GPS. +- [Cruise mode](../flight_modes_fw/cruise.md) — Easiest and safest manual mode for vehicles that have a position fix/GPS. Транспортний засіб виконує [координований поворот](https://en.wikipedia.org/wiki/Coordinated_flight), якщо руль не є нульовим, тоді як pitch-стік контролює швидкість підйому/спуску. Якщо стіки відпущені, транспортний засіб вирівнюється і тримає прямий шлях польоту, навіть проти вітру. Швидкість активно контролюється, якщо встановлений датчик швидкості. - [Режим висоти](../flight_modes_fw/altitude.md) — Найпростіший і найбезпечніший _непідтримуваний GPS_ ручний режим. - Єдина відмінність порівняно з _Режимом положення_ полягає в тому, що пілот завжди безпосередньо керує кутом кочення літака і немає автоматичного утримання курсу. + The only difference compared to _Cruise mode_ is that the pilot always directly controls the roll angle of the plane and there is no automatic course holding. - Altitude Cruise mode — It behaves exactly like _Altitude mode_, with the only difference being that the manual control failsafe can be disabled. This is done by setting the corresponding flag in [COM_RCL_EXCEPT](../advanced_config/parameter_reference.md#COM_RCL_EXCEPT). In that case the current altitude, airspeed and heading (by leveling out the roll angle) are kept until the manual control link is regained or the mode is exited. It is highly recommended to only disable the manual control loss failsafe for this mode if there is a stable data link connection to the vehicle at all times, or to enable the data link loss failsafe through [NAV_DLL_ACT](../advanced_config/parameter_reference.md#NAV_DLL_ACT). - [Режим стабілізації](../flight_modes_fw/stabilized.md) — Пілот напряму керує кутом крену та тангажу, і апарат зберігає задану точку до тих пір, поки стіки знову не будуть переміщені. diff --git a/docs/uk/flight_modes_fw/land.md b/docs/uk/flight_modes_fw/land.md index c782e0547f0..154ff34008a 100644 --- a/docs/uk/flight_modes_fw/land.md +++ b/docs/uk/flight_modes_fw/land.md @@ -37,6 +37,20 @@ The vehicle will flare if configured to do so (see [Flaring](../flight_modes_fw/ [Manual nudging](../flight_modes_fw/mission.md#automatic-abort) and [automatic land abort](../flight_modes_fw/mission.md#nudging) are not available in land mode. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + + ### Параметри Поведінку режиму приземлення можна налаштувати за допомогою наведених нижче параметрів. diff --git a/docs/uk/flight_modes_fw/manual.md b/docs/uk/flight_modes_fw/manual.md index 4b2b9908e6f..cfe6bada93e 100644 --- a/docs/uk/flight_modes_fw/manual.md +++ b/docs/uk/flight_modes_fw/manual.md @@ -20,6 +20,16 @@ Unlike [Acro Mode](../flight_modes_fw/acro.md), if the roll-pitch stick is cente Це єдиний режим, що перевизначає FMU (команди відправляються через копроцесор безпеки). Він забезпечує механізм безпечності, який дозволяє повний контроль газового засуву, елеватора, елеронів та руля через RC в разі виникнення несправності програмного забезпечення FMU. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри | Parameter | Опис | diff --git a/docs/uk/flight_modes_fw/mission.md b/docs/uk/flight_modes_fw/mission.md index e73fef7599e..b06d11cffaf 100644 --- a/docs/uk/flight_modes_fw/mission.md +++ b/docs/uk/flight_modes_fw/mission.md @@ -8,12 +8,28 @@ _Режим місії_ змушує транспортний засіб вик ::: info - Цей режим потребує глобальної оцінки 3D-позиції (з GPS або виведеної з [локальної позиції](../ros/external_position_estimation.md#enabling-auto-modes-with-a-local-position)). -- Транспортний засіб повинен бути озброєний перед тим, як цей режим може бути активований. +- The mission will start once the vehicle is armed. - Цей режим є автоматичним - для керування автомобілем не потрібно втручання користувача. -- Перемикачі керування RC можуть використовуватися для зміни режимів польоту на будь-якому транспортному засобі. +- Sticks/switches can be used to switch out of mission mode on any vehicle. ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_global_position_relaxed) — Position measurement updates in a global coordinate frame but accepts poor accuracy +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_mission`](../flight_modes/mode_requirements.md#mode_req_mission) — Valid mission in autopilot's storage +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ## Опис Місії зазвичай створюються в земній контрольній станції (наприклад, [QGroundControl](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/plan_view/plan_view.html)) та завантажуються перед запуском. @@ -57,7 +73,7 @@ _Режим місії_ змушує транспортний засіб вик ::: -Місії можна призупинити, переключившись з режиму місії на будь-який інший режим (наприклад, [режим утримання](../flight_modes_fw/hold.md) або [режим позиціонування](../flight_modes_fw/position.md)), і продовжити, переключившись назад в режим місії. +Missions can be paused by switching out of mission mode to any other mode (such as [Hold mode](../flight_modes_fw/hold.md) or [Cruise mode](../flight_modes_fw/cruise.md)), and resumed by switching back to mission mode. Якщо транспортний засіб не захоплював зображення, коли він був призупинений, під час відновлення він рухатиметься зі своєї _поточної позиції_ до тієї ж точки шляху, до якої він спочатку рухався. Якщо транспортний засіб захоплював зображення (має елементи спуску камери), він замість цього рухатиметься зі своєї поточної позиції до останньої точки шляху, якою він проїхав (перед зупинкою), а потім пройде свій шлях з тією самою швидкістю та з такою самою поведінкою спуску камери. Це забезпечує, що планований шлях зафіксований під час місій з опитування/камери. @@ -374,7 +390,7 @@ Landing configuration (e.g. flaps, spoilers, landing airspeed) is disabled durin :::info Відштовхування (Nudging) не повинно використовуватися для доповнення поганого налаштування контролю позиції. -If the vehicle is regularly showing poor tracking performance on a defined path, please refer to the [fixed-wing control tuning guide](../flight_modes_fw/position.md) for instruction. +If the vehicle is regularly showing poor tracking performance on a defined path, please refer to the [fixed-wing control tuning guide](../flight_modes_fw/cruise.md) for instruction. ::: | Parameter | Опис | diff --git a/docs/uk/flight_modes_fw/position.md b/docs/uk/flight_modes_fw/position.md index 2ace6262a69..30088f73fbb 100644 --- a/docs/uk/flight_modes_fw/position.md +++ b/docs/uk/flight_modes_fw/position.md @@ -1,68 +1 @@ -# Режим позиції (фіксоване крило) - -   - -_Position mode_ is the easiest and safest manual mode. -Підтримується на транспортних засобах, які мають прогноз позиціонування (наприклад, GPS). -Це полегшує пілотам контроль висоти транспортного засобу, і зокрема досягати і підтримувати фіксовану висоту. -Режим буде утримувати курс транспортного засобу від вітру. -Швидкість активно контролюється, якщо встановлений датчик швидкості. - -The vehicle performs a [coordinated turn](https://en.wikipedia.org/wiki/Coordinated_flight) if the roll sticks are non-zero, while the pitch stick controls the rate of ascent/descent. -Засувка визначає швидкість повітря — при 50% засувки літак буде утримувати свою поточну висоту з заданою крейсерською швидкістю. - -Коли всі стіки управління відпущені/центровані (без крену, тангажу, курсу та близько 50% керування газом), літак повернеться до прямого, рівного польоту та збереже свою поточну висоту та траєкторію польоту не залежно від вітру. -This makes it easy to recover from any problems when flying. -Крен та тангаж - кутово-керовані (тому неможливо перевалюватися або робити петлю транспортному засобу). - -Стік повороту може бути використана для збільшення/зменшення кута приводу автомобіля на поворотах. -Якщо контролер фіксований у центрі, то він самостійно здійснює координацію повороту, що означає, що він застосовує необхідну швидкість розвороту для поточного кута крену, щоб виконати плавний поворот. -The diagram below shows the mode behaviour visually (for a [mode 2 transmitter](../getting_started/rc_transmitter_receiver.md#transmitter_modes)). - -![FW Position Mode](../../assets/flight_modes/position_fw.png) - -## Технічний опис - -Position mode is like [Stabilized mode](../flight_modes_fw/altitude.md) but with course stabilization. -Швидкість також стабілізується, якщо встановлений датчик швидкості. - -- Центровані вхідні показники крену/тангажу/рискання (в межах дедбенду): - - Автопілот рівномірно підтримує транспортний засіб і утримує висоту, швидкість і курс над землею. -- Зовнішній центр: - - Стік регулює висота польоту. - - Резервний стік керує швидкістю літального апарату, якщо підключений датчик швидкості. Without an airspeed sensor the vehicle will fly level at trim throttle ([FW_THR_TRIM](../advanced_config/parameter_reference.md#FW_THR_TRIM)), increasing or decreasing throttle as needed to climb or descend. - - Стік керування використовує кут крена. Autopilot will maintain [coordinated flight](https://en.wikipedia.org/wiki/Coordinated_flight). - - Стік крену додає додатковий значення швидкості рискання (додається до розрахованого автопілотом для підтримки координованого польоту). - Може бути використаний для ручної зміни кута рискання безпілотного засобу. -- Потрібен ручний ввід управління (наприклад, за допомогою пульта дистанційного керування, джойстика). -- Необхідне джерело вимірювання висоти (зазвичай барометр або GPS) - -## Параметри - -Режим впливає на наступні параметри: - -| Parameter | Опис | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) | Мінімальна швидкість. За замовчуванням: 10 м/с. | -| [FW_AIRSPD_MAX](../advanced_config/parameter_reference.md#FW_AIRSPD_MAX) | Максимальна швидкість. За замовчуванням: 20 м/с. | -| [FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM) | Крейсерська швидкість. За замовчуванням: 15 м/с. | -| [FW_MAN_P_MAX](../advanced_config/parameter_reference.md#FW_MAN_P_MAX) | Установлення максимального кроку в режимі стабілізації кута нахилу. За замовчуванням: 45 градусів. | -| [FW_MAN_R_MAX](../advanced_config/parameter_reference.md#FW_MAN_R_MAX) | Максимальне значення крена в режимі стабілізації кута нахилу. За замовчуванням: 45 градусів. | -| [FW_T_CLMB_R_SP](../advanced_config/parameter_reference.md#FW_T_CLMB_R_SP) | Максимальна задана швидкість підйому. За замовчуванням: 3 м/с. | -| [FW_T_SINK_R_SP](../advanced_config/parameter_reference.md#FW_T_SINK_R_SP) | Максимальне значення зниження швидкості. За замовчуванням: 2 м/с. | -| [FW_PN_R_SLEW_MAX](../advanced_config/parameter_reference.md#FW_PN_R_SLEW_MAX) | Обмеження швидкості нахилу вихідного значення. За замовчуванням: 90 °/с. | - -## MAVLink Commands - -The following commands are relevant to this mode: - -- [MAV_CMD_DO_CHANGE_SPEED](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_CHANGE_SPEED) — Sets the cruise airspeed for centred throttle stick. - - This requires an airspeed sensor. - Only the airspeed speed type is handled (`param1` must be `0`); other speed types are ignored. - At centered throttle the vehicle holds the commanded airspeed (`param2`) if a positive value is set (non-positive values are ignored). - The value is constrained between [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) and [FW_AIRSPD_MAX](../advanced_config/parameter_reference.md#FW_AIRSPD_MAX), and defaults to [FW_AIRSPD_TRIM](../advanced_config/parameter_reference.md#FW_AIRSPD_TRIM) if no airspeed has been commanded. - Deflecting the throttle stick scales the airspeed toward `FW_AIRSPD_MIN` (back) or `FW_AIRSPD_MAX` (forward) around this value. - The commanded airspeed resets to `FW_AIRSPD_TRIM` on every flight mode change. - -Note, other commands may be supported. + diff --git a/docs/uk/flight_modes_fw/return.md b/docs/uk/flight_modes_fw/return.md index 2ddbc3be11d..7a2141abe4e 100644 --- a/docs/uk/flight_modes_fw/return.md +++ b/docs/uk/flight_modes_fw/return.md @@ -47,6 +47,22 @@ Fixed-wing supports the [other PX4 return types](../flight_modes/return.md#retur Транспортний засіб може бути змушений приземлитися у пункті призначення, змінивши [RTL_LAND_DELAY](#RTL_LAND_DELAY) так, щоб він не був -1. У цьому випадку транспортний засіб приземлиться так само, як [Режим посадки](../flight_modes_fw/land.md). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_global_position_relaxed) — Position measurement updates in a global coordinate frame but accepts poor accuracy +- [`mode_req_home_position`](../flight_modes/mode_requirements.md#mode_req_home_position) — Global home reference must be set +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + + ## Параметри Параметри RTL перелічені в [Референсі параметрів > Режим повернення](../advanced_config/parameter_reference.md#return-mode). diff --git a/docs/uk/flight_modes_fw/stabilized.md b/docs/uk/flight_modes_fw/stabilized.md index 41e6ae50020..b9ae2c11967 100644 --- a/docs/uk/flight_modes_fw/stabilized.md +++ b/docs/uk/flight_modes_fw/stabilized.md @@ -37,6 +37,18 @@ The diagram below shows the mode behaviour visually (for a [mode 2 transmitter]( Може бути використаний для ручної зміни кута рискання безпілотного засобу. - Потрібен ручний ввід управління (наприклад, за допомогою пульта дистанційного керування, джойстика). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри Режим впливає на наступні параметри: diff --git a/docs/uk/flight_modes_fw/takeoff.md b/docs/uk/flight_modes_fw/takeoff.md index a0075f3f6f9..b2a6c9eb8be 100644 --- a/docs/uk/flight_modes_fw/takeoff.md +++ b/docs/uk/flight_modes_fw/takeoff.md @@ -55,6 +55,18 @@ If the local position is invalid or becomes invalid while executing the takeoff, ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position + + + ### Параметри Параметри, які впливають як на катапульту/ручний старт, так і на зліт зі злітно-посадкової смуги: @@ -123,9 +135,38 @@ The _runway takeoff mode_ has the following phases: 2. **Clamped to runway**: Pitch fixed, no roll and takeoff path controlled until the rotation airspeed ([RWTO_ROT_AIRSPD](../advanced_config/parameter_reference.md#RWTO_ROT_AIRSPD)) is reached. Оператор може підганяти транспортний засіб ліворуч/праворуч за допомогою стіка рискання. 3. **Climbout**: Increase pitch setpoint and climb to takeoff altitude. Щоб уникнути ударів крил, контролер буде тримати встановлений кут кочення заблокованим на 0, коли близько до землі, а потім поступово дозволить більше кочення під час підйому. It is based on the vehicle geometry as configured in [FW_WING_SPAN](#FW_WING_SPAN) and [FW_WING_HEIGHT](#FW_WING_HEIGHT). +### Wheel Controller {#wheel_controller} + +The wheel controller steers the vehicle on the ground using the steerable nose/tail wheel. +It is enabled with [FW_W_EN](#FW_W_EN) and only runs in automatic modes during runway takeoff and during the landing rollout. +Whenever it is not active (in all manual modes, or if it is disabled), the yaw stick is mapped directly to the wheel. + +The controller is cascaded: + +1. **Heading controller**: The heading (yaw) error is converted into a yaw rate setpoint with a fixed time constant of 0.1s, limited to [FW_W_RMAX](#FW_W_RMAX). +2. **Rate controller**: A P-I-FF controller ([FW_WR_P](#FW_WR_P), [FW_WR_I](#FW_WR_I), [FW_WR_FF](#FW_WR_FF), integrator limited by [FW_WR_IMAX](#FW_WR_IMAX)) turns the yaw rate setpoint into a normalized wheel steering command in the range [-1, 1]. + +The heading setpoint during the ground roll is the bearing from the takeoff position to the takeoff waypoint, so the nose is kept aligned with the intended runway direction. +If no navigation reference is available (takeoff without takeoff waypoint), and during the landing rollout, the controller instead holds the heading that was captured at the moment the wheel steering engaged. + +![Wheel steering heading setpoint during the ground roll](../../assets/flight_modes/fw_runway_takeoff_wheel_steering.svg) + +Operator yaw stick input is added on top of the controller output to "nudge" the vehicle (enabled with [RWTO_NUDGE](#RWTO_NUDGE) for takeoff, and [FW_LND_NUDGE](../advanced_config/parameter_reference.md#FW_LND_NUDGE) for landing). + :::info -For a smooth takeoff, the runway wheel controller possibly needs to be tuned. -It consists of a rate controller (P-I-FF-controller with the parameters [FW_WR_P](../advanced_config/parameter_reference.md#FW_WR_P), [FW_WR_I](../advanced_config/parameter_reference.md#FW_WR_I), [FW_WR_FF](../advanced_config/parameter_reference.md#FW_WR_FF)). +The gains are scaled with groundspeed (using [FW_AIRSPD_STALL](../advanced_config/parameter_reference.md#FW_AIRSPD_STALL) as the reference speed) so that the steering becomes less aggressive as the vehicle accelerates. +This means the controller should be tuned at low speed, around stall airspeed. +::: + +For a smooth takeoff the wheel controller usually needs to be tuned: + +1. Start with [FW_WR_P](#FW_WR_P) and [FW_WR_FF](#FW_WR_FF) only (set [FW_WR_I](#FW_WR_I) to 0) and taxi/roll the vehicle in _Mission mode_ with active Takeoff waypoint item at low speed. +2. Increase the gains until the vehicle tracks the runway heading without noticeable oscillation of the nose. +3. Add [FW_WR_I](#FW_WR_I) to remove a remaining constant heading offset (e.g. caused by wheel misalignment or crosswind). + +:::warning +Excessive gains lead to oscillations of the nose during the ground roll, which can quickly become dangerous at higher groundspeed. +Always test with increasing speed step by step. ::: ### Параметри (зліт зі злітної смуги) @@ -145,6 +186,19 @@ It consists of a rate controller (P-I-FF-controller with the parameters [FW_WR_P | [FW_WING_SPAN](../advanced_config/parameter_reference.md#FW_WING_SPAN) | Розмах крила транспортного засобу. Використовується для запобігання ударів крилом. | | [FW_WING_HEIGHT](../advanced_config/parameter_reference.md#FW_WING_HEIGHT) | Висота крил над землею (дорожній просвіт). Використовується для запобігання ударів крилом. | +### Parameters (Wheel Controller) + +The [wheel controller](#wheel_controller) is affected by the following parameters: + +| Parameter | Опис | +| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| [FW_W_EN](#FW_W_EN) | Увімкнути контролер колеса | +| [FW_W_RMAX](../advanced_config/parameter_reference.md#FW_W_RMAX) | Maximum yaw rate setpoint the heading controller outputs | +| [FW_WR_P](../advanced_config/parameter_reference.md#FW_WR_P) | Yaw rate controller proportional gain | +| [FW_WR_I](../advanced_config/parameter_reference.md#FW_WR_I) | Yaw rate controller integrator gain (trims a constant heading error) | +| [FW_WR_IMAX](../advanced_config/parameter_reference.md#FW_WR_IMAX) | Yaw rate controller integrator limit | +| [FW_WR_FF](../advanced_config/parameter_reference.md#FW_WR_FF) | Yaw rate controller feed forward gain | + ## Дивіться також - [Takeoff Mode (MC)](../flight_modes_mc/takeoff.md) diff --git a/docs/uk/flight_modes_mc/acro.md b/docs/uk/flight_modes_mc/acro.md index ec824b09b86..67798685266 100644 --- a/docs/uk/flight_modes_mc/acro.md +++ b/docs/uk/flight_modes_mc/acro.md @@ -25,6 +25,17 @@ RC Штоки кочення/тангажу/рискання (RPY) контро - Дросель: Ручне керування за допомогою палиць RC. RC ввід передається напряму до розподілу керування. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Відображення стіку введення The default values for expo and rate [parameters](#parameters) are _beginner friendly_, reducing the chance that users will flip the vehicle when first trying this mode, or when using Acro mode for manual rate tuning. diff --git a/docs/uk/flight_modes_mc/altitude.md b/docs/uk/flight_modes_mc/altitude.md index 34f3f3e0dce..277860066ab 100644 --- a/docs/uk/flight_modes_mc/altitude.md +++ b/docs/uk/flight_modes_mc/altitude.md @@ -39,6 +39,19 @@ RC/manual mode like [Stabilized mode](../flight_modes_mc/manual_stabilized.md) b - Курс: Допомога від автопілота для стабілізації швидкості польоту. Положення палиці RC відображає швидкість обертання транспортного засобу в цій орієнтації. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри Режим впливає на наступні параметри: diff --git a/docs/uk/flight_modes_mc/altitude_cruise.md b/docs/uk/flight_modes_mc/altitude_cruise.md index 14b0ec71a0f..6c19c3adffd 100644 --- a/docs/uk/flight_modes_mc/altitude_cruise.md +++ b/docs/uk/flight_modes_mc/altitude_cruise.md @@ -34,6 +34,19 @@ A manual mode that is similar to [Altitude mode](../flight_modes_mc/altitude.md) - Manual control input is required (such as RC control, joystick) to enter this mode. Other than in all other manual modes, it's though possible to disable the manual control loss failsafe by setting the corresponding flag in [COM_RCL_EXCEPT](../advanced_config/parameter_reference.md#COM_RCL_EXCEPT). In that case the current altitude, tilt and heading are kept until the manual control link is regained or the mode is exited. It is highly recommended to only disable the manual control loss failsafe for this mode if there is a stable data link connection to the vehicle at all times, and to enable the data link loss failsafe through [NAV_DLL_ACT](../advanced_config/parameter_reference.md#NAV_DLL_ACT). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Параметри Most of the relevant parameters are already covered in the corresponding section in the [Altitude mode](../flight_modes_mc/altitude.md). Here a list of parameters of particular importance for Altitude Cruise. diff --git a/docs/uk/flight_modes_mc/descend.md b/docs/uk/flight_modes_mc/descend.md index 44150922b09..76e5f3e21d7 100644 --- a/docs/uk/flight_modes_mc/descend.md +++ b/docs/uk/flight_modes_mc/descend.md @@ -1,7 +1,7 @@ # Descend Mode (Multicopter) -_Descend_ is a [failsafe](../config/safety.md) fallback mode. -It is activated automatically by PX4 and cannot be selected by the pilot. It only appears as a status label. +_Descend_ is a [failsafe](../config/safety.md) fallback mode that is activated automatically by PX4. +The mode is published when active but cannot be selected by the pilot. The vehicle descends open-loop: it keeps its attitude and reduces altitude, but does not control its horizontal position, so it drifts with the wind. It is the last resort used when the vehicle must come down but has no valid position estimate for a controlled descent. @@ -14,21 +14,46 @@ It is the last resort used when the vehicle must come down but has no valid posi ::: -## When It Occurs +## Технічний опис -Descend is the bottom of the failsafe chain (`Hold → Return → Land → Descend`). -PX4 falls through to it whenever a failsafe needs to bring the vehicle down or hold position but the position estimate is missing, so none of the higher options can run. Наприклад: +### When It Occurs + +Descend mode is at the bottom of the failsafe chain (along with [Flight termination](../advanced_config/flight_termination.md)): + +```text +Hold → Return → Land → ( Descend | Terminate ) +``` + +:::tip +[COM_POS_FS_ACT](../advanced_config/parameter_reference.md#COM_POS_FS_ACT) selects whether `Descend` or `Terminate` is used as the failsafe. +::: + +PX4 falls through to Descend mode whenever a failsafe needs to bring the vehicle down or hold position but the position estimate is missing, so none of the higher options can run. +Наприклад: - Losing the position estimate while landing, e.g. GNSS fails during [Land](../flight_modes_mc/land.md): the vehicle keeps descending, but now open-loop as _Descend_. - Losing the position estimate in [Hold](../flight_modes_mc/hold.md), [Mission](../flight_modes_mc/mission.md) or [Return](../flight_modes_mc/return.md): with no position to hold, fly to, or return with, the failsafe escalates down to _Descend_. - A Return or Land failsafe (from manual control loss, GCS/data link loss, low battery, geofence breach, …) triggered while no valid position estimate is available: Return and Land can't run, so it degrades to _Descend_. -## Exiting Descend +### Exiting Descend -Descend ends when either: +Descend ends when either the: -- the failsafe condition is resolved (e.g. the position estimate recovers), and the vehicle returns to its previous mode; or -- the pilot takes over by switching to a manual mode ([Position](../flight_modes_mc/position.md), [Altitude](../flight_modes_mc/altitude.md) or [Stabilized](../flight_modes_mc/manual_stabilized.md)). On a multicopter, moving the sticks does this [by default](../flight_modes_mc/land.md#MAN_OVERRIDE_SPD). +- failsafe condition is resolved (e.g. the position estimate recovers), and the vehicle returns to its previous mode; or +- pilot takes over by switching to a manual mode ([Position](../flight_modes_mc/position.md), [Altitude](../flight_modes_mc/altitude.md) or [Stabilized](../flight_modes_mc/manual_stabilized.md)). + On a multicopter, moving the sticks does this [by default](../flight_modes_mc/land.md#MAN_OVERRIDE_SPD). + + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + ## Дивіться також diff --git a/docs/uk/flight_modes_mc/follow_me.md b/docs/uk/flight_modes_mc/follow_me.md index 58923e3f79e..6e5ed040152 100644 --- a/docs/uk/flight_modes_mc/follow_me.md +++ b/docs/uk/flight_modes_mc/follow_me.md @@ -20,6 +20,21 @@ _Follow Me_ mode allows a multicopter to autonomously hold position and altitude ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ## Загальний огляд ![Follow-me Concept](../../assets/flight_modes/followme_concept.png) diff --git a/docs/uk/flight_modes_mc/hold.md b/docs/uk/flight_modes_mc/hold.md index fae98cdfda6..de847836519 100644 --- a/docs/uk/flight_modes_mc/hold.md +++ b/docs/uk/flight_modes_mc/hold.md @@ -31,6 +31,21 @@ The vehicle will first ascend to [NAV_MIN_LTR_ALT](#NAV_MIN_LTR_ALT) if the mode Stick movement will change the vehicle to [Position mode](../flight_modes_mc/position.md) (by [default](#MAN_OVERRIDE_SPD)). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position`](../flight_modes/mode_requirements.md#mode_req_global_position) — Position measurement updates in a global coordinate frame +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ### Параметри Поведінку режиму утримання можна налаштувати за допомогою наведених нижче параметрів. diff --git a/docs/uk/flight_modes_mc/land.md b/docs/uk/flight_modes_mc/land.md index 9354c8aedaa..ec694f8f9c3 100644 --- a/docs/uk/flight_modes_mc/land.md +++ b/docs/uk/flight_modes_mc/land.md @@ -27,6 +27,20 @@ The vehicle descends at the rate specified in [MPC_LAND_SPEED](#MPC_LAND_SPEED) Stick movement will change the vehicle to [Position mode](../flight_modes_mc/position.md) (by [default](#MAN_OVERRIDE_SPD)). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + + ### Параметри Поведінку режиму приземлення можна налаштувати за допомогою наведених нижче параметрів. diff --git a/docs/uk/flight_modes_mc/manual_stabilized.md b/docs/uk/flight_modes_mc/manual_stabilized.md index 468acb6e7b9..09c21567967 100644 --- a/docs/uk/flight_modes_mc/manual_stabilized.md +++ b/docs/uk/flight_modes_mc/manual_stabilized.md @@ -1,4 +1,4 @@ -# Stabilized Mode (Multicopter) +# Manual/Stabilized Mode (Multicopter)    @@ -6,14 +6,15 @@ The _Stabilized_ manual mode stabilizes and levels the multicopter when the RC c To move/fly the vehicle you move the sticks outside of the centre. :::info -This mode is also enabled if you set the flight mode to _Manual_. +PX4 has separate MC _Manual_ and _Stabilized_ navigation states, which correspond to separate flight modes that can be set (and displayed via MAVLink). +These modes behave identically in flight, but have different arming requirements — see [Mode Requirements](#mode-requirements) below. ::: When sticks are outside the centre, the roll and pitch sticks control the _angle_ of the vehicle (attitude) around the respective axes, the yaw stick controls the rate of rotation above the horizontal plane, and the throttle controls altitude/speed. Як тільки ви відпустите ручки керування, вони повернуться до центральної мертвої зони. Багатороторник вирівняється і зупиниться, як тільки палиці кочення та тангажу будуть в центрі. -The vehicle will then hover in place/maintain altitude - provided it is properly balanced, throttle is set appropriately (see [below](#params)), and no external forces are applied (e.g. wind). +The vehicle will then hover in place/maintain altitude - provided it is properly balanced, throttle is set appropriately (see [below](#parameters)), and no external forces are applied (e.g. wind). Літальний апарат буде дрейфувати в напрямку будь-якого вітру, і вам доведеться керувати реостатом, щоб утримати висоту. ![MC Manual Flight](../../assets/flight_modes/stabilized_mc.png) @@ -27,7 +28,7 @@ RC mode where centered sticks level vehicle. ::: Команди пілота передаються як команди кутів крену та тангажу, а рискання як команда швидкості. -Throttle is rescaled (see [below](#params)) and passed directly to control allocation. +Throttle is rescaled (see [below](#parameters)) and passed directly to control allocation. Автопілот контролює положення, це означає що він регулює кути крену та тангажу до нуля коли органи керування пульту РК центровані всередині мертвої зони контролера (як наслідок вирівнюючи положення). Автопілот не компенсує дрейф через вітер (або інші джерела). @@ -44,7 +45,35 @@ Throttle is rescaled (see [below](#params)) and passed directly to control alloc - Курс: Допомога від автопілота для стабілізації швидкості польоту. Положення палиці RC відображає швидкість обертання транспортного засобу в цій орієнтації. - + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + +:::info +These requirements are form arming in Stabilized mode. +::: + + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + +:::info +These requirements are for arming in Manual mode. +::: ## Параметри diff --git a/docs/uk/flight_modes_mc/mission.md b/docs/uk/flight_modes_mc/mission.md index 0f12cf02510..2d4f70c7c2d 100644 --- a/docs/uk/flight_modes_mc/mission.md +++ b/docs/uk/flight_modes_mc/mission.md @@ -17,6 +17,22 @@ _Режим місії_ змушує транспортний засіб вик ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position`](../flight_modes/mode_requirements.md#mode_req_global_position) — Position measurement updates in a global coordinate frame +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_mission`](../flight_modes/mode_requirements.md#mode_req_mission) — Valid mission in autopilot's storage +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ## Опис Місії зазвичай створюються в земній контрольній станції (наприклад, [QGroundControl](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/plan_view/plan_view.html)) та завантажуються перед запуском. diff --git a/docs/uk/flight_modes_mc/orbit.md b/docs/uk/flight_modes_mc/orbit.md index 86b632a339c..3e7f54fc05a 100644 --- a/docs/uk/flight_modes_mc/orbit.md +++ b/docs/uk/flight_modes_mc/orbit.md @@ -8,18 +8,30 @@ The _Orbit_ guided flight mode allows you to command a multicopter (or VTOL in m - Режим автоматичний - для керування апаратом не потрібно втручання користувача. - Режим потребує принаймні дійсної локальної оцінки позиції (не потребує глобальної позиції). - - Літаючі транспортні засоби не можуть переключатися на цей режим без глобального положення. - Літаючі транспортні засоби перейдуть в режим аварійної безпеки, якщо втратять оцінку положення. - Mode prevents arming (vehicle cannot be armed while this mode is selected). - Режим вимагає, щоб швидкість вітру та час польоту були в межах допустимих значень (вказано через параметри). -- Цей режим в даний час підтримується лише на багатокоптерних (або VTOL у режимі MC). +- Mode is currently only supported on multicopter (or VTOL in MC mode). - Рух палиці RC може контролювати підйом/спуск та швидкість та напрямок оберту. -- The mode can be triggered using the [MAV_CMD_DO_ORBIT](https://mavlink.io/en/messages/common.html#MMAV_CMD_DO_ORBIT) MAVLink command. - - +- Mode can be triggered using the [MAV_CMD_DO_ORBIT](https://mavlink.io/en/messages/common.html#MMAV_CMD_DO_ORBIT) MAVLink command. ::: + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming +- [`mode_req_wind_and_flight_time_compliance`](../flight_modes/mode_requirements.md#mode_req_wind_and_flight_time_compliance) — Safety compliance limits on wind and flight time. + + + ## Загальний огляд ![Orbit Mode - MC](../../assets/flying/orbit.jpg) diff --git a/docs/uk/flight_modes_mc/position.md b/docs/uk/flight_modes_mc/position.md index 93a5eaec9a1..45b51fd235f 100644 --- a/docs/uk/flight_modes_mc/position.md +++ b/docs/uk/flight_modes_mc/position.md @@ -56,6 +56,20 @@ While very rare on a well calibrated vehicle, sometimes there may be problems wi - Курс: Допомога від автопілота для стабілізації швидкості польоту. Положення палиці RC відображає швидкість обертання транспортного засобу в цій орієнтації. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ### Параметри All the parameters in the [Multicopter Position Control](../advanced_config/parameter_reference.md#multicopter-position-control) group are relevant. Декілька параметрів, на які варто звернути увагу, перераховані нижче. diff --git a/docs/uk/flight_modes_mc/position_slow.md b/docs/uk/flight_modes_mc/position_slow.md index 43c27712c77..d28f47abd96 100644 --- a/docs/uk/flight_modes_mc/position_slow.md +++ b/docs/uk/flight_modes_mc/position_slow.md @@ -14,6 +14,20 @@ Обмеження, встановлені за допомогою пульту керування RC, перевищують ті, що встановлені за допомогою MAVLink, які, зі свого боку, перевищують ті, що встановлені за допомогою параметрів. Ліміти можуть бути зменшені тільки нижче тих, що діють для звичайного режиму _Position_. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position_relaxed`](../flight_modes/mode_requirements.md#mode_req_local_position_relaxed) — Position relative to EKF2 origin ('0') point but accepts poor accuracy +- [`mode_req_manual_control`](../flight_modes/mode_requirements.md#mode_req_manual_control) — Requires stick input + + + ## Встановлення обмежень за допомогою параметрів Максимальні значення для горизонтальної швидкості у режимі повільного руху, вертикальної швидкості та швидкості кочання можна встановити за допомогою параметрів. diff --git a/docs/uk/flight_modes_mc/return.md b/docs/uk/flight_modes_mc/return.md index 71f49caa8f3..fe0c9f43744 100644 --- a/docs/uk/flight_modes_mc/return.md +++ b/docs/uk/flight_modes_mc/return.md @@ -39,6 +39,22 @@ Multicopters use the [home/rally point return type](../flight_modes/return.md#rt - Він чекає протягом налаштованого часу ([RTL_LAND_DELAY](#RTL_LAND_DELAY)), який може бути використаний для розгортання шасі посадки. - Потім сідає на землю. + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_global_position`](../flight_modes/mode_requirements.md#mode_req_global_position) — Position measurement updates in a global coordinate frame +- [`mode_req_home_position`](../flight_modes/mode_requirements.md#mode_req_home_position) — Global home reference must be set +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point +- [`mode_req_prevent_arming`](../flight_modes/mode_requirements.md#mode_req_prevent_arming) — Mode prevents arming + + + ### Мінімальна висота повернення За замовчуванням _мінімальна висота повернення_ встановлюється за допомогою [RTL_RETURN_ALT](#RTL_RETURN_ALT), і транспортний засіб просто повернеться на вищу з висоти `RTL_RETURN_ALT` або початкової висоти транспортного засобу. diff --git a/docs/uk/flight_modes_mc/takeoff.md b/docs/uk/flight_modes_mc/takeoff.md index 0228657431e..cb100366604 100644 --- a/docs/uk/flight_modes_mc/takeoff.md +++ b/docs/uk/flight_modes_mc/takeoff.md @@ -15,8 +15,6 @@ The _Takeoff_ flight mode causes the vehicle to take off to a specified height a - Stick movement will [by default](#MAN_OVERRIDE_SPD) change the vehicle to [Position mode](../flight_modes_mc/position.md) unless prevented by the active failsafe state. - The [Failure Detector](../config/safety.md#failure-detector) will automatically stop the engines if there is a problem on takeoff. - - ::: ## Технічний підсумок @@ -25,6 +23,19 @@ A multi rotor ascends vertically to the altitude defined in [MIS_TAKEOFF_ALT](.. Stick movement will change the vehicle to [Position mode](../flight_modes_mc/position.md) (by [default](#MAN_OVERRIDE_SPD)). + + +### Mode Requirements + +The following requirements must be met to arm in this mode, or to switch to this mode when it is armed. + +- [`mode_req_angular_velocity`](../flight_modes/mode_requirements.md#mode_req_angular_velocity) — Angular velocity +- [`mode_req_attitude`](../flight_modes/mode_requirements.md#mode_req_attitude) — Attitude/pose +- [`mode_req_local_alt`](../flight_modes/mode_requirements.md#mode_req_local_alt) — Local altitude relative to EKF2 origin ('0') position +- [`mode_req_local_position`](../flight_modes/mode_requirements.md#mode_req_local_position) — Position relative to EKF2 origin ('0') point + + + ### Параметри Взліт впливається наступними параметрами: diff --git a/docs/uk/flying/basic_flying_fw.md b/docs/uk/flying/basic_flying_fw.md index 70c52bc10ab..d126d4d46f5 100644 --- a/docs/uk/flying/basic_flying_fw.md +++ b/docs/uk/flying/basic_flying_fw.md @@ -41,7 +41,7 @@ We recommend using with the automatic modes instead, especially for inexperience ::: [Stabilized mode](../flight_modes_fw/stabilized.md), [Acro mode](../flight_modes_fw/acro.md) or [Manual mode](../flight_modes_fw/manual.md) mode are recommended for manual takeoff. -[Position mode](../flight_modes_fw/position.md) and [Altitude mode](../flight_modes_fw/altitude.md) can also be used, but it is important to accelerate the vehicle sufficiently before bringing them airborne — strong thrust if hand-launched, long runway phase for runway takeoff (this is required because the controller in these modes can prioritize airspeed over altitude tracking). +[Cruise mode](../flight_modes_fw/cruise.md) and [Altitude mode](../flight_modes_fw/altitude.md) can also be used, but it is important to accelerate the vehicle sufficiently before bringing them airborne — strong thrust if hand-launched, long runway phase for runway takeoff (this is required because the controller in these modes can prioritize airspeed over altitude tracking). Manual takeoffs with hand-launched planes: @@ -106,7 +106,7 @@ The following three modes are highly recommended for new users: - [Stabilized Mode](../flight_modes_fw/stabilized.md) - Vehicle hard to flip, and will level-out if the sticks are released (but not hold position) - [Altitude Mode)](../flight_modes_fw/altitude.md) - Climb and drop are controlled to have a maximum rate. -- [Position Mode](../flight_modes_fw/position.md) - When sticks are released the vehicle will stop (and hold position against wind drift) +- [Cruise Mode](../flight_modes_fw/cruise.md) - When sticks are released the vehicle will stop (and hold position against wind drift) :::info You can also engage automatic modes through the _QGroundControl_ main flight screen. diff --git a/docs/uk/frames_plane/reptile_dragon_2.md b/docs/uk/frames_plane/reptile_dragon_2.md index fcc92685637..d3b11bdf2a2 100644 --- a/docs/uk/frames_plane/reptile_dragon_2.md +++ b/docs/uk/frames_plane/reptile_dragon_2.md @@ -386,7 +386,7 @@ Load the file via QGC using the instructions at [Parameters> Tools](https://docs ### Налаштування радіо -Вам слід активувати ручні, акро та позиційні режими на вашому контролері (принаймні для першого польоту). +You should enable Manual, Acro, and Cruise modes on your controller (at least for the first flight). For instructions see [Flight mode Configuration](../config/flight_mode.md) We also recommend configuring an [autotuning switch](../config/autotune_fw.md#enable-disable-autotune-switch) for the first flight, as this makes it easier to enable/disable autotuning while flying. @@ -452,7 +452,7 @@ With the propellers removed, power the airplane up and use the [Actuator](../con Once the airplane is successfully airborne, cruise up to an altitude of a few hundred feet and switch to [Acro mode](../flight_modes_fw/acro.md). This is a good time to use [Autotuning](../config/autotune_fw.md) to tune the airframe. -If the airplane is well behaved in _Acro mode_, switch to [Position mode](../flight_modes_fw/position.md). +If the airplane is well behaved in _Acro mode_, switch to [Cruise mode](../flight_modes_fw/cruise.md). ## Build Results & Performance diff --git a/docs/uk/frames_vtol/vtol_quadplane_foxtech_loong_2160.md b/docs/uk/frames_vtol/vtol_quadplane_foxtech_loong_2160.md index e23be5995de..3deddf42830 100644 --- a/docs/uk/frames_vtol/vtol_quadplane_foxtech_loong_2160.md +++ b/docs/uk/frames_vtol/vtol_quadplane_foxtech_loong_2160.md @@ -324,7 +324,7 @@ Next we load a [parameter file](https://github.com/PX4/PX4-Autopilot/raw/main/do [Відкалібруйте ваш RC Controller](../config/radio.md) та налаштуйте [перемикач режиму польоту](../config/flight_mode.md). Ми рекомендуємо вам призначити RC перемикачі для набору режимів, визначених у [Flight Mode Configuration > What Flight Modes and Switches Should I Set?](../config/flight_mode.md#what-flight-modes-and-switches-should-i-set). -Зокрема, ви повинні призначити _VTOL Transition Switch_, _Kill Switch_ та перемикач для вибору [Режиму стабілізації](../flight_modes_fw/stabilized.md) та [Режиму позиціювання](../flight_modes_fw/position.md). +In particular you should assign a _VTOL Transition Switch_, _Kill Switch_, and a switch to select [Stabilized mode](../flight_modes_fw/stabilized.md) and [Cruise mode](../flight_modes_fw/cruise.md). ### Налаштування приводу та калібрування ESC @@ -397,5 +397,5 @@ Next we load a [parameter file](https://github.com/PX4/PX4-Autopilot/raw/main/do - Якщо використовується [kill-switch](../config/safety.md#kill-switch), переконайтеся, що він працює належним чином і не буде активований випадково в повітрі! - Включіть [режим стабілізації](../flight_modes_fw/stabilized.md) та перевірте, чи відповідають двигуни на команди, наприклад, перевалюємося вліво, збільшувати оберти на правому двигуні - Злетайте у режимі [стабілізованого положення](../flight_modes_fw/stabilized.md) і виконайте деякі базові маневри -- Якщо все пройшло без проблем, злітайте у [Position mode](../flight_modes_fw/position.md) та зробіть перехід приблизно на висоті 50м. +- If everything went without any issue, takeoff in [Cruise mode](../flight_modes_fw/cruise.md) and do a transition at around 50m. Якщо щось пішло не так, якнайшвидше перейдіть в режим мультикоптера (використовуючи перемикач переходу). diff --git a/docs/uk/frames_vtol/vtol_tiltrotor_omp_hobby_zmo_fpv.md b/docs/uk/frames_vtol/vtol_tiltrotor_omp_hobby_zmo_fpv.md index df184db371e..4236125977b 100644 --- a/docs/uk/frames_vtol/vtol_tiltrotor_omp_hobby_zmo_fpv.md +++ b/docs/uk/frames_vtol/vtol_tiltrotor_omp_hobby_zmo_fpv.md @@ -313,7 +313,7 @@ The airspeed sensor can be enabled in the [Parameters](../advanced_config/parame [Відкалібруйте ваш RC Controller](../config/radio.md) та налаштуйте [перемикач режиму польоту](../config/flight_mode.md). Ми рекомендуємо вам призначити RC перемикачі для набору режимів, визначених у [Flight Mode Configuration > What Flight Modes and Switches Should I Set?](../config/flight_mode.md#what-flight-modes-and-switches-should-i-set). -Зокрема, ви повинні призначити _VTOL Transition Switch_, _Kill Switch_ та перемикач для вибору [Режиму стабілізації](../flight_modes_fw/stabilized.md) та [Режиму позиціювання](../flight_modes_fw/position.md). +In particular you should assign a _VTOL Transition Switch_, _Kill Switch_, and a switch to select [Stabilized mode](../flight_modes_fw/stabilized.md) and [Cruise mode](../flight_modes_fw/cruise.md). ### Налаштування приводу @@ -388,5 +388,5 @@ The direction can't be changed in software because the vehicle does not use [DSh - Якщо використовується [kill-switch](../config/safety.md#kill-switch), переконайтеся, що він працює належним чином і не буде активований випадково в повітрі! - Включіть [режим стабілізації](../flight_modes_fw/stabilized.md) та перевірте, чи відповідають двигуни на команди, наприклад, перевалюємося вліво, збільшувати оберти на правому двигуні - Злетайте у режимі [стабілізованого положення](../flight_modes_fw/stabilized.md) і виконайте деякі базові маневри -- Якщо все пройшло без проблем, злітайте у [Position mode](../flight_modes_fw/position.md) та зробіть перехід приблизно на висоті 50м. +- If everything went without any issue, takeoff in [Cruise mode](../flight_modes_fw/cruise.md) and do a transition at around 50m. Якщо щось пішло не так, якнайшвидше перейдіть в режим мультикоптера (використовуючи перемикач переходу). diff --git a/docs/uk/gps_compass/u-blox_f9p_heading.md b/docs/uk/gps_compass/u-blox_f9p_heading.md index f8b59d906c9..b255fc1d7cf 100644 --- a/docs/uk/gps_compass/u-blox_f9p_heading.md +++ b/docs/uk/gps_compass/u-blox_f9p_heading.md @@ -40,6 +40,8 @@ Ideally the two antennas should be identical, on the same level/horizontal plane - Головний GPS = Ровер - Допоміжний GPS = Рухома База - Set [GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) to `Heading` (1) +- Set [GPS_UBX_BAUD1](../advanced_config/parameter_reference.md#GPS_UBX_BAUD1) if a UART1 rate other than the default is required (0 keeps 115200). Use a higher rate for high update rates or when RTCM is sent on UART1 ([GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) 3/4), and a lower rate on long serial cables. +- Set [GPS_UBX_BAUD2](../advanced_config/parameter_reference.md#GPS_UBX_BAUD2) if a UART2 rate other than the default (230400) is required. UART2 carries RTCM between the modules in this setup. - [EKF2_GPS_CTRL](../advanced_config/parameter_reference.md#EKF2_GPS_CTRL) parameter bit 3 must be set (see [RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source)). - [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) may need to be set (see [RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source)). - Перезавантажте та зачекайте, доки обидва пристрої отримають сигнал GPS. diff --git a/docs/uk/mavlink/standard_modes.md b/docs/uk/mavlink/standard_modes.md index f04314dafd5..e493dcbbd5d 100644 --- a/docs/uk/mavlink/standard_modes.md +++ b/docs/uk/mavlink/standard_modes.md @@ -48,7 +48,7 @@ FW vehicles support the following standard modes (some of these are supported by | Standard Mode | PX4 Mode | Internal Mode | | ---------------------------------------------------------------------- | -------------------------------------------------- | --------------------------------- | -| [MAV\_STANDARD\_MODE\_CRUISE][MAV_STANDARD_MODE_CRUISE] | [FW Position mode](../flight_modes_fw/position.md) | POSCTL | +| [MAV\_STANDARD\_MODE\_CRUISE][MAV_STANDARD_MODE_CRUISE] | [FW Cruise mode](../flight_modes_fw/cruise.md) | POSCTL | | [MAV\_STANDARD\_MODE\_ALTITUDE\_HOLD][MAV_STANDARD_MODE_ALTITUDE_HOLD] | [FW Altitude mode](../flight_modes_fw/altitude.md) | ALTCTL | | [MAV\_STANDARD\_MODE\_ORBIT][MAV_STANDARD_MODE_ORBIT] | [FW Hold mode](../flight_modes_fw/hold.md) | AUTO_LOITER | | [MAV\_STANDARD\_MODE\_SAFE\_RECOVERY][MAV_STANDARD_MODE_SAFE_RECOVERY] | [Return mode](../flight_modes/return.md) | AUTO_RTL | diff --git a/docs/uk/modules/modules_command.md b/docs/uk/modules/modules_command.md index 06e0161f6ed..282e9464491 100644 --- a/docs/uk/modules/modules_command.md +++ b/docs/uk/modules/modules_command.md @@ -470,6 +470,14 @@ param [arguments...] Parameter name and value to set [fail] If provided, let the command fail if param is not found + bitset Set bits of an int32 parameter (param |= mask) + Parameter name and bitmask (decimal or 0x hex) + [fail] If provided, let the command fail if param is not found + + bitclear Clear bits of an int32 parameter (param &= ~mask) + Parameter name and bitmask (decimal or 0x hex) + [fail] If provided, let the command fail if param is not found + set-default Set parameter default to a value [-s] If provided, silent errors if parameter doesn't exists Parameter name and value to set diff --git a/docs/uk/modules/modules_driver.md b/docs/uk/modules/modules_driver.md index c27ddd55332..3cdf51b78fc 100644 --- a/docs/uk/modules/modules_driver.md +++ b/docs/uk/modules/modules_driver.md @@ -1110,6 +1110,30 @@ rgbled [arguments...] status print status info ``` +## rgbled_apa102 + +Source: [drivers/lights/rgbled_apa102](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/lights/rgbled_apa102) + +### Usage {#rgbled_apa102_usage} + +``` +rgbled_apa102 [arguments...] + Commands: + start + [-s] Internal SPI bus(es) + [-S] External SPI bus(es) + [-b ] board-specific bus (default=all) (external SPI: n-th bus + (default=1)) + [-c ] chip-select pin (for internal SPI) or index (for external SPI) + [-m ] SPI mode + [-f ] bus frequency in kHz + [-q] quiet startup (no message if no device found) + + stop + + status print status info +``` + ## rgbled_aw2023 Source: [drivers/lights/rgbled_aw2023](https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/lights/rgbled_aw2023) diff --git a/docs/uk/modules/modules_system.md b/docs/uk/modules/modules_system.md index 6e272bde4eb..f557744ae2b 100644 --- a/docs/uk/modules/modules_system.md +++ b/docs/uk/modules/modules_system.md @@ -90,10 +90,13 @@ Source: [drivers/cdcacm_autostart](https://github.com/PX4/PX4-Autopilot/tree/mai ### Опис -This module listens on USB and auto-configures the protocol depending on the bytes received. -The supported protocols are: MAVLink, nsh, and ublox serial passthrough. If the parameter SYS_USB_AUTO=2 -the module will only try to start mavlink as long as the USB VBUS is detected. Otherwise it will spin -and continue to check for VBUS and start mavlink once it is detected. +Manages the USB CDC/ACM serial device (`/dev/ttyACM0`). + +`SYS_USB_AUTO` selects the protocol policy once USB VBUS is detected: + +- `0` Disabled: bring up the USB serial device only. +- `1` Auto-detect: wait for host bytes and start MAVLink, nsh, or u-blox passthrough. +- `2` MAVLink (default): start MAVLink immediately so the autopilot transmits first ### Usage {#cdcacm_autostart_usage} diff --git a/docs/uk/msg_docs/FixedWingRunwayControl.md b/docs/uk/msg_docs/FixedWingRunwayControl.md index b14257a4e25..29a8a235f25 100644 --- a/docs/uk/msg_docs/FixedWingRunwayControl.md +++ b/docs/uk/msg_docs/FixedWingRunwayControl.md @@ -10,12 +10,13 @@ Auxiliary control fields for fixed-wing runway takeoff/landing. ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| -------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | us | | time since system start | -| runway_takeoff_state | `uint8` | | | Current state of runway takeoff state machine | -| wheel_steering_enabled | `bool` | | | Flag that enables the wheel steering. | -| wheel_steering_nudging_rate | `float32` | FRD | [-1 : 1] | Manual wheel nudging, added to controller output. NAN is interpreted as 0. | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| -------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | time since system start | +| runway_takeoff_state | `uint8` | | | Current state of runway takeoff state machine | +| wheel_steering_enabled | `bool` | | | Flag that enables the wheel steering. | +| wheel_steering_yaw_setpoint | `float32` | rad | [-pi : pi] | For the wheel controller to track. NAN means hold the heading captured when steering engaged. | +| wheel_steering_nudging_rate | `float32` | FRD | [-1 : 1] | Manual wheel nudging, added to controller output. NAN is interpreted as 0. | ## Constants @@ -48,6 +49,7 @@ uint8 STATE_FLYING = 3 # navigate freely uint8 runway_takeoff_state # Current state of runway takeoff state machine bool wheel_steering_enabled # Flag that enables the wheel steering. +float32 wheel_steering_yaw_setpoint # [rad] [@range -pi, pi] For the wheel controller to track. NAN means hold the heading captured when steering engaged. float32 wheel_steering_nudging_rate # [norm] [@range -1, 1] [FRD] Manual wheel nudging, added to controller output. NAN is interpreted as 0. ``` diff --git a/docs/uk/peripherals/gripper.md b/docs/uk/peripherals/gripper.md index 26c3d3bc35e..1a709bc523e 100644 --- a/docs/uk/peripherals/gripper.md +++ b/docs/uk/peripherals/gripper.md @@ -17,8 +17,9 @@ A gripper can instead be configured as a [generic RC or MAVLink actuator](../pay PX4 підтримує захвати, які мають прості важелі для утримання та відпускання, та використовують наступні інтерфейси (див. зв'язані документи для деталей): -- [PWM Servo Gripper](gripper_servo.md) - Grippers connected to autopilot PWM outputs -- **MAVLink Gripper** (Untested) - Grippers that support the [MAV_CMD_DO_GRIPPER](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_GRIPPER) MAVLink command. +- [PWM Servo Gripper](../peripherals/gripper_servo.md) — Grippers connected to autopilot PWM outputs. +- [DroneCAN Electro-Permanent Magnet (EPM)](../peripherals/gripper_epm.md) — EPM grippers controlled using DroneCAN hardpoint commands. +- **MAVLink Gripper** (Untested) — Grippers that support the [MAV_CMD_DO_GRIPPER](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_GRIPPER) MAVLink command. ## Використання захоплювача @@ -38,9 +39,14 @@ MAVLink applications, such as ground stations, can also control the gripper usin Підтримка захоплювача PX4 пов'язана з функцією доставки пакетів, яка повинна бути увімкнена та налаштована для можливості використання захоплювача. -1. Ensure your board has the Payload Deliverer module enabled: CONFIG_MODULES_PAYLOAD_DELIVERER. +1. Ensure your board has the Payload Deliverer module enabled: + + ```ini + CONFIG_MODULES_PAYLOAD_DELIVERER=y + ``` + 2. Set [PD_GRIPPER_TYPE](../advanced_config/parameter_reference.md#PD_GRIPPER_TYPE) to match your gripper. - For example, set to `Servo` for a [Servo Gripper](gripper_servo.md). + Set it to `Binary Grab/Release` for a [Servo Gripper](gripper_servo.md) or [DroneCAN EPM Gripper](../peripherals/gripper_epm.md). ### Відображення активатора захоплювача diff --git a/docs/uk/peripherals/gripper_epm.md b/docs/uk/peripherals/gripper_epm.md new file mode 100644 index 00000000000..a6ae441d268 --- /dev/null +++ b/docs/uk/peripherals/gripper_epm.md @@ -0,0 +1,130 @@ +# Electro-Permanent Magnet (EPM) + + + +An electro-permanent magnet (EPM) uses a short electrical pulse to switch its magnetic state, and does not consume power continuously while holding a payload. + +This topic explains how to connect and configure a [Zubax FluxGrip FG40](https://shop.zubax.com/products/zubax-epm) EPM as a DroneCAN gripper. +The gripper can then be operated from a [payload delivery mission](../flying/package_delivery_mission.md), a joystick, or a MAVLink command. + +![FluxGrip connected to a Pixhawk flight controller](../../assets/hardware/grippers/fluxgrip_px4.png) + +:::info +This setup was tested with a Holybro Pixhawk 6X Pro and FluxGrip firmware `502e1f5`. +See the [FluxGrip documentation](https://fluxgrip.zubax.com/chapters/hardware/fg40.html#interface-and-power-supply) for product-specific setup and operating limits. +::: + +## PX4 Firmware Support + +DroneCAN EPM operation is supported from PX4 v1.18 — the first PX4 version that supports gripper command forwarding using the DroneCAN hardpoint message ([uavcan.equipment.hardpoint](https://dronecan.github.io/Specification/7._List_of_standard_data_types/#uavcanequipmenthardpoint)). + +The flight controller firmware must include both of the following modules (and of course the board must support CAN): + +```ini +CONFIG_DRIVERS_UAVCAN=y +CONFIG_MODULES_PAYLOAD_DELIVERER=y +``` + +You can check or add these settings in the board's `default.px4board` file under `boards///`, or use the [PX4 board configuration tool](../hardware/porting_guide_config.md#px4-menuconfig-setup). + +Then [build PX4 and upload the firmware](../dev_setup/building_px4.md). +For an FMUv6X flight controller this would be done as follows (replace `px4_fmu-v6x_default` with the build target for your flight controller): + +```sh +git submodule update --init --recursive +make px4_fmu-v6x_default +make px4_fmu-v6x_default upload +``` + +## Налаштування програмного забезпечення + +:::warning +FluxGrip can briefly draw a high current when switching. +FluxGrip can be powered from the flight controller power rail for testing purposes, provided that the rail meets its voltage and current requirements. +For normal operation, use a suitable separate power supply for the EPM to reduce the load on the flight controller power rail and improve switching performance. +Follow the voltage, current, and wiring requirements in the [FluxGrip documentation](https://fluxgrip.zubax.com/chapters/hardware/fg40.html#interface-and-power-supply). +::: + +1. Connect FluxGrip to the flight controller's `CAN1` port. +2. Connect FluxGrip to its power supply. +3. Check that the CAN bus is wired and terminated as described in [CAN Wiring](../can/index.md#wiring). +4. Power the flight controller and FluxGrip. + +When communication is working, the left CAN LED on FluxGrip is solid and the adjacent CAN LED blinks. + +## Конфігурація PX4 + +Set the following parameters in QGroundControl, and then reboot the flight controller: + +| Parameter | Значення | Опис | +| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| [UAVCAN_ENABLE](../advanced_config/parameter_reference.md#UAVCAN_ENABLE) | `Sensors Automatic Config` (`2`) | Enables DroneCAN and dynamic node allocation. Use `3` instead if the vehicle also uses DroneCAN ESCs. | +| [UAVCAN_BITRATE](../advanced_config/parameter_reference.md#UAVCAN_BITRATE) | `1000000` | Sets the CAN bus bitrate to 1 Mbit/s. | +| [PD_GRIPPER_TYPE](../advanced_config/parameter_reference.md#PD_GRIPPER_TYPE) | `Binary Grab/Release` (`0`) | Enables the binary grab/release gripper interface used by the EPM. | + +:::info +You do not need to map a flight controller actuator output when controlling the EPM over DroneCAN. +No DroneCAN subscription or publication parameters (`UAVCAN_SUB_*`, `UAVCAN_PUB_*`, `CANNODE_SUB_*`, or `CANNODE_PUB_*`) are required. +PX4 automatically publishes the hardpoint command when DroneCAN is enabled. +::: + +## Test the Gripper + +:::warning +Remove the propellers and secure the vehicle before testing. +The payload deliverer commands the gripper to the grab state when the module starts, so the EPM will magnetize during startup. +::: + +Open the QGroundControl [MAVLink Shell](../debug/mavlink_shell.md), then verify that the DroneCAN driver and payload deliverer are running: + +```sh +uavcan status +payload_deliverer status +``` + +Test both gripper states: + +```sh +# Release the payload (magnet off) +payload_deliverer gripper_open + +# Grab the payload (magnet on) +payload_deliverer gripper_close +``` + +PX4 sends these as `MAV_CMD_DO_GRIPPER` commands for hardpoint ID `0`. +The release command has action `0`, and the grab command has action `1`. + +After testing, the EPM can be operated using any of the methods described in [Grippers > Using a Gripper](gripper.md#using-a-gripper). + +## Статус LED + +The Magnet LED, located to the right of the CAN LEDs, indicates the EPM state: + +| State | Значення | +| -------------- | -------------------------------------------------------------------- | +| Detect/Unknown | Initial state after FluxGrip is powered on. | +| On | The EPM is magnetized and holding the payload. | +| Off | The EPM is demagnetized and the payload is released. | +| Fade-in | FluxGrip is switching to the magnetized state. | +| Fade-out | FluxGrip is switching to the demagnetized state. | + +If the Magnet LED blinks rapidly, FluxGrip failed to magnetize. +Check the power supply and wiring, and contact [Zubax support](mailto:support@zubax.com) if the problem persists. + +## Усунення проблем + +If FluxGrip does not respond: + +1. Run `uavcan status` and confirm that the DroneCAN driver is running and FluxGrip is visible on the bus. +2. Check that `UAVCAN_ENABLE` and `UAVCAN_BITRATE` are set as described above. +3. Check CAN wiring, bus termination, and the EPM power supply. +4. Run `payload_deliverer status` and confirm that the gripper is valid. +5. If `payload_deliverer` is not available, rebuild the firmware with `CONFIG_MODULES_PAYLOAD_DELIVERER=y`. + +## Дивіться також + +- [FluxGrip: Integration with PX4](https://forum.zubax.com/t/fluxgrip-integration-with-px4/2863) (Zubax Forum) +- [FluxGrip Quickstart Guide](https://forum.zubax.com/t/fluxgrip-quickstart-guide/2335) (Zubax Forum) +- [DroneCAN](../dronecan/index.md) +- [Grippers](gripper.md) diff --git a/docs/uk/releases/main.md b/docs/uk/releases/main.md index 8e7c20b930a..dbda66c00db 100644 --- a/docs/uk/releases/main.md +++ b/docs/uk/releases/main.md @@ -26,11 +26,12 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ## Основні зміни -- Уточнюється +- **[Motor failure recovery for hexarotors](../config/motor_failure_recovery.md).** On a detected single motor failure the control allocator removes the failed motor and, on a hexarotor, additionally stops ([CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) = `1`) or reverses (`2`) the motor opposite it, recovering the yaw authority that is otherwise lost. Reversing keeps the opposite motor in the allocation and needs a reverse-capable ESC; the reverse thrust the allocator expects from a forward propeller is set with [CA_REV_THR_FRAC](../advanced_config/parameter_reference.md#CA_REV_THR_FRAC) (default `0.4`). Disabled by default. ([PX4-Autopilot#28078](https://github.com/PX4/PX4-Autopilot/pull/28078)) ## Інструкції для оновлення - `COM_ARM_TRAFF` has been replaced by `COM_TRAFF_AVOID`. The old value 3 ("enforce for mission modes only") is migrated to `COM_TRAFF_AVOID=2`, which blocks arming in all modes, not just mission modes. If you relied on being able to arm manually with traffic detected, set `COM_TRAFF_AVOID=1` (warning only) instead. +- **Re-check motor failure handling on hexarotors.** [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) = `1` now also stops the motor opposite the failed one on a hexarotor (previously only the failed motor was removed from the allocation). Other airframes are unaffected, and `CA_FAILURE_MODE=0` (the default) is unchanged. See [Motor Failure Recovery](../config/motor_failure_recovery.md). ([PX4-Autopilot#28078](https://github.com/PX4/PX4-Autopilot/pull/28078)) ## Інші зміни @@ -51,6 +52,9 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Безпека - [Geofence Aware Return mode](../flight_modes/return.md#geofence_awareness). ([PX4-Autopilot#27145: feat(navigator): Geofence Aware RTL](https://github.com/PX4/PX4-Autopilot/pull/27145), [PX4-Autopilot#28001: docs(navigator): [geofence] added some more warnings about limitations](https://github.com/PX4/PX4-Autopilot/pull/28001)). +- [Flight termination](../advanced_config/flight_termination.md) can now be used instead of a Descent mode as a fallback failsafe mode, allowing safer landing for unpiloted vehicles that carry a parachute. + See [Battery level failsafe](../config/safety.md#battery-level-failsafe) ([COM_LOW_BAT_ACT](../advanced_config/parameter_reference.md#COM_LOW_BAT_ACT)) and [Position Loss Failsafe Action](../config/safety.md#position-loss-failsafe-action) (new [COM_POS_FS_ACT](../advanced_config/parameter_reference.md#COM_POS_FS_ACT)). ([PX4-Autopilot#28064: feat(commander): add terminate options for critical battery and lost position failsafes](https://github.com/PX4/PX4-Autopilot/pull/28064)). +- [Motor failure recovery](../config/motor_failure_recovery.md) for hexarotors: on a single motor failure the control allocator removes the failed motor and additionally stops ([CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) = `1`) or reverses (`2`) the motor opposite it to recover the lost yaw authority. Mode `2` requires a reverse-capable ESC and models the reverse thrust of a forward propeller with the new [CA_REV_THR_FRAC](../advanced_config/parameter_reference.md#CA_REV_THR_FRAC) (default `0.4`). Reversible motor outputs on DroneCAN are now sent as signed `RawCommand` values (negative is reverse). ([PX4-Autopilot#28078](https://github.com/PX4/PX4-Autopilot/pull/28078)) ### Оцінки diff --git a/docs/uk/ros2/user_guide.md b/docs/uk/ros2/user_guide.md index 0e337009be6..8df36953032 100644 --- a/docs/uk/ros2/user_guide.md +++ b/docs/uk/ros2/user_guide.md @@ -118,7 +118,7 @@ To install ROS 2 and its dependencies: source /opt/ros/humble/setup.bash && echo "source /opt/ros/humble/setup.bash" >> .bashrc ``` - The instructions above are reproduced from the official installation guide: [Install ROS 2 Humble](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html). + The instructions above are reproduced from the official installation guide: [Install ROS 2 Humble](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html). You can install _either_ the desktop (`ros-humble-desktop`) _or_ bare-bones versions (`ros-humble-ros-base`), _and_ the development tools (`ros-dev-tools`). ::: @@ -605,11 +605,11 @@ For more information see: [ROS 2 Subscriber QoS Settings](#ros-2-subscriber-qos- The lines below create a publisher to the `SensorCombined` uORB topic, which can be matched with one or more compatible ROS 2 subscribers to the `fmu/sensor_combined/out` ROS 2 topic. -````cpp +```cpp private: rclcpp::Subscription::SharedPtr subscription_; }; -```s +``` The instantiation of the `SensorCombinedListener` class as a ROS node is done on the `main` function. @@ -624,7 +624,7 @@ int main(int argc, char *argv[]) rclcpp::shutdown(); return 0; } -```` +``` This particular example has an associated launch file at [launch/sensor_combined_listener.launch.py](https://github.com/PX4/px4_ros_com/blob/main/launch/sensor_combined_listener.launch.py). This allows it to be launched using the [`ros2 launch`](#ros2-launch) command. diff --git a/docs/uk/sim_gazebo_classic/vehicles.md b/docs/uk/sim_gazebo_classic/vehicles.md index 679e9ca16df..959a53c3b0f 100644 --- a/docs/uk/sim_gazebo_classic/vehicles.md +++ b/docs/uk/sim_gazebo_classic/vehicles.md @@ -76,7 +76,7 @@ make px4_sitl gazebo-classic_plane make px4_sitl gazebo-classic_plane_catapult ``` -This model simulates hand/catapult launch, which can be used for [fixed-wing takeoff](../flight_modes_fw/takeoff.md) in position mode, takeoff mode, or missions. +This model simulates hand/catapult launch, which can be used for [fixed-wing takeoff](../flight_modes_fw/takeoff.md) in cruise mode, takeoff mode, or missions. Літак буде автоматично запущено як тільки засіб буде в стані готовності. diff --git a/docs/uk/sim_pterosim/index.md b/docs/uk/sim_pterosim/index.md new file mode 100644 index 00000000000..fe6edf75429 --- /dev/null +++ b/docs/uk/sim_pterosim/index.md @@ -0,0 +1,73 @@ +# PteroSim Simulation + +:::warning +This simulator is [community supported and maintained](../simulation/community_supported_simulators.md). +It may or may not work with current versions of PX4 and may be removed in future releases. +Дивіться [Встановлення інструментарію](../dev_setup/dev_env.md) для інформації про середовища та інструменти, що підтримуються основною командою розробників. +::: + +[PteroSim](https://github.com/PteroLabsAI/PteroSim-UAV-Simulator) is proprietary simulation software that can be used with PX4 for [Software-In-The-Loop (SITL)](../simulation/index.md#sitl-simulation-environment) simulation. +PX4 runs as the flight controller, while PteroSim provides the vehicle dynamics, visual scene, and simulated sensor inputs through a built-in HIL bridge. +PteroSim uses the [Simulator MAVLink API](../simulation/index.md#simulator-mavlink-api) over TCP port `4560` with lockstep synchronization. + +PteroSim runs on **Windows 10/11** and **Ubuntu 22.04+** (64-bit). +Install PteroSim from [GitHub Releases](https://github.com/PteroLabsAI/PteroSim-UAV-Simulator/releases) and set up PX4 SITL using the [PX4 development environment](../dev_setup/dev_env.md). +For full installation, UI walkthrough, and QGroundControl setup, see the [PteroSim PX4 SITL guide](https://pterosimdocs.readthedocs.io/en/latest/sitl_simulation_px4.html). + +## Відео + +PX4 tutorial: + + + +PteroSim demo: + + + +## Підтримувані транспортні засоби + +The free tier includes the **F450** multicopter, which is covered by the setup steps on this page: + +| Транспортний засіб | Тип | PX4 target | +| ------------------ | ------------ | --------------------------------- | +| F450 | Мультикоптер | `make px4_sitl_default none_iris` | + +Paid licenses also include fixed-wing, VTOL, and helicopter templates with PX4 SITL support. +See [pterolabs.ai](https://pterolabs.ai/#pricing) for licensing details. + +## Network Setup + +PX4 connects to PteroSim on TCP port `4560`. + +When PteroSim and PX4 SITL run on the same Ubuntu machine, the default host `localhost` is sufficient. + +When PteroSim runs on Windows and PX4 runs in WSL2, set `PX4_SIM_HOSTNAME` in the WSL2 shell to the Windows host IP before starting PX4: + +```sh +export PX4_SIM_HOSTNAME=$(ip route | awk '/default/ {print $3; exit}') +``` + +Make sure inbound TCP port `4560` is allowed by the firewall on the PteroSim host. + +## Запуск SITL + +1. Start PteroSim, spawn the F450, select **PX4** as the control source, and press **Start**. + +2. Start PX4 SITL with lockstep enabled. Наприклад: + + ```sh + cd PX4-Autopilot + PX4_LOCKSTEP=1 PX4_SIM_SPEED_FACTOR=1 make px4_sitl_default none_iris + ``` + + On Windows with PX4 in WSL2, include `PX4_SIM_HOSTNAME` as shown in [Network Setup](#network-setup). + +3. Connect [QGroundControl](https://qgroundcontrol.com) to PX4 as usual. + +PX4 prints `Simulator connected on TCP port 4560` when the bridge is connected. + +## Усунення проблем + +If PX4 waits for the simulator, verify that PteroSim is running, the simulation has been started, the control source is set to **PX4**, `PX4_SIM_HOSTNAME` points to the PteroSim host when using WSL2, and TCP port `4560` is not blocked. + +If PX4 connects but the aircraft does not respond to commands, verify that the control source is set to **PX4** in PteroSim. diff --git a/docs/uk/simulation/community_supported_simulators.md b/docs/uk/simulation/community_supported_simulators.md index 7e6b2ce8f36..608a429c5e6 100644 --- a/docs/uk/simulation/community_supported_simulators.md +++ b/docs/uk/simulation/community_supported_simulators.md @@ -14,10 +14,11 @@ These simulators are not maintained, tested, or supported, by the core developme | Симулятор | Опис | | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [AirSim](../sim_airsim/README.md) |

Міжплатформовий симулятор який надає фізично та візуально реалістичні симуляції. This simulator is resource intensive, and requires a significantly more powerful computer than the other simulators described here.

Supported Vehicles: Iris (MultiRotor model and a configuration for PX4 QuadRotor in the X configuration).

| | [FlightGear](../sim_flightgear/README.md) |

Симулятор який надає фізично та візуально реалістичні симуляції. Зокрема він може моделювати багато погодних умов, включаючи грози, сніг, дощ та град, а також може симулювати температурні режими та різні типи атмосферних течій. [Симуляція кількох засобів](../sim_flightgear/multi_vehicle.md) також підтримується.

Рухомі засоби, що підтримуються: Літак, Автожир, Ровер

| | [JMAVSim](../sim_jmavsim/index.md) |

A simple multirotor/quad simulator. This was previously part of the PX4 development toolchain but was removed in favour of [Gazebo](../sim_gazebo_gz/index.md).

Supported Vehicles: Quad

| | [JSBSim](../sim_jsbsim/README.md) |

Симулятор, який надає моделі просунутої динаміки польоту. Він може використовуватися для моделювання реалістичної динаміки польоту, заснованої на даних з аеродинамічної труби.

Рухомі засоби, що підтримуються: Літак, Квадрокоптер, Гексакоптер

| -| [AirSim](../sim_airsim/README.md) |

Міжплатформовий симулятор який надає фізично та візуально реалістичні симуляції. This simulator is resource intensive, and requires a significantly more powerful computer than the other simulators described here.

Supported Vehicles: Iris (MultiRotor model and a configuration for PX4 QuadRotor in the X configuration).

| +| [PteroSim](../sim_pterosim/index.md) |

Proprietary high-fidelity UAV simulation built on Unreal Engine 5 and JSBSim. Connects to PX4 SITL over the Simulator MAVLink API with lockstep synchronization.

Supported Vehicles: Free tier: Multicopter. Paid tiers: Fixed-wing, VTOL, Helicopter.

| | [RotorPy](../sim_rotorpy/index.md) |

A Python-based multirotor simulation environment with aerodynamic forces and moments, actuator limits, sensor noise, wind, obstacles, and a Gymnasium interface for research workflows.

Supported Vehicles: Quad

| | [X-Plane](../sim_xplane/index.md) |

A commercial flight simulator using blade element theory for flight dynamics. The PX4 integration uses the community-supported px4xplane bridge plugin.

Preconfigured PX4 targets: Plane, Multicopter, VTOL. Additional X-Plane aircraft or vehicle models can be integrated when PX4 has a matching SITL-capable control path and px4xplane can map the required actuator outputs to writable X-Plane datarefs.

| diff --git a/docs/uk/test_cards/fw_01_manual_modes.md b/docs/uk/test_cards/fw_01_manual_modes.md index 9cfb7a2a382..89e26806027 100644 --- a/docs/uk/test_cards/fw_01_manual_modes.md +++ b/docs/uk/test_cards/fw_01_manual_modes.md @@ -6,7 +6,7 @@ To test that manual flight modes work as expected for fixed wing vehicles. ## Preflight -Ensure that the vehicle can go into Stabilized, Altitude, and Position mode while still on the ground. +Ensure that the vehicle can go into Stabilized, Altitude, and Cruise while still on the ground. ## Flight Tests @@ -30,7 +30,7 @@ Ensure that the vehicle can go into Stabilized, Altitude, and Position mode whil     ❏ Roll/Yaw respond correctly to stick movement -❏ Положення +❏ Cruise     ❏ Vehicle should hold current heading and loiter with stick centered