diff --git a/docs/uk/SUMMARY.md b/docs/uk/SUMMARY.md index 88268c9d130..8fa426cf5da 100644 --- a/docs/uk/SUMMARY.md +++ b/docs/uk/SUMMARY.md @@ -211,6 +211,7 @@ - [ThePeach FCC-R1](flight_controller/thepeach_r1.md) - [AP-H743-R1](flight_controller/x-mav_ap-h743r1.md) - [VOLOLAND NarinFC-H7](flight_controller/vololand_narinfc_h7.md) + - [ZenFC H743](flight_controller/zenfc_h743.md) - [SIYI-UniFC-6-PICO](flight_controller/siyi-unifc-6-pico.md) - [Калібрування рівня горизонту](flight_controller/autopilot_experimental.md) - [BeagleBone Blue](flight_controller/beaglebone_blue.md) @@ -335,6 +336,7 @@ - [Vertiq Motor/ESC Modules](peripherals/vertiq.md) - [VESC Project ESCs](peripherals/vesc.md) - [Zubax Telega ESCs](dronecan/zubax_telega.md) + - [Internal Combustion Engines](actuators/internal_combustion_engine.md) - [Manual Control](config/manual_control.md) - [Радіокерування (RC)](getting_started/rc_transmitter_receiver.md) @@ -586,7 +588,6 @@ - [VehicleAttitudeSetpoint](msg_docs/VehicleAttitudeSetpoint.md) - [VehicleCommand](msg_docs/VehicleCommand.md) - [VehicleCommandAck](msg_docs/VehicleCommandAck.md) - - [VehicleControlMode](msg_docs/VehicleControlMode.md) - [VehicleGlobalPosition](msg_docs/VehicleGlobalPosition.md) - [VehicleLandDetected](msg_docs/VehicleLandDetected.md) - [VehicleLocalPosition](msg_docs/VehicleLocalPosition.md) @@ -605,6 +606,7 @@ - [EventV0](msg_docs/EventV0.md) - [HomePositionV0](msg_docs/HomePositionV0.md) - [HomePositionV1](msg_docs/HomePositionV1.md) + - [ManualControlSetpointV0](msg_docs/ManualControlSetpointV0.md) - [RegisterExtComponentReplyV0](msg_docs/RegisterExtComponentReplyV0.md) - [RegisterExtComponentRequestV0](msg_docs/RegisterExtComponentRequestV0.md) - [RegisterExtComponentRequestV1](msg_docs/RegisterExtComponentRequestV1.md) @@ -669,6 +671,7 @@ - [EstimatorStates](msg_docs/EstimatorStates.md) - [EstimatorStatus](msg_docs/EstimatorStatus.md) - [EstimatorStatusFlags](msg_docs/EstimatorStatusFlags.md) + - [ExternalGimbalManagerStatus](msg_docs/ExternalGimbalManagerStatus.md) - [FailsafeFlags](msg_docs/FailsafeFlags.md) - [FailureDetectorStatus](msg_docs/FailureDetectorStatus.md) - [FailureInjection](msg_docs/FailureInjection.md) @@ -678,6 +681,7 @@ - [FixedWingLateralGuidanceStatus](msg_docs/FixedWingLateralGuidanceStatus.md) - [FixedWingLateralStatus](msg_docs/FixedWingLateralStatus.md) - [FixedWingRunwayControl](msg_docs/FixedWingRunwayControl.md) + - [FixedWingTakeoffStatus](msg_docs/FixedWingTakeoffStatus.md) - [FlightPhaseEstimation](msg_docs/FlightPhaseEstimation.md) - [FollowTarget](msg_docs/FollowTarget.md) - [FollowTargetEstimator](msg_docs/FollowTargetEstimator.md) @@ -694,6 +698,7 @@ - [GimbalManagerInformation](msg_docs/GimbalManagerInformation.md) - [GimbalManagerSetAttitude](msg_docs/GimbalManagerSetAttitude.md) - [GimbalManagerSetManualControl](msg_docs/GimbalManagerSetManualControl.md) + - [GimbalManagerSetPitchyaw](msg_docs/GimbalManagerSetPitchyaw.md) - [GimbalManagerStatus](msg_docs/GimbalManagerStatus.md) - [GpioConfig](msg_docs/GpioConfig.md) - [GpioIn](msg_docs/GpioIn.md) @@ -758,6 +763,7 @@ - [PowerMonitor](msg_docs/PowerMonitor.md) - [PpsCapture](msg_docs/PpsCapture.md) - [PrecLandStatus](msg_docs/PrecLandStatus.md) + - [PrecTakeoffStatus](msg_docs/PrecTakeoffStatus.md) - [PurePursuitStatus](msg_docs/PurePursuitStatus.md) - [PwmInput](msg_docs/PwmInput.md) - [Px4ioStatus](msg_docs/Px4ioStatus.md) @@ -789,6 +795,8 @@ - [SensorCombined](msg_docs/SensorCombined.md) - [SensorCorrection](msg_docs/SensorCorrection.md) - [SensorGnssRelative](msg_docs/SensorGnssRelative.md) + - [SensorGnssRf](msg_docs/SensorGnssRf.md) + - [SensorGnssSpectrum](msg_docs/SensorGnssSpectrum.md) - [SensorGnssStatus](msg_docs/SensorGnssStatus.md) - [SensorGps](msg_docs/SensorGps.md) - [SensorGyro](msg_docs/SensorGyro.md) @@ -822,6 +830,7 @@ - [VehicleAcceleration](msg_docs/VehicleAcceleration.md) - [VehicleAirData](msg_docs/VehicleAirData.md) - [VehicleConstraints](msg_docs/VehicleConstraints.md) + - [VehicleControlMode](msg_docs/VehicleControlMode.md) - [VehicleImu](msg_docs/VehicleImu.md) - [VehicleImuStatus](msg_docs/VehicleImuStatus.md) - [VehicleLocalPositionSetpoint](msg_docs/VehicleLocalPositionSetpoint.md) @@ -934,8 +943,6 @@ - [Симуляція Flightgear](sim_flightgear/index.md) - [Літальні апарати FlightGear](sim_flightgear/vehicles.md) - [Симуляція кількох літальних апаратів з FlightGear](sim_flightgear/multi_vehicle.md) - - [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) @@ -994,6 +1001,8 @@ - [Встановлення на RPi](ros/raspberrypi_installation.md) - [Оцінка зовнішньої позиції (заснована на візуалізації/русі)](ros/external_position_estimation.md) +- [Security](security/index.md) + - [Спільнота](contribute/index.md) - [Дзвінок з розробниками](contribute/dev_call.md) - [Maintainers](contribute/maintainers.md) diff --git a/docs/uk/actuators/index.md b/docs/uk/actuators/index.md index 5e126bbdda6..3eac3bb7d81 100644 --- a/docs/uk/actuators/index.md +++ b/docs/uk/actuators/index.md @@ -10,6 +10,8 @@ - [ESC Калібрування](../advanced_config/esc_calibration.md) — Калібрування для ЕСП зі звичайним PWM (не потрібно для ESC/сервоприводів з DShot/CAN). +- [Internal Combustion Engines](../actuators/internal_combustion_engine.md) — Petrol/nitro engines, including start/stop sequencing and idle RPM control. + ## Дивіться також - [Периферійні пристрої](../peripherals/README.md) - включає неосновні приводи, такі як захвати, парашути, тощо. diff --git a/docs/uk/actuators/internal_combustion_engine.md b/docs/uk/actuators/internal_combustion_engine.md new file mode 100644 index 00000000000..6ab6847e1d8 --- /dev/null +++ b/docs/uk/actuators/internal_combustion_engine.md @@ -0,0 +1,339 @@ +# Internal Combustion Engines (ICE) + +PX4 can operate a single spark-ignition internal combustion engine (ICE) — a petrol/nitro two- or four-stroke engine — as the propulsion system of a fixed-wing, VTOL, or helicopter vehicle. + +Unlike an electric motor, an engine cannot simply be commanded to a thrust value: it has to be _started_ (choke, ignition, electric starter), it can _die_ in flight and need restarting, and it must be kept above a minimum idle speed to keep running at all. +The [`internal_combustion_engine_control`](../modules/modules_system.md#internal-combustion-engine-control) module implements this logic as a state machine that drives four dedicated actuator outputs and closes the loop on a measured engine speed (RPM). + +:::warning +A running combustion engine with a propeller attached is dangerous. +The engine can be commanded to start automatically (for example on arming, or on a VTOL transition to fixed-wing), and the starter motor will crank the propeller without further warning. + +- Always do your first bench tests with the propeller removed. +- For continuous operation without a propeller, a flywheel is recommended. +- Keep clear of the propeller arc whenever the vehicle is powered. +- Verify that the engine stop functionality (ignition off, choke closed) reliably stops the engine before you rely on it. + +::: + +## Hardware Requirements + +- **Throttle servo** connected to a PWM/AUX output. +- **Ignition cut** on an output, typically through a relay or opto-isolated switch that shorts or interrupts the ignition circuit. + Optional. +- **Choke servo** on an output (optional if the engine has no choke, or an automatic one — set [ICE_CHOKE_ST_DUR](../advanced_config/parameter_reference.md#ICE_CHOKE_ST_DUR) to `0` and leave the function unassigned). +- **Electric starter** on an output, typically through a relay or an ESC driving the starter motor. + Optionally, the engine can also be hand-started. +- **RPM sensor** feeding the `RPM Input` function on a timer-capture-capable PWM pin, for example a Hall-effect or optical sensor on the crankshaft, or an ignition-pulse pickup. + + Many engines have a built-in spark-timing sensor that can be used for this. + If yours does not, see [Tachometers](../sensor/tachometers.md) for other options. + +:::warning +RPM feedback is **required**. +The state machine only leaves `Starting` for `Running` once it sees a measured engine speed above [ICE_MIN_RUN_RPM](../advanced_config/parameter_reference.md#ICE_MIN_RUN_RPM). +Without a working RPM sensor the module will exhaust its start attempts and latch into the `Fault` state. +::: + +## Конфігурація прошивки + +The module and the RPM capture driver are not in the default builds. +Add them to the [board configuration](../hardware/porting_guide_config.md) for your flight controller: + +```text +CONFIG_MODULES_INTERNAL_COMBUSTION_ENGINE_CONTROL=y +CONFIG_DRIVERS_RPM_CAPTURE=y +``` + +Both can also be enabled interactively with `make boardconfig`, under **modules** and **drivers** respectively. + +## Налаштування параметрів + +Set the following and reboot: + +- [ICE_EN](../advanced_config/parameter_reference.md#ICE_EN) to `Enabled`. + The startup script only starts the module if this is set. +- [RPM_CAP_ENABLE](../advanced_config/parameter_reference.md#RPM_CAP_ENABLE) to `Enabled`. +- [RPM_PULS_PER_REV](../advanced_config/parameter_reference.md#RPM_PULS_PER_REV) to the number of sensor pulses per crankshaft revolution (for example `2` for a two-magnet setup, or `1` for a single ignition pulse per revolution on a two-stroke). + +Then work through the remaining `ICE_*` parameters: + +- [Actuator Configuration](#actuator-configuration) — wire up the engine outputs. +- [Start/Stop Command Source](#start-stop-command-source) — choose what commands the engine on and off. +- [Idle RPM Governor](#idle-rpm-governor) — set up and tune closed-loop idle, and the `ICE_IDLE_*` parameters. +- [Parameter Reference](#parameter-reference) — the full list, including the start sequence timing. + +## Конфігурація приводу + +Assign the four engine functions and the RPM input in [Actuator Configuration](../config/actuators.md), for example: + +![Actuator setup for ICE, with the engine output functions and the RPM input highlighted](../../assets/hardware/ice/ice_actuator_setup.png) + +Each setpoint is in the range `[0, 1]` and is mapped to the `[-1, 1]` servo range before being scaled to the output's **Minimum**/**Maximum** values. +In other words, a setpoint of `0` produces the configured **Minimum** output and `1` produces the configured **Maximum** output (or the reverse, if **Rev Range** is ticked). + +:::info +When the engine is commanded off, the throttle setpoint is `NAN`, which by definition drives the output to its configured **Disarmed** value rather than to **Minimum**. +This lets you park the throttle servo at an idle-stop position that is different from the closed-throttle position used to switch off the engine. + +The throttle output also goes to _Disarmed_ while the engine is running if the [idle governor](#idle-rpm-governor) is disabled and the throttle demand drops to near zero (the fixed-wing controller stops the motor below 2% thrust). +::: + +Points to note when setting the values: + +- `IC Engine Throttle` uses **Minimum** for closed throttle and **Maximum** for full throttle. + Setting **Disarmed** to a value other than **Minimum** parks the servo at an idle stop when the engine is off, rather than at closed throttle. +- `IC Engine Choke` uses **Minimum** for choke open and **Maximum** for choke closed; tick **Rev Range** if the servo linkage is inverted. +- `IC Engine Ignition` and `IC Engine Starter` behave as on/off outputs: **Minimum** is "off" and **Maximum** is "on". + Set both values so that the relay switches reliably, and make sure **Disarmed** corresponds to ignition off and starter off. +- `RPM Input` must be on a channel that supports timer capture on your board. + +:::tip +In the example above the **Actuators** tab stays red in the sidebar, and the page shows "One or more actuator still needs to be assigned to an output". +This is expected for an engine setup and does not stop the engine from running: the airframe's `Motor 1` slot is deliberately left unassigned, because the throttle reaches the servo through `IC Engine Throttle` instead — see [How It Works](#how-it-works). +::: + +:::warning +While the vehicle is disarmed, every output — including ignition, choke, and starter — is held at its **Disarmed** value, regardless of what the module commands. +The engine can only be commanded when [armed or prearmed](../advanced_config/prearm_arm_disarm.md). +::: + +Whether prearming happens at all is set by [COM_PREARM_MODE](../advanced_config/parameter_reference.md#COM_PREARM_MODE), which matters if you want to start the engine before arming (for example from an AUX switch, see [Start/Stop Command Source](#start-stop-command-source)): + +| `COM_PREARM_MODE` | Effect on the engine outputs | +| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Disabled` (default) | Never prearms, so the outputs stay at their **Disarmed** values until the vehicle is armed. | +| `Safety button` | Outputs become live once the safety switch is released. Has no effect on boards that have no safety button — prearm then never engages. | +| `Always` | Outputs become live 5 s after boot. | + +:::warning +With `Always` the ignition, choke, and starter outputs are live shortly after power-up, before any arming check has run. +The engine can be commanded to crank on a vehicle that was never armed, so treat the propeller as live whenever the vehicle is powered. +::: + +## Start/Stop Command Source {#start-stop-command-source} + +[ICE_ON_SOURCE](../advanced_config/parameter_reference.md#ICE_ON_SOURCE) selects what asks for the engine to run: + +| Значення | Engine is requested on when | +| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `On arming - disarming` (0) | The vehicle is armed. This is the default. | +| `Aux1` (1) | The AUX1 manual control channel is above `0.5`; requested off when it goes below `-0.5`. Map a switch to it with `RC_MAP_AUX1`. | +| `Aux2` (2) | As above, using AUX2 and `RC_MAP_AUX2`. | +| `On Vtol Transitions` (3) | The vehicle is in fixed-wing mode or transitioning to fixed-wing. Use this on a hybrid VTOL where the engine only drives the pusher/forward propeller. | + +:::info +For the AUX sources, values between `-0.5` and `0.5` leave the request unchanged. +This dead zone means a three-position switch has a middle position that does not change the engine state, and it prevents a channel that is momentarily centred (or lost and defaulted to zero) from cutting the engine. +::: + +## Idle RPM Governor + +Left at a fixed low throttle, an engine tends either to die or to sit at an unpredictable idle speed that depends on temperature, air density, and mixture. +The idle governor closes the loop on measured RPM whenever the throttle demand is low, keeping the engine alive and ready to accelerate. + +It is enabled by setting [ICE_IDLE_RPM](../advanced_config/parameter_reference.md#ICE_IDLE_RPM) to a non-zero idle speed. +When enabled, the `Running` state has two sub-states, reported in `InternalCombustionEngineStatus.substate`: + +- `Run` — the throttle demand from allocation is passed straight through. +- `Idle` — the throttle output is produced by the governor instead. + +The module enters `Idle` when the throttle demand drops below 2% (or becomes invalid, i.e. the vehicle is disarmed), **or** whenever the measured RPM falls below the idle setpoint. +The second condition is what catches a sagging engine: even at high commanded throttle, if the engine is being dragged below its idle speed the governor takes over and pushes the throttle to recover it. +It leaves `Idle` again as soon as the throttle demand exceeds the governor's current output, so the handover happens without a step in the output. + +### Control Structure + +The governor is a feed-forward plus PI controller with output clamped to `[0, 1]`: + +``` +throttle = ICE_IDLE_THR_FF + P · e + ∫ I · e dt + e = ICE_IDLE_RPM − rpm_estimate + P = ICE_IDLE_RPM_P · 1e-3 + I = ICE_IDLE_RPM_I · 1e-3 +``` + +The `1e-3` scaling is what makes the gains convenient to reason about: + +- [ICE_IDLE_RPM_P](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_P) is the normalised throttle added per **1000 RPM** of error. + `ICE_IDLE_RPM_P = 1` means an engine running 500 RPM slow gets `+0.5` throttle. +- [ICE_IDLE_RPM_I](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_I) is the normalised throttle added per **1000 RPM·s** of accumulated error. + `ICE_IDLE_RPM_I = 1` means a steady 100 RPM error winds the output up by `0.1` every second. +- [ICE_IDLE_THR_FF](../advanced_config/parameter_reference.md#ICE_IDLE_THR_FF) is the throttle that holds the idle speed on its own, so the PI terms only have to correct for the difference. + It is applied as a constant offset whenever the governor is active. + +The integrator is limited to `±1` and uses conditional integration: it stops winding up in whichever direction is already driving the output into saturation. +It is reset to zero every time the engine reaches `Running`, so a start never inherits wind-up from a previous run. + +### Tuning Procedure + +Do this on the ground, with the propeller removed or the vehicle firmly restrained, and with the engine warm. + +1. **Find the idle speed.** + Pick the [ICE_IDLE_RPM](../advanced_config/parameter_reference.md#ICE_IDLE_RPM) you want — low enough not to produce useful thrust, high enough that the engine runs smoothly and can accelerate without hesitating. + The engine's specification or a hand-throttled test is the starting point. +2. **Find the feed-forward.** + With the governor still off (`ICE_IDLE_RPM = 0`), start the engine and hold it at that RPM with the throttle stick in a manual mode. + Read the commanded throttle off the log (`internal_combustion_engine_control.throttle_control`), set [ICE_IDLE_THR_FF](../advanced_config/parameter_reference.md#ICE_IDLE_THR_FF) to it, and set `ICE_IDLE_RPM` to the target. +3. **Verify feed-forward only.** + With both gains still at `0`, restart and let the engine idle. + It should settle near the setpoint. + A large steady offset means the feed-forward is wrong — correct it before adding gains, because the PI terms are only meant to trim. +4. **Add proportional gain.** + Raise [ICE_IDLE_RPM_P](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_P) in steps (`0.2` is a reasonable first step) until the engine recovers briskly when you disturb it — for example by briefly blipping the throttle up and releasing it. + Back off as soon as you see the RPM hunting or the throttle oscillating. +5. **Add integral gain.** + Raise [ICE_IDLE_RPM_I](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_I) just enough to remove any remaining steady-state RPM offset within a few seconds. + Too much integral shows up as a slow oscillation around the setpoint. +6. **Check the handover.** + Sweep the throttle demand up and back down through the idle point and confirm there is no jump or dead spot as the sub-state switches between `Idle` and `Run`. + +The signals to look at in the [flight log](../log/flight_log_analysis.md): + +| Сигнал | Use | +| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `rpm.rpm_estimate` | Measured engine speed — compare against `ICE_IDLE_RPM`. | +| `internal_combustion_engine_control.throttle_control` | Throttle actually commanded, after the governor and the slew rate limit. | +| `internal_combustion_engine_status.substate` | Whether the governor is active (`1` = `Idle`). | +| `internal_combustion_engine_status.pid_idle_rpm_integral` | Integrator state. Parked at `±1` means it is saturated and the feed-forward is far off. | +| `internal_combustion_engine_status.state` | State machine state — reveals unnoticed restarts. | + +Both `internal_combustion_engine_*` topics are logged when the module is running. + +:::info +`rpm_capture` low-pass filters the RPM estimate with a 0.5 s time constant. +That lag is part of the loop you are tuning and puts a practical ceiling on how high the gains can go before the governor starts hunting. +::: + +## Parameter Reference + +| Parameter | Unit | Default | Опис | +| --------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ------- | --------------------------------------------------------------------------------------------------------- | +| [ICE_EN](../advanced_config/parameter_reference.md#ICE_EN) | — | `0` | Start the ICE control module. Requires a reboot. | +| [ICE_ON_SOURCE](../advanced_config/parameter_reference.md#ICE_ON_SOURCE) | — | `0` | What requests the engine on/off: arming, AUX1, AUX2, or VTOL transitions. | +| [ICE_MIN_RUN_RPM](../advanced_config/parameter_reference.md#ICE_MIN_RUN_RPM) | rpm | `2000` | RPM above which the engine counts as running. | +| [ICE_IGN_DELAY](../advanced_config/parameter_reference.md#ICE_IGN_DELAY) | s | `0` | Delay between switching on the ignition and engaging the starter. | +| [ICE_CHOKE_ST_DUR](../advanced_config/parameter_reference.md#ICE_CHOKE_ST_DUR) | s | `5` | How long the choke stays closed on the first start attempt. | +| [ICE_STRT_DUR](../advanced_config/parameter_reference.md#ICE_STRT_DUR) | s | `5` | Cranking time per attempt after the choke opens, before declaring a timeout. | +| [ICE_STRT_THR](../advanced_config/parameter_reference.md#ICE_STRT_THR) | norm | `0.1` | Throttle held during choking and cranking. | +| [ICE_STRT_ATTEMPT](../advanced_config/parameter_reference.md#ICE_STRT_ATTEMPT) | — | `3` | Start attempts before entering `Fault`. `0` means a single attempt. | +| [ICE_RUN_FAULT_D](../advanced_config/parameter_reference.md#ICE_RUN_FAULT_D) | — | `1` | Detect an engine stop while running and attempt a restart. | +| [ICE_STOP_CHOKE](../advanced_config/parameter_reference.md#ICE_STOP_CHOKE) | — | `1` | Close the choke while the engine is stopped or in fault. | +| [ICE_THR_SLEW](../advanced_config/parameter_reference.md#ICE_THR_SLEW) | 1/s | `0.5` | Maximum rate of change of the throttle output. | +| [ICE_IDLE_RPM](../advanced_config/parameter_reference.md#ICE_IDLE_RPM) | rpm | `0` | Idle RPM setpoint. `0` disables the idle governor. | +| [ICE_IDLE_THR_FF](../advanced_config/parameter_reference.md#ICE_IDLE_THR_FF) | norm | `0` | Feed-forward throttle for the idle governor. | +| [ICE_IDLE_RPM_P](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_P) | — | `0` | Idle governor proportional gain, per 1000 RPM of error. | +| [ICE_IDLE_RPM_I](../advanced_config/parameter_reference.md#ICE_IDLE_RPM_I) | — | `0` | Idle governor integral gain, per 1000 RPM·s of error. | + +## Усунення проблем + +| Symptom | Likely cause | +| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Nothing happens at all; `internal_combustion_engine_control status` reports the module is not running | `ICE_EN` is not set, or the module is not in the firmware. Check the [build configuration](#firmware-configuration) and reboot. | +| The engine runs but the state machine goes to [`Fault`](#state-machine) | The RPM sensor is not working or is misconfigured. Check `RPM_CAP_ENABLE`, `RPM_PULS_PER_REV`, and that the sensor is on a capture-capable pin; compare `rpm.rpm_estimate` against a hand tachometer. | +| Outputs never move even though the state machine advances | The vehicle is disarmed and not prearmed, so outputs are held at their **Disarmed** values. See the [note above](#actuator-configuration) on `COM_PREARM_MODE`. | +| The starter cranks but the engine never fires | There may be no fuel in the engine yet. Closing the choke is what draws fuel in, so a dry engine needs a longer priming window — increase `ICE_CHOKE_ST_DUR`. Also check the cranking time (`ICE_STRT_DUR`) and the start throttle (`ICE_STRT_THR`), and note that too much choke floods the engine. | +| The engine fires and then dies just after `Starting` finishes | No idle governor. Set up the [idle governor](#idle-rpm-governor); with `ICE_IDLE_RPM = 0` there is nothing holding the engine up when the throttle demand is zero. | +| Repeated in-air restarts logged as `IC engine fault detected` | `ICE_MIN_RUN_RPM` is set too close to the actual idle speed, so normal idle dips read as an engine stop. Raise the idle setpoint or lower the threshold. | +| The engine bogs down or stalls on throttle up | `ICE_THR_SLEW` is too high for the engine. Reduce it so the throttle opens more gradually. | + +## Інформація для розробників + +### How It Works + +ICE control architecture + +The module sits between the [control allocator](../config/actuators.md) and the outputs: + +- It takes the **throttle demand** from `actuator_motors.control[0]`, i.e. the thrust that allocation computed for `Motor 1`. + ::: info + The engine takes its throttle from whichever rotor the airframe geometry defines as `Motor 1` (rotor 0, `CA_ROTOR0_*`), so you must set up the geometry with the engine as rotor 0. + On a standard VTOL, this means making the pusher rotor 0 rather than the last rotor. + You do not need to (and should not) assign an output for the `Motor 1` function. + +::: +- It takes the **on/off request** from [VehicleStatus](../msg_docs/VehicleStatus.md) (arming state, or the VTOL transition) or from [ManualControlSetpoint](../msg_docs/ManualControlSetpoint.md) (the AUX channels), depending on [ICE_ON_SOURCE](#start-stop-command-source). +- It runs the start/stop state machine and publishes [InternalCombustionEngineControl](../msg_docs/InternalCombustionEngineControl.md) with the setpoints for ignition, throttle, choke, and starter. +- The mixer maps those four fields to the four `IC Engine *` [output functions](../config/actuators.md), which is where you wire the engine hardware. +- It subscribes to [Rpm](../msg_docs/Rpm.md) to know whether the engine is actually turning, and publishes [InternalCombustionEngineStatus](../msg_docs/InternalCombustionEngineStatus.md) with the current state. + +The module runs at 50 Hz. + +#### Функції виводу + +| Output function | Field in `InternalCombustionEngineControl` | Значення | +| -------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `IC Engine Ignition` | `ignition_on` | Spark/ignition enable. `false` cuts the spark and stops the engine (optional: many engine spark boxes always run when powered). | +| `IC Engine Throttle` | `throttle_control` | Throttle servo setpoint, `0`…`1`. `NAN` while the engine is commanded off. | +| `IC Engine Choke` | `choke_control` | Choke servo setpoint, `0`…`1`, where `1` is fully closed (richest mixture). Optional actuator. | +| `IC Engine Starter` | `starter_engine_control` | Electric starter motor setpoint, `0`…`1`. Optional actuator: the engine can also be hand-started. | + +### State Machine + +ICE control state machine + +The module has four states, reported in `InternalCombustionEngineStatus.state`: + +| State | Ignition | Throttle | Choke | Starter | +| ---------- | -------- | ----------------------------------------------- | ------------------------------------- | ------------------------------------- | +| `Stopped` | off | `NAN` (→ **Disarmed** value) | `ICE_STOP_CHOKE ? 1 : 0` | `0` | +| `Starting` | on | `ICE_STRT_THR` | see [start sequence](#start-sequence) | see [start sequence](#start-sequence) | +| `Running` | on | motor 1 demand, or idle governor output | `0` | `0` | +| `Fault` | off | `0` | `ICE_STOP_CHOKE ? 1 : 0` | `0` | + +Transitions: + +- `Stopped` → `Starting` when the engine is requested on and the start attempt budget is not exhausted. +- `Starting` → `Running` as soon as the measured RPM exceeds [ICE_MIN_RUN_RPM](../advanced_config/parameter_reference.md#ICE_MIN_RUN_RPM). + This can happen part way through an attempt. +- `Starting` → `Fault` when all attempts have been used without the engine coming up. +- `Running` → `Starting` if the RPM drops back below the threshold and [ICE_RUN_FAULT_D](../advanced_config/parameter_reference.md#ICE_RUN_FAULT_D) is enabled — this is the automatic in-air restart. + An `IC engine fault detected` event is emitted. +- Any state → `Stopped` when the engine is requested off. + This also resets the attempt counter, so switching the request off and on again is the way to clear a `Fault`. + +Both `Starting` and `Running` have sub-states, reported in `InternalCombustionEngineStatus.substate`. +`Starting` alternates between cranking and a one-second rest between attempts (see [Start Sequence](#start-sequence)), and `Running` switches between passing the throttle demand straight through and running the [idle governor](#idle-rpm-governor). + +:::info +The throttle setpoint is rate limited by [ICE_THR_SLEW](../advanced_config/parameter_reference.md#ICE_THR_SLEW) in all states, which protects the engine from abrupt throttle steps that would make it bog down or stall. +The limit does not apply to the `NAN` used in `Stopped`; the slew state is reset to zero instead, so the next start ramps up from closed throttle. +::: + +#### Start Sequence + +One start attempt runs the following timeline, measured from entry into the attempt: + +| From | To | Ignition | Choke | Starter | Throttle | +| ---------------------------------- | ------------------------------------------------- | -------- | ----- | ------- | -------------- | +| `0` | `ICE_IGN_DELAY` | on | `1` | `0` | `ICE_STRT_THR` | +| `ICE_IGN_DELAY` | `ICE_IGN_DELAY + ICE_CHOKE_ST_DUR` | on | `1` | `1` | `ICE_STRT_THR` | +| `ICE_IGN_DELAY + ICE_CHOKE_ST_DUR` | `ICE_IGN_DELAY + ICE_CHOKE_ST_DUR + ICE_STRT_DUR` | on | `0` | `1` | `ICE_STRT_THR` | + +- [ICE_IGN_DELAY](../advanced_config/parameter_reference.md#ICE_IGN_DELAY) holds the starter off for a moment after the ignition is switched on, for ignition systems that need time to come up. +- [ICE_CHOKE_ST_DUR](../advanced_config/parameter_reference.md#ICE_CHOKE_ST_DUR) is how long the choke stays closed. + Note that the starter is already cranking during this window. +- [ICE_STRT_DUR](../advanced_config/parameter_reference.md#ICE_STRT_DUR) is how much longer the starter cranks with the choke open before the attempt is declared timed out. + +If the attempt times out, the module rests for **1 second** with the ignition off and the throttle at its disarmed value (to reduce starter motor wear) and then begins the next attempt. + +:::info +Choke and ignition delay are applied on the **first** attempt only. +Retries crank with the choke open immediately, on the assumption that the first attempt already primed the engine and that further choking would flood it. +::: + +[ICE_STRT_ATTEMPT](../advanced_config/parameter_reference.md#ICE_STRT_ATTEMPT) caps the number of attempts before the module gives up and enters `Fault`. +A value of `0` means a single attempt with no retry. + +### Status and Telemetry + +- [InternalCombustionEngineControl](../msg_docs/InternalCombustionEngineControl.md) carries the commanded setpoints and the current user request. +- [InternalCombustionEngineStatus](../msg_docs/InternalCombustionEngineStatus.md) carries the state machine state and the governor's integrator. + The same topic is used by the [DroneCAN](../dronecan/index.md) ICE bridge (`UAVCAN_SUB_ICE`), which fills in the richer engine telemetry — temperatures, pressures, fuel flow — reported by a smart ECU. +- The status topic is streamed to a ground station as the MAVLink [EFI_STATUS](https://mavlink.io/en/messages/common.html#EFI_STATUS) message. + +## Дивіться також + +- [`internal_combustion_engine_control`](../modules/modules_system.md#internal-combustion-engine-control) — module command line reference. +- [Actuator Configuration](../config/actuators.md) — assigning output functions. +- [DroneCAN Peripherals](../dronecan/index.md) — for engines with a smart ECU reporting over DroneCAN. diff --git a/docs/uk/advanced/gimbal_control.md b/docs/uk/advanced/gimbal_control.md index c0ffaf14417..0dbbe992a15 100644 --- a/docs/uk/advanced/gimbal_control.md +++ b/docs/uk/advanced/gimbal_control.md @@ -29,10 +29,17 @@ See [Fixed Attitude Gimbal](#fixed-attitude-gimbal) below. Вихід налаштовується за допомогою параметра [MNT_MODE_OUT](../advanced_config/parameter_reference.md#MNT_MODE_OUT). Усталеним налаштування виходу PXM є (`AUX (0)`). Якщо ваш гімбал підтримує [Протокол гімбала MAVLink v2](https://mavlink.io/en/services/gimbal_v2.html), ви повинні замість цього вибрати `Протокол гімбала MAVLink v2 (2)`. +If the gimbal has its own gimbal manager, select `Forward to external gimbal manager (3)` instead (see [External Gimbal Manager](#external-gimbal-manager)). +A second gimbal can be driven in parallel using [MNT_MODE_OUT2](../advanced_config/parameter_reference.md#MNT_MODE_OUT2) (see [Multiple Gimbal Support](#multiple-gimbal-support)). Повний список параметрів для налаштування драйвера кріплення можна знайти в [Довідці параметрів > Кріплення](../advanced_config/parameter_reference.md#mount). Нижче наведено відповідні налаштування для декількох поширених конфігурацій гімбалів. +:::tip +To debug a gimbal setup, use `gimbal status` in the MAVLink console to see the active inputs and outputs, and `gimbal test` to move the gimbal without any input. +See [Driver Testing](#driver-testing). +::: + ## MAVLink Gimbal (MNT_MODE_OUT=MAVLINK) Кожен фізичний пристрій гімбала в системі повинен мати свій власний високорівневий менеджер гімбала, який може бути виявлений наземною станцією за допомогою протоколу MAVLink для гімбалів. @@ -51,12 +58,24 @@ PX4 може бути налаштований як менеджер гімба - [MAV_1_FORWARD](../advanced_config/parameter_reference.md#MAV_1_FORWARD) to **Enabled** (Note strictly necessary as forwarding is enabled when `MAV_1_MODE` is set to Gimbal). - [SER_TEL2_BAUD](../advanced_config/parameter_reference.md#SER_TEL2_BAUD) на рекомендовану виробником швидкість передачі даних. +### External Gimbal Manager + +Some gimbals implement the gimbal _manager_ protocol themselves, rather than only the gimbal device protocol. +A ground station controls such a gimbal directly, PX4 does not need to manage it. + +Set [MNT_MODE_OUT](../advanced_config/parameter_reference.md#MNT_MODE_OUT) to `Forward to external gimbal manager (3)` so that PX4 forwards onboard inputs (RC, ROI) to it as well. +PX4 then acts as a client of that manager: it acquires control while there is onboard input and releases it afterwards, and the manager arbitrates between PX4 and the ground station. + +Connect the gimbal to a MAVLink instance in `Gimbal` (or `Onboard`) mode with forwarding enabled, as described [above](#mavlink-gimbal-mnt-mode-out-mavlink). +Forwarding is required so that the ground station and the gimbal manager can see each other, and PX4 discovers the manager from the `GIMBAL_MANAGER_STATUS` it streams. + ### Підтримка декількох Gimbal -PX4 може автоматично створити менеджер гімбала для підключеного гімбала з PWM або першого пристрою гімбала MAVLink з тим самим ідентифікатором системи, який виявляється на будь-якому інтерфейсі. -Він не автоматично створює менеджер гімбала для будь-яких інших пристроїв гімбала MAVLink, які виявляються. +PX4 creates one gimbal manager, for the gimbal driven by `MNT_MODE_OUT`. -You can support additional MAVLink gimbals provided that they: +A second gimbal can be driven in parallel with the same inputs by setting [MNT_MODE_OUT2](../advanced_config/parameter_reference.md#MNT_MODE_OUT2) to a different output mode than `MNT_MODE_OUT`, e.g. a MAVLink gimbal (`2`) and a gimbal with an [external gimbal manager](#external-gimbal-manager) (`3`). + +Additional MAVLink gimbals that are not driven by PX4 are supported provided that they: - Implement the gimbal _manager_ protocol. - Становлять видимими для наземної станції та PX4 у мережі MAVLink. diff --git a/docs/uk/advanced_features/detect_and_avoid.md b/docs/uk/advanced_features/detect_and_avoid.md index f6d5751f21d..93bc0ef3064 100644 --- a/docs/uk/advanced_features/detect_and_avoid.md +++ b/docs/uk/advanced_features/detect_and_avoid.md @@ -877,8 +877,8 @@ Click here to view the expected results - Hold triggered on augmented WC breach: `DAA 9F3FA3: Hold! lvl 1. 2366 m.` - `DAA Main: 9F3FA3 lvl UP 2. 1773 m.` - Return triggered on augmented NMAC breach: `DAA 9F3FA3: Return! lvl 2. 1773 m.` - - `[commander] Returning to launch` - - `[navigator] RTL: start return at 519 m (30 m above destination)` + - `[commander] Switching to Return` + - `[navigator] Return: start return at 519 m (30 m above destination)` - `DAA Main: 9F3FA3 lvl 2. 849 m.` (the periodic most-urgent status, emitted because the level held at 2 for [DAA_NOTIF_STATE](../advanced_config/parameter_reference.md#DAA_NOTIF_STATE) since the previous `9F3FA3` message) - `DAA Main: 9F3FA3 lvl UP 3. 527 m.` - Land triggered on WC breach: `DAA 9F3FA3: Land! lvl 3. 527 m.` diff --git a/docs/uk/advanced_features/precland.md b/docs/uk/advanced_features/precland.md index 65fa7727804..f84a384eed0 100644 --- a/docs/uk/advanced_features/precland.md +++ b/docs/uk/advanced_features/precland.md @@ -186,18 +186,18 @@ CONFIG_MODULES_LANDING_TARGET_ESTIMATOR=y Інші важливі параметри перераховані в посиланнях на параметри в референсі параметрів під [Landing_target estimator](../advanced_config/parameter_reference.md#landing-target-estimator) та [Precision land](../advanced_config/parameter_reference.md#precision-land). Деякі з найбільш корисних перераховані нижче. -| Parameter | Опис | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [SENS_EN_IRLOCK](../advanced_config/parameter_reference.md#SENS_EN_IRLOCK) | IR-LOCK Sensor (зовнішній I2C). Disable: `0` (default): Enable: `1`). | -| [LTEST_MODE](../advanced_config/parameter_reference.md#LTEST_MODE) | Landing target is moving (`0`) or stationary (`1`). За замовчуванням - рухома. | -| [PLD_HACC_RAD](../advanced_config/parameter_reference.md#PLD_HACC_RAD) | Горизонтальний радіус прийняття, всередині якого транспортний засіб почне спускатися. За замовчуванням - 0,2 м. | -| [PLD_MOVING_T_MIN](../advanced_config/parameter_reference.md#PLD_MOVING_T_MIN) | Minimum moving-target prediction time for the precision landing setpoint. | -| [PLD_MOVING_T_MAX](../advanced_config/parameter_reference.md#PLD_MOVING_T_MAX) | Maximum moving-target prediction time for the precision landing setpoint. | -| [PLD_BTOUT](../advanced_config/parameter_reference.md#PLD_BTOUT) | Таймаут цілі посадки, після якого припускається, що ціль втрачена. За замовчуванням - 5 секунд. | -| [PLD_FAPPR_ALT](../advanced_config/parameter_reference.md#PLD_FAPPR_ALT) | Висота останнього підходу. Висота останнього підходу. За замовчуванням - 0,1 метра. | -| [PLD_MAX_SRCH](../advanced_config/parameter_reference.md#PLD_MAX_SRCH) | Maximum number of search attempts in a required landing. | -| [PLD_YAW_EN](../advanced_config/parameter_reference.md#PLD_YAW_EN) | Enable yaw alignment during precision landing when target orientation is available. | -| [RTL_PLD_MD](../advanced_config/parameter_reference.md#RTL_PLD_MD) | Режим точної посадки RTL. `0`: disabled, `1`: [Opportunistic](#opportunistic-mode), `2`: [Required](#required-mode). | +| Parameter | Опис | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [SENS_EN_IRLOCK](../advanced_config/parameter_reference.md#SENS_EN_IRLOCK) | IR-LOCK Sensor (зовнішній I2C). Disable: `0` (default): Enable: `1`). | +| [LTEST_MODE](../advanced_config/parameter_reference.md#LTEST_MODE) | Landing target is moving (`0`) or stationary (`1`). За замовчуванням - рухома. | +| [PLD_HACC_RAD](../advanced_config/parameter_reference.md#PLD_HACC_RAD) | Горизонтальний радіус прийняття, всередині якого транспортний засіб почне спускатися. За замовчуванням - 0,2 м. | +| [PLD_MOVING_T_MIN](../advanced_config/parameter_reference.md#PLD_MOVING_T_MIN) | Minimum moving-target prediction time for the precision landing setpoint. | +| [PLD_MOVING_T_MAX](../advanced_config/parameter_reference.md#PLD_MOVING_T_MAX) | Maximum moving-target prediction time for the precision landing setpoint. | +| [PLD_BTOUT](../advanced_config/parameter_reference.md#PLD_BTOUT) | Таймаут цілі посадки, після якого припускається, що ціль втрачена. За замовчуванням - 5 секунд. | +| [PLD_FAPPR_ALT](../advanced_config/parameter_reference.md#PLD_FAPPR_ALT) | Висота останнього підходу. Висота останнього підходу. За замовчуванням - 0,1 метра. | +| [PLD_MAX_SRCH](../advanced_config/parameter_reference.md#PLD_MAX_SRCH) | Maximum number of search attempts in a required landing. | +| [PLD_YAW_EN](../advanced_config/parameter_reference.md#PLD_YAW_EN) | Enable yaw alignment during precision landing when target orientation is available. | +| [RTL_PLD_MD](../advanced_config/parameter_reference.md#RTL_PLD_MD) | Return precision land mode. `0`: disabled, `1`: [Opportunistic](#opportunistic-mode), `2`: [Required](#required-mode). | ### Масштабування ІЧ-маяка diff --git a/docs/uk/companion_computer/ark_jetson_pab_carrier.md b/docs/uk/companion_computer/ark_jetson_pab_carrier.md index 8a3425dfb2a..cd8575b39c2 100644 --- a/docs/uk/companion_computer/ark_jetson_pab_carrier.md +++ b/docs/uk/companion_computer/ark_jetson_pab_carrier.md @@ -7,7 +7,7 @@ The [ARK Jetson Pixhawk Autopilot Bus (PAB) Carrier](https://arkelectron.gitbook ## Де купити - [ARK Jetson PAB Carrier](https://arkelectron.com/product/ark-jetson-pab-carrier/) -- [ARK Jetson Orin NX NDAA Bundle](https://arkelectron.com/product/ark-jetson-orin-nx-ndaa-bundle/) +- [ARK Jetson Orin NX NDAA Bundle](https://arkelectron.com/product/ark-jetson-pab-ndaa-bundle/?attribute_pa_orin-module=orin-nx-16gb) ## Характеристики @@ -75,7 +75,7 @@ Two helper scripts are available for resetting the flight controller: ## Flashing Guide -If you've purchased the [ARK Jetson Orin NX NDAA Bundle](https://arkelectron.com/product/ark-jetson-orin-nx-ndaa-bundle/), Jetpack 6 (Ubuntu 22.04) and [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) are pre-installed. +If you've purchased the [ARK Jetson Orin NX NDAA Bundle](https://arkelectron.com/product/ark-jetson-pab-ndaa-bundle/?attribute_pa_orin-module=orin-nx-16gb), Jetpack 6 (Ubuntu 22.04) and [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) are pre-installed. ### ARK Jetson Kernel GitHub Repository diff --git a/docs/uk/companion_computer/video_streaming_wfb_ng_wifi.md b/docs/uk/companion_computer/video_streaming_wfb_ng_wifi.md index 9abe46e1a4c..3e307b84efd 100644 --- a/docs/uk/companion_computer/video_streaming_wfb_ng_wifi.md +++ b/docs/uk/companion_computer/video_streaming_wfb_ng_wifi.md @@ -147,7 +147,7 @@ For simple cases you can use omnidirectional antennas with linear (that bundled :::warning Не використовуйте діапазон, на якому працює RC TX! -Або налаштуйте RTL належним чином, щоб уникнути втрати моделі. +Or set up Return mode properly to avoid model loss. ::: **Q:** _Чи підтримується лише Raspberry PI?_ diff --git a/docs/uk/concept/events_interface.md b/docs/uk/concept/events_interface.md index d82d95854b5..dad4b502ee4 100644 --- a/docs/uk/concept/events_interface.md +++ b/docs/uk/concept/events_interface.md @@ -96,7 +96,7 @@ events::send(events::ID("event_name"), - Above we specify a separate external and internal log level, which are the levels displayed to GCS users and in the log file, respectively: `{events::Log::Error, events::LogInternal::Info}`. For the majority of cases you can pass a single log level, and this will be used for both external and internal cases. There are cases it makes sense to have two different log levels. - For example an RTL failsafe action: the user should see it as Warning/Error, whereas in the log, it is an expected system response, so it can be set to `Info`. + For example a Return failsafe action: the user should see it as Warning/Error, whereas in the log, it is an expected system response, so it can be set to `Info`. - **Повідомлення про подію**: - Коротке повідомлення про подію в один рядок. diff --git a/docs/uk/config/safety.md b/docs/uk/config/safety.md index 75c05c03c0e..33425f02e3b 100644 --- a/docs/uk/config/safety.md +++ b/docs/uk/config/safety.md @@ -137,12 +137,12 @@ PX4 and the receiver may also need to be configured in order to _detect RC loss_ Нижче наведено додаткові (і базові) налаштування параметрів. -| Parameter | Налаштування | Опис | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [COM_RC_LOSS_T](../advanced_config/parameter_reference.md#COM_RC_LOSS_T) | Аварійний режим втрати ручного керування Timeout | Час після отримання останньої встановленої точки від вибраного джерела керування вручну, після якого керування вважається втраченим. This must be kept short because the vehicle will continue to fly using the last known stick position until the timeout triggers. | -| [COM_FAIL_ACT_T](../advanced_config/parameter_reference.md#COM_FAIL_ACT_T) | Затримка відмови від дії | Delay in seconds between failsafe condition being triggered (`COM_RC_LOSS_T`) and failsafe action (RTL, Land, Hold). У цьому стані транспортний засіб очікує в режимі утримання на повторне підключення джерела керування вручну. Це може бути встановлено довше для довгих польотів, щоб втрата інтермітентного з'єднання не викликала негайного виклику аварійного режиму. Це може бути рівним нулю, щоб аварійний запобіжник спрацював негайно. | -| [NAV_RCL_ACT](../advanced_config/parameter_reference.md#NAV_RCL_ACT) | Моделювання відмовостійкості | Disabled, Loiter, Return, Land, Disarm, Terminate, Hold mode (no failsafe). | -| [COM_RCL_EXCEPT](../advanced_config/parameter_reference.md#COM_RCL_EXCEPT) | Виключення втрат RC | Set modes in which manual control loss is ignored. | +| Parameter | Налаштування | Опис | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [COM_RC_LOSS_T](../advanced_config/parameter_reference.md#COM_RC_LOSS_T) | Аварійний режим втрати ручного керування Timeout | Час після отримання останньої встановленої точки від вибраного джерела керування вручну, після якого керування вважається втраченим. This must be kept short because the vehicle will continue to fly using the last known stick position until the timeout triggers. | +| [COM_FAIL_ACT_T](../advanced_config/parameter_reference.md#COM_FAIL_ACT_T) | Затримка відмови від дії | Delay in seconds between failsafe condition being triggered (`COM_RC_LOSS_T`) and failsafe action (Return, Land, Hold). У цьому стані транспортний засіб очікує в режимі утримання на повторне підключення джерела керування вручну. Це може бути встановлено довше для довгих польотів, щоб втрата інтермітентного з'єднання не викликала негайного виклику аварійного режиму. Це може бути рівним нулю, щоб аварійний запобіжник спрацював негайно. | +| [NAV_RCL_ACT](../advanced_config/parameter_reference.md#NAV_RCL_ACT) | Моделювання відмовостійкості | Disabled, Loiter, Return, Land, Disarm, Terminate, Hold mode (no failsafe). | +| [COM_RCL_EXCEPT](../advanced_config/parameter_reference.md#COM_RCL_EXCEPT) | Виключення втрат RC | Set modes in which manual control loss is ignored. | ### Hold Mode (No Failsafe) diff --git a/docs/uk/config_mc/racer_setup.md b/docs/uk/config_mc/racer_setup.md index 0a91db1bbe6..dd0d9ee96f5 100644 --- a/docs/uk/config_mc/racer_setup.md +++ b/docs/uk/config_mc/racer_setup.md @@ -146,6 +146,7 @@ For information see: [Filter/Control Latency Tuning](../config_mc/filter_tuning. :::tip You can use the approach described in [Basic MC PID tuning](../config_mc/pid_tuning_guide_multicopter_basic.md) to tune the frame, but you will need to use the [Advanced Multicopter PID Tuning Guide (Advanced/Detailed)](../config_mc/pid_tuning_guide_multicopter.md#thrust-curve) to understand how to tune the thrust curve. +::: ### Режим польоту diff --git a/docs/uk/debug/failure_injection.md b/docs/uk/debug/failure_injection.md index 5f1c4ea063d..8239880e175 100644 --- a/docs/uk/debug/failure_injection.md +++ b/docs/uk/debug/failure_injection.md @@ -14,21 +14,21 @@ What differs is whether a _consumer_ applies the failure, and that depends on th The table lists the failure types that actually take effect per environment: `off`, `stuck`, `wrong` (`ok` is not listed, but clears an active injection on all environments). A `—` means the module still accepts the command, but no consumer applies it in that environment. -| Component | [Gazebo] (gz) | [SIH] | `simulator_mavlink` (Gazebo Classic/JMAVSim) | Апаратне забезпечення(Hardware) | -| ----------------- | ----------------------- | ----------------------- | --------------------------------------------------------------- | -------------------------------------------------- | -| `gyro` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | -| `accel` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | -| `mag` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | -| `baro` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | -| `distance_sensor` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | -| `gps` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | -| `airspeed` | `off`, `stuck`, `wrong` | — | `off`, `wrong` | — | -| `vio` | — | — | `off` | — | -| `battery` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | -| `traffic` | `off` | `off` | `off` | `off` | -| `motor` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | -| `esc` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | -| `can` | — | — | — | `off` | +| Component | [Gazebo] (gz) | [SIH] | `simulator_mavlink` (Gazebo Classic) | Апаратне забезпечення(Hardware) | +| ----------------- | ----------------------- | ----------------------- | ------------------------------------------------------- | -------------------------------------------------- | +| `gyro` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | +| `accel` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | +| `mag` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | +| `baro` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | +| `distance_sensor` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | `off`, `stuck` | +| `gps` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | `off`, `stuck`, `wrong` | +| `airspeed` | `off`, `stuck`, `wrong` | — | `off`, `wrong` | — | +| `vio` | — | — | `off` | — | +| `battery` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | +| `traffic` | `off` | `off` | `off` | `off` | +| `motor` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | +| `esc` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | `off`, `wrong` | +| `can` | — | — | — | `off` | [SIH]: ../sim_sih/index.md [Gazebo]: ../sim_gazebo_gz/index.md diff --git a/docs/uk/debug/simulation_debugging.md b/docs/uk/debug/simulation_debugging.md index ded4021219b..eece1cc1769 100644 --- a/docs/uk/debug/simulation_debugging.md +++ b/docs/uk/debug/simulation_debugging.md @@ -8,7 +8,7 @@ ```sh make clean # only required on first address sanitizer run after a normal build -PX4_ASAN=1 make px4_sitl jmavsim +PX4_ASAN=1 make px4_sitl_sih sihsim_quadx ``` ## Valgrind @@ -26,7 +26,7 @@ sudo apt-get install valgrind Для використання valgrind під час симуляції SITL: ```sh -make px4_sitl_default jmavsim___valgrind +make px4_sitl_default gazebo-classic___valgrind ``` ## Запустіть Gazebo Classic SITL без відлагоджувача @@ -36,7 +36,7 @@ make px4_sitl_default jmavsim___valgrind ```sh make px4_sitl_default gz make px4_sitl_default gazebo-classic -make px4_sitl_default jmavsim +make px4_sitl_sih sihsim_quadx ``` Для Gazebo Classic (тільки) ви також можете запустити симулятор з прикріпленим відладчиком. diff --git a/docs/uk/debug/system_wide_replay.md b/docs/uk/debug/system_wide_replay.md index 60abd9e0e7e..df2721cce6a 100644 --- a/docs/uk/debug/system_wide_replay.md +++ b/docs/uk/debug/system_wide_replay.md @@ -63,7 +63,7 @@ For an example, see [SensorCombined.msg](https://github.com/PX4/PX4-Autopilot/bl - Почніть відтворення: ```sh - make px4_sitl_default jmavsim + make px4_sitl_default none_iris ``` Це автоматично відкриє файл журналу, застосує параметри та почне відтворення. diff --git a/docs/uk/dev_setup/building_px4.md b/docs/uk/dev_setup/building_px4.md index 567fb5be3e7..54af7330844 100644 --- a/docs/uk/dev_setup/building_px4.md +++ b/docs/uk/dev_setup/building_px4.md @@ -303,10 +303,10 @@ make list_config_targets **VIEWER_MODEL_DEBUGGER_WORLD:** -- **VIEWER:** This is the simulator ("viewer") to launch and connect: `gz`, `gazebo`, `jmavsim`, `none` +- **VIEWER:** This is the simulator ("viewer") to launch and connect: `gz`, `gazebo`, `none` :::tip - `none` can be used if you want to launch PX4 and wait for a simulator (jmavsim, Gazebo, Gazebo Classic, or some other simulator). + `none` can be used if you want to launch PX4 and wait for a simulator (Gazebo, Gazebo Classic, or some other simulator). For example, `make px4_sitl none_iris` launches PX4 without a simulator (but with the iris airframe). ::: @@ -329,7 +329,7 @@ make list_config_targets - Ви можете використати три підкреслювання, якщо хочете вказати значення за замовчуванням між двома іншими налаштуваннями. For example, `gazebo-classic___gdb` is equivalent to `gazebo-classic_iris_gdb`. - You can use a `none` value for `VIEWER_MODEL_DEBUGGER` to start PX4 and wait for a simulator. - For example start PX4 using `make px4_sitl_default none` and jMAVSim using `./Tools/simulation/jmavsim/jmavsim_run.sh -l`. + For example start PX4 using `make px4_sitl_default none` and then start your simulator. ::: diff --git a/docs/uk/dev_setup/dev_env_linux_arch.md b/docs/uk/dev_setup/dev_env_linux_arch.md index dfcaf0a1ae7..5254f545be1 100644 --- a/docs/uk/dev_setup/dev_env_linux_arch.md +++ b/docs/uk/dev_setup/dev_env_linux_arch.md @@ -9,7 +9,7 @@ This development environment is [community supported and maintained](../advanced The PX4-Autopilot repository provides a convenient script to set your Arch installation up for PX4 development: [Tools/setup/arch.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/setup/arch.sh). -The script installs (by default) all tools to build PX4 for NuttX targets and run simulation with [JMAVSim](../sim_jmavsim/index.md). +The script installs (by default) all tools to build PX4 for NuttX targets and run simulation with [SIH](../sim_sih/index.md). You can additionally install the [Gazebo Classic](../sim_gazebo_classic/index.md) simulator by specifying the command line argument: `--gazebo`. ![Gazebo on Arch](../../assets/simulation/gazebo_classic/arch-gazebo.png) @@ -47,4 +47,4 @@ The instructions have been tested on [Manjaro](https://manjaro.org/) (Arch based - `--no-nuttx`: Do not install the NuttX/Pixhawk toolchain (i.e. if only using simulation). -- `--no-sim-tools`: Do not install jMAVSim/Gazebo (i.e. if only targeting Pixhawk/NuttX targets) +- `--no-sim-tools`: Do not install the simulation dependencies (i.e. if only targeting Pixhawk/NuttX targets) diff --git a/docs/uk/dev_setup/dev_env_linux_ubuntu.md b/docs/uk/dev_setup/dev_env_linux_ubuntu.md index f20d20c62ff..fed45f7693b 100644 --- a/docs/uk/dev_setup/dev_env_linux_ubuntu.md +++ b/docs/uk/dev_setup/dev_env_linux_ubuntu.md @@ -1,6 +1,6 @@ # Середовище розробки Ubuntu -The following instructions use a bash script to set up the PX4 development environment on the [Ubuntu Linux LTS](https://wiki.ubuntu.com/LTS) versions supported by PX4: Ubuntu 24.04 (Nimble Numbat) and Ubuntu 22.04 (Jammy Jellyfish). +The following instructions use a bash script to set up the PX4 development environment on the [Ubuntu Linux LTS](https://ubuntu.com/about/release-cycle) versions supported by PX4: Ubuntu 24.04 (Nimble Numbat) and Ubuntu 22.04 (Jammy Jellyfish). The environment includes: diff --git a/docs/uk/dev_setup/dev_env_mac.md b/docs/uk/dev_setup/dev_env_mac.md index 794ee7de453..11cb0eb7433 100644 --- a/docs/uk/dev_setup/dev_env_mac.md +++ b/docs/uk/dev_setup/dev_env_mac.md @@ -80,7 +80,7 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will ::: info The script installs from third-party Homebrew taps and marks them as trusted (`brew trust`) on Homebrew 6.0 and later, which refuses to load formulae from untrusted taps. - With `--sim-tools` it will prompt for your password, since the XQuartz installer and the JDK link into `/Library/Java/JavaVirtualMachines` need `sudo`. + With `--sim-tools` it will prompt for your password. ::: @@ -88,6 +88,12 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will The `--sim-tools` flag installs Gazebo and the libraries PX4's simulation modules build against. +Gazebo does not come from Homebrew. +The script installs it from a locked [conda-forge](https://conda-forge.org/) environment, using [pixi](https://pixi.sh), into `Tools/setup/macos/.pixi`. +The lock file pins every package, so the install does not change when Homebrew updates its own Gazebo dependencies. +The build and the `make px4_sitl gz_*` targets find it on their own, like the `.venv`. +Activating `.venv` also puts it on your `PATH`, which you only need to run `gz` commands directly. + If you skipped `--sim-tools` during initial setup and want to add simulation later, re-run the setup script with the flag (it is safe to run repeatedly): ```sh @@ -111,7 +117,7 @@ arm-none-eabi-gcc --version cmake --version ninja --version -# Gazebo (if --sim-tools was used) +# Gazebo (if --sim-tools was used, with .venv activated) gz sim --versions ``` diff --git a/docs/uk/dev_setup/dev_env_windows_cygwin.md b/docs/uk/dev_setup/dev_env_windows_cygwin.md index 669b296bbc1..e1b22dac717 100644 --- a/docs/uk/dev_setup/dev_env_windows_cygwin.md +++ b/docs/uk/dev_setup/dev_env_windows_cygwin.md @@ -14,7 +14,7 @@ The [Windows WSL2-Based Development Environment](../dev_setup/dev_env_windows_ws Це середовище може бути використане для збірки PX4 для: - Pixhawk та іншого апаратного забезпечення на основі NuttX -- [jMAVSim Simulation](../sim_jmavsim/index.md) +- jMAVSim simulation (removed from PX4, see the note in [Getting Started](#getting-started)) @@ -73,6 +73,12 @@ The toolchain uses a specially configured console window (started by running the 4. Наприклад, для запуску JMAVSim: + ::: info + jMAVSim has been removed from PX4, so this example only works with PX4 versions that still include it. + Current PX4 uses [SIH](../sim_sih/index.md) with the [Hawkeye](../sim_hawkeye/index.md) visualizer instead. + +::: + ```sh # Navigate to PX4-Autopilot repo cd Firmware diff --git a/docs/uk/dev_setup/dev_env_windows_vm.md b/docs/uk/dev_setup/dev_env_windows_vm.md index 4d7355140e1..d160480f76e 100644 --- a/docs/uk/dev_setup/dev_env_windows_vm.md +++ b/docs/uk/dev_setup/dev_env_windows_vm.md @@ -13,7 +13,7 @@ This development environment is [community supported and maintained](../advanced Хоч використання віртуальної машини - це простий спосіб налаштувати та протестувати середовище для збірки прошивки, користувачі повинні взяти до уваги: 1. Збірка прошивки буде повільніша, ніж нативна збірка на Linux. -2. У симуляції JMAVSim частота кадрів набагато повільніша, ніж на рідному Linux. +2. Simulation frame rates will be much slower than on native Linux. В деяких випадках засіб може розбитися через проблеми, пов'язані з недостатніми ресурсами віртуальної машини. 3. Gazebo та ROS встановлюються, але повільні настільки що ними неможливо користуватись. @@ -41,7 +41,7 @@ Allocate as many CPU cores and memory resources to the VM as possible. 5. Enable 3D acceleration in the VM's settings: **VM > Settings > Hardware > Display > Accelerate 3D graphics** ::: info - This option is required to properly run 3D simulation environments like jMAVSim and Gazebo Classic. + This option is required to properly run 3D simulation environments like Gazebo and Gazebo Classic. Рекомендуємо зробити це перед встановленням Linux у віртуальному середовищі. ::: diff --git a/docs/uk/dev_setup/sitl_container_builds.md b/docs/uk/dev_setup/sitl_container_builds.md index 1efde29934a..7c4180fb4af 100644 --- a/docs/uk/dev_setup/sitl_container_builds.md +++ b/docs/uk/dev_setup/sitl_container_builds.md @@ -140,7 +140,7 @@ GIT_COMMON_DIR=$(git rev-parse --path-format=absolute --git-common-dir) docker run --rm -it \ -v "$SOURCE:$SOURCE" -v "$GIT_COMMON_DIR:$GIT_COMMON_DIR" -w "$SOURCE" \ -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \ - -e "GIT_CONFIG_VALUE_0=$SOURCE" px4-dev-ros2:local bash + -e "GIT_CONFIG_VALUE_0=*" px4-dev-ros2:local bash ``` The same absolute mounts support both ordinary checkouts and git worktrees. @@ -196,6 +196,24 @@ Already installed Ubuntu/ROS Python versions are constrained during installation The SIH image does not acquire Gazebo or the NuttX toolchain. Installing the complete source-build toolset increases cold image-build time and size; existing native architecture and incremental cache boundaries remain in use. +## Testing A PX4 Checkout With ROS and Gazebo + +The `ghcr.io/px4/px4-dev-ros2-gazebo` image extends `ghcr.io/px4/px4-dev-ros2` by calling `Tools/setup/ubuntu.sh --no-nuttx` and therefore installing Gz Harmonic. +This allows to test PX4 changes in Gazebo. +To build the image locally and the start the container to build PX4, run + +```sh +bash Tools/packaging/containers/prepare_context.sh +ROS_DISTRO=jazzy docker buildx bake -f Tools/packaging/containers/docker-bake.hcl ros2-gazebo-dev \ + --set ros2-gazebo-dev.tags=px4-dev-ros2-gazebo:local --load +SOURCE=$(pwd -P) +GIT_COMMON_DIR=$(git rev-parse --path-format=absolute --git-common-dir) +docker run --rm -it \ + -v "$SOURCE:$SOURCE" -v "$GIT_COMMON_DIR:$GIT_COMMON_DIR" -w "$SOURCE" \ + -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \ + -e "GIT_CONFIG_VALUE_0=*" px4-dev-ros2-gazebo:local bash +``` + ## Container SBOMs The publishing workflow enables BuildKit's standard SBOM attestations for both runtime and ROS images. diff --git a/docs/uk/dronecan/ark_dist.md b/docs/uk/dronecan/ark_dist.md index 831ab3f783d..c0aaa13b54a 100644 --- a/docs/uk/dronecan/ark_dist.md +++ b/docs/uk/dronecan/ark_dist.md @@ -75,7 +75,6 @@ Set the following parameters in _QGroundControl_: - Enable [UAVCAN_ENABLE](../advanced_config/parameter_reference.md#UAVCAN_ENABLE) to 2 for dynamic node allocation. - Enable [UAVCAN_SUB_RNG](../advanced_config/parameter_reference.md#UAVCAN_SUB_RNG). -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `30`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. - Set [UAVCAN_RNG_MIN](../advanced_config/parameter_reference.md#UAVCAN_RNG_MIN) to `0.08`. - Set [UAVCAN_RNG_MAX](../advanced_config/parameter_reference.md#UAVCAN_RNG_MAX) to `30`. @@ -90,7 +89,6 @@ If connecting via a UART set the following parameters in _QGroundControl_: - Set [MAV_X_FORWARD](../advanced_config/parameter_reference.md#MAV_0_FORWARD) to `0` (off). - Set [MAV_X_MODE](../advanced_config/parameter_reference.md#MAV_0_MODE) to `7` or `13` to (Minimal or Low Bandwidth) to reduce memory usage. - Set `SER_XXX_BAUD` to `115200`, where `XXX` is specific to the port you are using (such as [SER_GPS2_BAUD](../advanced_config/parameter_reference.md#SER_GPS2_BAUD)). -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `30`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. ## Дивіться також diff --git a/docs/uk/dronecan/ark_dist_mr.md b/docs/uk/dronecan/ark_dist_mr.md index 442f95ef8f9..5ebb9a401b4 100644 --- a/docs/uk/dronecan/ark_dist_mr.md +++ b/docs/uk/dronecan/ark_dist_mr.md @@ -74,7 +74,6 @@ Set the following parameters in _QGroundControl_: - Enable [UAVCAN_ENABLE](../advanced_config/parameter_reference.md#UAVCAN_ENABLE) to 2 for dynamic node allocation. - Enable [UAVCAN_SUB_RNG](../advanced_config/parameter_reference.md#UAVCAN_SUB_RNG). -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `50`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. - Set [UAVCAN_RNG_MIN](../advanced_config/parameter_reference.md#UAVCAN_RNG_MIN) to `0.08`. - Set [UAVCAN_RNG_MAX](../advanced_config/parameter_reference.md#UAVCAN_RNG_MAX) to `50`. @@ -89,7 +88,6 @@ If connecting via a UART set the following parameters in _QGroundControl_: - Set [MAV_X_FORWARD](../advanced_config/parameter_reference.md#MAV_0_FORWARD) to `0` (off). - Set [MAV_X_MODE](../advanced_config/parameter_reference.md#MAV_0_MODE) to `7` or `13` to (Minimal or Low Bandwidth) to reduce memory usage. - Set `SER_XXX_BAUD` to `115200`, where `XXX` is specific to the port you are using (such as [SER_GPS2_BAUD](../advanced_config/parameter_reference.md#SER_GPS2_BAUD)). -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `50`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. ## Дивіться також diff --git a/docs/uk/dronecan/ark_flow.md b/docs/uk/dronecan/ark_flow.md index e2f87c67525..6e27fa5f757 100644 --- a/docs/uk/dronecan/ark_flow.md +++ b/docs/uk/dronecan/ark_flow.md @@ -95,7 +95,6 @@ Set the following parameters in _QGroundControl_: - Enable [UAVCAN_SUB_FLOW](../advanced_config/parameter_reference.md#UAVCAN_SUB_FLOW). - Enable [UAVCAN_SUB_RNG](../advanced_config/parameter_reference.md#UAVCAN_SUB_RNG). - Set [EKF2_RNG_CTRL](../advanced_config/parameter_reference.md#EKF2_RNG_CTRL) to `1`. -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `10`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. - Set [UAVCAN_RNG_MIN](../advanced_config/parameter_reference.md#UAVCAN_RNG_MIN) to `0.08`. - Set [UAVCAN_RNG_MAX](../advanced_config/parameter_reference.md#UAVCAN_RNG_MAX) to `30`. diff --git a/docs/uk/dronecan/ark_flow_mr.md b/docs/uk/dronecan/ark_flow_mr.md index 76da64c01f4..8aa82271f0f 100644 --- a/docs/uk/dronecan/ark_flow_mr.md +++ b/docs/uk/dronecan/ark_flow_mr.md @@ -92,7 +92,6 @@ Set the following parameters in _QGroundControl_: - Enable [UAVCAN_SUB_FLOW](../advanced_config/parameter_reference.md#UAVCAN_SUB_FLOW). - Enable [UAVCAN_SUB_RNG](../advanced_config/parameter_reference.md#UAVCAN_SUB_RNG). - Set [EKF2_RNG_CTRL](../advanced_config/parameter_reference.md#EKF2_RNG_CTRL) to `1`. -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `10`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. - Set [UAVCAN_RNG_MIN](../advanced_config/parameter_reference.md#UAVCAN_RNG_MIN) to `0.08`. - Set [UAVCAN_RNG_MAX](../advanced_config/parameter_reference.md#UAVCAN_RNG_MAX) to `50`. diff --git a/docs/uk/dronecan/smartmicro_t132.md b/docs/uk/dronecan/smartmicro_t132.md index df2242d9683..8fc3fece6cf 100644 --- a/docs/uk/dronecan/smartmicro_t132.md +++ b/docs/uk/dronecan/smartmicro_t132.md @@ -73,7 +73,6 @@ Future firmware update is possible with proprietary Smartmicro software via CAN - In _QGroundControl_ set the parameter [UAVCAN_ENABLE](../advanced_config/parameter_reference.md#UAVCAN_ENABLE) to `2` for dynamic node allocation. - Confirm that [UAVCAN_BITRATE](../advanced_config/parameter_reference.md#UAVCAN_BITRATE) is set to 1000000 (1 Mbit/s). - Enable [UAVCAN_SUB_RNG](../advanced_config/parameter_reference.md#UAVCAN_SUB_RNG). -- Set [EKF2_RNG_A_HMAX](../advanced_config/parameter_reference.md#EKF2_RNG_A_HMAX) to `175`. - Set [EKF2_RNG_QLTY_T](../advanced_config/parameter_reference.md#EKF2_RNG_QLTY_T) to `0.2`. - Set [UAVCAN_RNG_MIN](../advanced_config/parameter_reference.md#UAVCAN_RNG_MIN) to `1`. - Set [UAVCAN_RNG_MAX](../advanced_config/parameter_reference.md#UAVCAN_RNG_MAX) to `175`. diff --git a/docs/uk/flight_controller/agam_v6xrt.md b/docs/uk/flight_controller/agam_v6xrt.md index fba9543d38c..4561b03055f 100644 --- a/docs/uk/flight_controller/agam_v6xrt.md +++ b/docs/uk/flight_controller/agam_v6xrt.md @@ -49,13 +49,13 @@ See [Agam's IMU triple redundancy notes](https://agamrobotics.gitbook.io/docs/au - 64MB external Octal SPI flash - On-board sensors — Agam Autopilot v6X-RT ships in two sensor-set variants (Sensor Set 1 and Sensor Set 3, per [Pixhawk Standards](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-020%20Pixhawk%20Autopilot%20v6X-RT%20Standard.pdf)): - Sensor Set 1: - - 2x [InvenSense ICM-42688-P IMU](https://www.invensense.tdk.com/products/motion-tracking/6-axis/icm-42688-p/) - - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi088/) + - 2x [InvenSense ICM-42688-P IMU](https://www.invensense.tdk.com/en-us/products/6-axis/icm-42688-p) + - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/en/products/motion-sensors/imus/bmi088/) - [Bosch BMM150 Magnetometer](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmm150-ds001.pdf) - 2x [Bosch BMP388 Barometer](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390/) - Sensor Set 3: - 2x [TDK InvenSense ICM-45686 IMU](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686) - - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi088/) + - [Bosch BMI088 IMU](https://www.bosch-sensortec.com/en/products/motion-sensors/imus/bmi088/) - [Bosch BMM350 Magnetometer](https://www.bosch-sensortec.com/en/products/motion-sensors/magnetometers/bmm350) - 2x [Bosch BMP388 Barometer](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390/) diff --git a/docs/uk/flight_controller/ark_v6xrt.md b/docs/uk/flight_controller/ark_v6xrt.md index 89c1108af86..5a828012107 100644 --- a/docs/uk/flight_controller/ark_v6xrt.md +++ b/docs/uk/flight_controller/ark_v6xrt.md @@ -36,7 +36,7 @@ Order from [ARK Electronics](https://arkelectron.com/product/arkv6xrt) (US). - **Code store:** no internal flash. Code executes in place from a 64 MB external octal NOR on FlexSPI1, of which PX4 uses the first 4 MB. - **IO processor:** PX4IO v2, on carriers that fit one. - **Sensors** - - **IMU:** [InvenSense ICM-45686](https://invensense.tdk.com/products/motion-tracking/6-axis/icm-45686/) (SPI1), [InvenSense IIM-20670](https://invensense.tdk.com/products/motion-tracking/6-axis/iim-20670/) (SPI2), [ST LSM6DSV80X](https://www.st.com/en/mems-and-sensors/lsm6dsv80x.html) (SPI3) + - **IMU:** [InvenSense ICM-45686](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686) (SPI1), [InvenSense IIM-20670](https://www.invensense.tdk.com/en-us/products/motion-tracking/6-axis/iim-20670) (SPI2), [ST LSM6DSV80X](https://www.st.com/en/mems-and-sensors/lsm6dsv80x.html) (SPI3) - **Barometer:** [Bosch BMP390](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390/) (I2C2) - **Magnetometer:** [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html) (I2C3) - **Heater:** closed loop on the ICM-45686 die temperature diff --git a/docs/uk/flight_controller/autopilot_manufacturer_supported.md b/docs/uk/flight_controller/autopilot_manufacturer_supported.md index 1e56ab00dd6..8ba1c438a62 100644 --- a/docs/uk/flight_controller/autopilot_manufacturer_supported.md +++ b/docs/uk/flight_controller/autopilot_manufacturer_supported.md @@ -56,4 +56,5 @@ This category includes boards that are not fully compliant with the pixhawk stan - [ThePeach FCC-K1](../flight_controller/thepeach_k1.md) - [ThePeach FCC-R1](../flight_controller/thepeach_r1.md) - [X-MAV AP-H743-R1](../flight_controller/x-mav_ap-h743r1.md) +- [ZenFC H743](../flight_controller/zenfc_h743.md) - [SIYI-UniFC-6-PICO](../flight_controller/siyi-unifc-6-pico.md) diff --git a/docs/uk/flight_controller/corvon_743v1.md b/docs/uk/flight_controller/corvon_743v1.md index 8e0ff6e9566..2610846f920 100644 --- a/docs/uk/flight_controller/corvon_743v1.md +++ b/docs/uk/flight_controller/corvon_743v1.md @@ -40,7 +40,7 @@ This flight controller is [manufacturer supported](../flight_controller/autopilo ## Де купити -Order from [CORVON](https://corvon.tech). +Order from [CORVON](https://www.corvon.tech/en). ## Physical / Mechanical diff --git a/docs/uk/flight_controller/corvon_743v2.md b/docs/uk/flight_controller/corvon_743v2.md index f006c9a1295..a87fa16a179 100644 --- a/docs/uk/flight_controller/corvon_743v2.md +++ b/docs/uk/flight_controller/corvon_743v2.md @@ -4,7 +4,7 @@ :::warning PX4 не розробляє цей (або будь-який інший) автопілот. -Contact the [manufacturer](https://corvon.tech) for hardware support or compliance issues. +Contact the [manufacturer](https://www.corvon.tech/en) for hardware support or compliance issues. ::: The _CORVON 743v2_ is a flight controller designed by Feikong Technology Co., Ltd under the CORVON brand. @@ -40,7 +40,7 @@ This flight controller is [manufacturer supported](../flight_controller/autopilo ## Де купити -Order from [CORVON](https://corvon.tech). +Order from [CORVON](https://www.corvon.tech/en). ## Physical / Mechanical diff --git a/docs/uk/flight_controller/corvon_v5.md b/docs/uk/flight_controller/corvon_v5.md index 99346345929..441406842ff 100644 --- a/docs/uk/flight_controller/corvon_v5.md +++ b/docs/uk/flight_controller/corvon_v5.md @@ -4,7 +4,7 @@ :::warning PX4 не розробляє цей (або будь-який інший) автопілот. -Contact the [manufacturer](https://corvon.tech) for hardware support or compliance issues. +Contact the [manufacturer](https://www.corvon.tech/en) for hardware support or compliance issues. ::: The CORVON V5 is based on the Pixhawk FMUv5 design standard and runs PX4 on NuttX. @@ -54,7 +54,7 @@ This flight controller is [manufacturer supported](autopilot_manufacturer_suppor ## Where to Buy {#store} -- [CORVON Store](https://corvon.tech) +- [CORVON Store](https://www.corvon.tech/en) ## Connectors and Interfaces @@ -190,4 +190,4 @@ The complete set of supported configurations can be seen in the [Airframes Refer ## Подальша інформація -- [Corvon Tech](https://corvon.tech) +- [Corvon Tech](https://www.corvon.tech/en) diff --git a/docs/uk/flight_controller/cuav_nora.md b/docs/uk/flight_controller/cuav_nora.md index 722715c49c3..0d116b54cdf 100644 --- a/docs/uk/flight_controller/cuav_nora.md +++ b/docs/uk/flight_controller/cuav_nora.md @@ -5,7 +5,7 @@ PX4 не розробляє цей (або будь-який інший) авт Contact the [manufacturer](https://www.cuav.net) for hardware support or compliance issues. ::: -The [Nora](https://doc.cuav.net/controller/x7/en/nora-plus.html)® flight controller is a high-performance autopilot. +The [Nora](https://doc.cuav.net/en/controller/nora-plus/nora-plus.html)® flight controller is a high-performance autopilot. Це ідеальний вибір для промислових дронів і великомасштабних важких дронів. В основному постачається комерційним виробникам. @@ -31,7 +31,7 @@ This flight controller is [manufacturer supported](../flight_controller/autopilo - Високопродуктивний процесор :::tip -The manufacturer [CUAV Docs](https://doc.cuav.net/controller/x7/en/nora-plus.html) are the canonical reference for Nora. +The manufacturer [CUAV Docs](https://doc.cuav.net/en/controller/nora-plus/nora-plus.html) are the canonical reference for Nora. Вони повинні використовуватися за перевагою, оскільки вони містять найбільш повну та актуальну інформацію. ::: @@ -83,7 +83,7 @@ When it runs PX4 firmware, only 8 PWM outputs work. ## З'єднання (Проводка) -[CUAV nora Wiring Quickstart](https://doc.cuav.net/controller/x7/en/quick-start/quick-start-nora.html) +[CUAV nora Wiring Quickstart](https://doc.cuav.net/en/controller/nora-plus/quick-start-nora.html) ## Розмір та роз'єми @@ -171,6 +171,6 @@ The complete set of supported configurations can be seen in the [Airframes Refer ## Подальша інформація -- [Quick start](https://doc.cuav.net/controller/x7/en/quick-start/quick-start-nora.html) +- [Quick start](https://doc.cuav.net/en/controller/nora-plus/quick-start-nora.html) - [CUAV docs](https://doc.cuav.net/) - [nora schematic](https://github.com/cuav/hardware/tree/master/X7_Autopilot) diff --git a/docs/uk/flight_controller/nwblue_pro-h757.md b/docs/uk/flight_controller/nwblue_pro-h757.md index 1c20c83f24d..6c348c83b38 100644 --- a/docs/uk/flight_controller/nwblue_pro-h757.md +++ b/docs/uk/flight_controller/nwblue_pro-h757.md @@ -6,7 +6,7 @@ PX4 не розробляє цей (або будь-який інший) автопілот. Contact the manufacturer for hardware support or compliance issues. ::: -The _NWBlue Pro H757_ is a 36 x 36 mm FPV flight controller built around a [CubePilot CubeNode H757](https://docs.cubepilot.org/user-guides/cubenode/pin-descriptions) module carrying an STM32H757 microcontroller. +The _NWBlue Pro H757_ is a 36 x 36 mm FPV flight controller built around a [CubePilot CubeNode H757](https://docs.cubepilot.org/cubenode/pin-descriptions) module carrying an STM32H757 microcontroller. ![NWBlue Pro H757](../../assets/flight_controller/nwblue_pro-h757/nwblue_pro-h757.png) @@ -23,7 +23,7 @@ Order from [NWBlue](https://nwblue.com/products/pro-h757-fpv-flight-controller) - **Processor** - **Main FMU processor:** STM32H757 (32-bit Arm® Cortex®-M7 at 480 MHz, 2 MB Flash, 1 MB RAM), on a CubePilot CubeNode module - **Sensors** - - **IMU:** [InvenSense ICM-45686](https://invensense.tdk.com/products/motion-tracking/6-axis/icm-45686/) (SPI3, inside the CubeNode module) + - **IMU:** [InvenSense ICM-45686](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686) (SPI3, inside the CubeNode module) - **Barometer:** [Infineon DPS368](https://www.infineon.com/part/DPS368) (SPI3) - **Magnetometer:** [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html) (I2C3, internal) - **Interfaces** diff --git a/docs/uk/flight_controller/zenfc_h743.md b/docs/uk/flight_controller/zenfc_h743.md new file mode 100644 index 00000000000..878dee2ec4c --- /dev/null +++ b/docs/uk/flight_controller/zenfc_h743.md @@ -0,0 +1,151 @@ +# ZenFC H743 + + + + + +:::warning +PX4 не розробляє цей (або будь-який інший) автопілот. +Contact the [manufacturer](https://www.zenithratech.com/contact) for hardware support or compliance issues. +::: + +The _ZenFC H743_ is a flight controller designed by Zenithra Tech. +It is built around the STM32H743 processor with dual Bosch BMI088 IMUs for sensor redundancy, an onboard barometer, and an integrated OSD. + +![ZenFC H743 Flight Controller](../../assets/flight_controller/zenfc_h743/zenfc_h743.png) + +:::info +This flight controller is [manufacturer supported](../flight_controller/autopilot_manufacturer_supported.md). +::: + +## Основні характеристики + +- **MCU:** + - STM32H743VIT6 (32-bit Arm® Cortex®-M7, 480 MHz) +- **IMU:** + - 2x Bosch BMI088 (accel + gyro, independent SPI buses for redundancy) +- **Barometer:** + - Bosch BMP388 +- **OSD:** + - Onboard AT7456E OSD chip +- **Interfaces:** + - 7x UARTs + - 1x CAN + - 2x external I2C (I2C1 with GPS connector and dedicated I2C2 connector) + - 8x PWM outputs (Dshot supported) + - microSD card slot + - 1x USB Type-C +- **Power:** + - 2x ADC (V_BAT & current sense) + - Battery Input range - 2S-6S + - BEC Outputs + - 9V 3A cont. + - 5V 3A cont. + +## Розміри + +- **Mounting:** 30.5 mm x 30.5 mm /Φ4mm hole +- **Dimensions:** 35mm x 35mm x 8mm +- **Weight:** 9g + +![ZenFC H743 Dimensions](../../assets/flight_controller/zenfc_h743/zenfc_h743_dimensions.png) + +## Де купити + +Order from [Zenithra Tech](https://www.zenithratech.com/solutions/components). + +## Flight Controller Layout + +![ZenFC H743 Layout Front](../../assets/flight_controller/zenfc_h743/zenfc_h743_layout_front.png) + +![ZenFC H743 Layout Back](../../assets/flight_controller/zenfc_h743/zenfc_h743_layout_back.png) + +## Налаштування послідовного порту + +| UART | Пристрій | PX4 Port | +| ------ | ---------- | -------- | +| USART1 | /dev/ttyS0 | GPS1 | +| USART2 | /dev/ttyS1 | TEL3 | +| USART3 | /dev/ttyS2 | TEL4 | +| UART5 | /dev/ttyS3 | TEL1 | +| USART6 | /dev/ttyS4 | RC | +| UART7 | /dev/ttyS5 | TEL2 | +| UART8 | /dev/ttyS6 | UART6 | + +## Connectors & Pinout + +Board uses JST SH connectors for all interfaces. + +![ZenFC H743 Pinouts Front](../../assets/flight_controller/zenfc_h743/zenfc_h743_pinouts_front.png) + +![ZenFC H743 Pinouts Back](../../assets/flight_controller/zenfc_h743/zenfc_h743_pinouts_back.png) + +**Note** - SBus pin on DJI O3/O4 port is internally connected to RX6 (`RCIN`). + +### PWM Виходи + +The 8 outputs are in 3 groups: + +- Outputs 1-4 in group1 +- Outputs 5-6 in group2 +- Outputs 7-8 in group3 + +**Note**: + +- All outputs support PWM and [DShot](../peripherals/dshot.md) protocol. + Outputs 1-6 and 8 support "bidirectional DShot" (or "BDShot") telemetry. +- Outputs 1-4 default to DShot300 ([PWM_MAIN_TIM0](../advanced_config/parameter_reference.md#PWM_MAIN_TIM0) = `-4`); outputs 5-6 and 7-8 default to PWM at 400 Hz. +- Each group's protocol can be changed independently using the corresponding `PWM_MAIN_TIMx` parameter, including to [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry) (BDShot) for ESC telemetry. + +### Відладочний порт + +This board does not configure a dedicated UART as a system console. +Use the [MAVLink Shell](../debug/mavlink_shell.md) over USB for console/NSH access using QGroundControl. + +**SWD** + +The board features a [**4-pin SWD Debug**](../debug/swd_debug.md) interface (3V3 / SWCLK / SWDIO / GND) for hardware debugging. + +## Радіоуправління + +A [Radio Control (RC) system](../getting_started/rc_transmitter_receiver.md) is required if you want to manually control your vehicle (PX4 does not require a radio system for autonomous flight modes). +See [Radio Control modules](../modules/modules_driver_radio_control.md) for the list of supported protocols. + +RC input is mapped to **USART6** (`/dev/ttyS4`, `RC` port). +The port supports both single-wire inverted SBUS and full-duplex protocols with telemetry return (such as CRSF), and the receiver protocol is auto-detected by default ([RC_INPUT_PROTO](../advanced_config/parameter_reference.md#RC_INPUT_PROTO) = `-1`). + +## Конфігурація PX4 + +In addition to the [basic configuration](../config/index.md), the following +parameter is important: + +| Parameter | Налаштування | +| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| [SYS_HAS_MAG](../advanced_config/parameter_reference.md#SYS_HAS_MAG) | Disabled by default since the board has no internal magnetometer. Enable it if you attach an external mag. | + +## Збірка прошивки + +To [build PX4](../dev_setup/building_px4.md) for this target: + +```sh +make zenfc_h743_default +``` + +## Встановлення прошивки PX4 + +Прошивку можна встановити будь-якими звичайними способами: + +- Збудуйте та завантажте джерело: + + ```sh + make zenfc_h743_default upload + ``` + +- [Load the firmware](../config/firmware.md) using _QGroundControl_. + Ви можете використовувати або готове вбудоване програмне забезпечення, або власне користувацьке програмне забезпечення. + +The board uses the standard PX4 bootloader, so it follows the same generic LED indications as most other boards (Red = Bootloader/Error, Blue = Active/Activity, Green = Powered). + +## Подальша інформація + +- [Zenithra Tech](https://www.zenithratech.com/contact) diff --git a/docs/uk/flight_modes/return.md b/docs/uk/flight_modes/return.md index 058e734f422..c0fff389920 100644 --- a/docs/uk/flight_modes/return.md +++ b/docs/uk/flight_modes/return.md @@ -228,7 +228,7 @@ Things like path tracking error, wind and other disturbances may cause temporary It is therefore very important to consider this possibility and especially to review the geofence breach action (e.g. [GF_ACTION](../advanced_config/parameter_reference.md#GF_ACTION)). ::: -### RTL-types with Geofence-Awareness +### Return Types with Geofence Awareness The following table shows which return types currently support geofence awareness: @@ -321,7 +321,7 @@ For this reason fixed-wing vehicles are configured to use [Mission landing/reall ## Параметри -The RTL parameters are listed in [Parameter Reference > Return Mode](../advanced_config/parameter_reference.md#return-mode) (and summarised below). +The Return parameters are listed in [Parameter Reference > Return Mode](../advanced_config/parameter_reference.md#return-mode) (and summarised below). | Parameter | Опис | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -330,10 +330,10 @@ The RTL parameters are listed in [Parameter Reference > Return Mode](../advanced | [RTL_DESCEND_ALT](../advanced_config/parameter_reference.md#RTL_DESCEND_ALT) | Altitude above the destination used for the final descent before landing or loitering (default: 30m). | | [RTL_LAND_DELAY](../advanced_config/parameter_reference.md#RTL_LAND_DELAY) | Time to wait at `RTL_DESCEND_ALT` before landing (default: 0.5s) - by default this period is short so that the vehicle will simply slow and then land immediately. Якщо встановлено значення -1, система буде кружляти на висоті `RTL_DESCEND_ALT` замість посадки. Затримка надається для того, щоб ви могли налаштувати час для розгортання шасі для посадки (автоматично спрацьовує). | | [RTL_MIN_DIST](../advanced_config/parameter_reference.md#RTL_MIN_DIST) | Within this distance from the return destination, the return altitude is calculated from the "cone" rather than directly from `RTL_RETURN_ALT`. | -| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Половина кута конуса, який визначає висоту повернення транспортного засобу RTL. Values (in degrees): `0`, `25`, `45`, `65`, `80`, `90`. Note that `0` is "no cone" (always return at `RTL_RETURN_ALT` or higher), while `90` indicates an almost vertical cone, so the vehicle generally returns at its current altitude when close to the destination. The return altitude may still be constrained to avoid flying too low while approaching the destination. | -| [RTL_APPR_FORCE](../advanced_config/parameter_reference.md#RTL_APPR_FORCE) | [VTOL FW only] If set, home or rally-point RTL destinations are only considered when a valid VTOL approach loiter is defined for that landing location. Mission landing patterns are unaffected. | +| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Half-angle of the cone that defines the vehicle return altitude. Values (in degrees): `0`, `25`, `45`, `65`, `80`, `90`. Note that `0` is "no cone" (always return at `RTL_RETURN_ALT` or higher), while `90` indicates an almost vertical cone, so the vehicle generally returns at its current altitude when close to the destination. The return altitude may still be constrained to avoid flying too low while approaching the destination. | +| [RTL_APPR_FORCE](../advanced_config/parameter_reference.md#RTL_APPR_FORCE) | [VTOL FW only] If set, home or rally-point return destinations are only considered when a valid VTOL approach loiter is defined for that landing location. Mission landing patterns are unaffected. | | [MAN_OVERRIDE_SPD](../advanced_config/parameter_reference.md#MAN_OVERRIDE_SPD) | Speed (normalized stick travel per second) above which moving the sticks controlling a multicopter (or VTOL in hover) gives control back to the pilot by switching to [Position mode](../flight_modes_mc/position.md) (or Altitude mode if position is unavailable). At the default 1 a half-stick movement in ~0.5 s triggers it; lower is more sensitive. A stick held statically has zero speed and will not trigger. Set to -1 to disable. | | [RTL_LOITER_RAD](../advanced_config/parameter_reference.md#RTL_LOITER_RAD) | [Тільки фіксоване крило] Радіус круга обертання (у значенні [RTL_LAND_DELAY](#RTL_LAND_DELAY)). | | [MIS_TKO_LAND_REQ](../advanced_config/parameter_reference.md#MIS_TKO_LAND_REQ) | Вказує, чи _необхідний_ місійний маршрут посадки або зльоту. Зазвичай літаки з фіксованим крилом встановлюють це для вимоги до посадкового маршруту, але VTOL - ні. | -| [RTL_TIME_FACTOR](../advanced_config/parameter_reference.md#RTL_TIME_FACTOR) | RTL time estimate safety factor. | -| [RTL_TIME_MARGIN](../advanced_config/parameter_reference.RTL_TIME_MARGIN) | RTL time estimate safety margin. | +| [RTL_TIME_FACTOR](../advanced_config/parameter_reference.md#RTL_TIME_FACTOR) | Return time estimate safety factor. | +| [RTL_TIME_MARGIN](../advanced_config/parameter_reference.md#RTL_TIME_MARGIN) | Return time estimate safety margin. | diff --git a/docs/uk/flight_modes_fw/mission.md b/docs/uk/flight_modes_fw/mission.md index c8e2f66de0f..cb48fc13422 100644 --- a/docs/uk/flight_modes_fw/mission.md +++ b/docs/uk/flight_modes_fw/mission.md @@ -104,7 +104,7 @@ If any of the checks fail, the user is notified and it is not possible to start - Будь-який елемент місії конфліктує з планом або безпечним геозахистом - Визначено більше одного елемента місії початку посадки ([MAV_CMD_DO_LAND_START](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_LAND_START)) - Посадка на фіксованих крилах має неможливий кут нахилу схилу ([FW_LND_ANG](#FW_LND_ANG)) -- Пункт початку посадки на землю (`MAV_CMD_DO_LAND_START`) з'являється в місії перед пунктом RTL ([MAV_CMD_NAV_RETURN_TO_LAUNCH](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_RETURN_TO_LAUNCH)) +- Land start item (`MAV_CMD_DO_LAND_START`) appears in mission before an RTL ("Return") item ([MAV_CMD_NAV_RETURN_TO_LAUNCH](https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_RETURN_TO_LAUNCH)) - Відсутній пункт зльоту та/або посадки, коли вони налаштовані як вимога ([MIS_TKO_LAND_REQ](#MIS_TKO_LAND_REQ)) Additionally there is a check if the first waypoint is too far from the Home position ([MIS_DIST_1WP](#MIS_DIST_1WP)). diff --git a/docs/uk/flight_modes_fw/return.md b/docs/uk/flight_modes_fw/return.md index 7a2141abe4e..69f4a05a845 100644 --- a/docs/uk/flight_modes_fw/return.md +++ b/docs/uk/flight_modes_fw/return.md @@ -65,7 +65,7 @@ The following requirements must be met to arm in this mode, or to switch to this ## Параметри -Параметри RTL перелічені в [Референсі параметрів > Режим повернення](../advanced_config/parameter_reference.md#return-mode). +The Return parameters are listed in [Parameter Reference > Return Mode](../advanced_config/parameter_reference.md#return-mode). Якщо використовується місійна посадка, значення [RTL_RETURN_ALT](#RTL_RETURN_ALT) та [RTL_DESCEND_ALT](#RTL_DESCEND_ALT) є важливими. Інші параметри стають актуальними, якщо призначенням є точка збору або домашня локація. diff --git a/docs/uk/flight_modes_mc/return.md b/docs/uk/flight_modes_mc/return.md index fe0c9f43744..7d37852df1a 100644 --- a/docs/uk/flight_modes_mc/return.md +++ b/docs/uk/flight_modes_mc/return.md @@ -73,7 +73,7 @@ For more information on this return type see [Home/Rally Point Return Type (RTL_ ## Параметри -Параметри RTL перелічені в [Референсі параметрів > Режим повернення](../advanced_config/parameter_reference.md#return-mode). +The Return parameters are listed in [Parameter Reference > Return Mode](../advanced_config/parameter_reference.md#return-mode). Параметри, які є важливими для мультикоптерів (припускаючи, що [RTL_TYPE](../advanced_config/parameter_reference.md#RTL_TYPE) встановлено на 0), перераховані нижче. @@ -83,7 +83,7 @@ For more information on this return type see [Home/Rally Point Return Type (RTL_ | [RTL_DESCEND_ALT](../advanced_config/parameter_reference.md#RTL_DESCEND_ALT) | Altitude above the destination used for the final descent before landing or loitering (default: 30m). | | [RTL_LAND_DELAY](../advanced_config/parameter_reference.md#RTL_LAND_DELAY) | Time to hover at `RTL_DESCEND_ALT` before landing (default: 0.5s) - by default this period is short so that the vehicle will simply slow and then land immediately. Якщо встановлено значення -1, система буде кружляти на висоті `RTL_DESCEND_ALT` замість посадки. Затримка надається для того, щоб ви могли налаштувати час для розгортання шасі для посадки (автоматично спрацьовує). | | [RTL_MIN_DIST](../advanced_config/parameter_reference.md#RTL_MIN_DIST) | Within this distance from the home position, the return altitude is calculated from the "cone" rather than directly from `RTL_RETURN_ALT`. | -| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Половина кута конуса, який визначає висоту повернення транспортного засобу RTL. Values (in degrees): `0`, `25`, `45`, `65`, `80`, `90`. Note that `0` is "no cone" (always return at `RTL_RETURN_ALT` or higher), while `90` indicates an almost vertical cone, so the vehicle generally returns at its current altitude when close to the destination. The return altitude may still be constrained to avoid flying too low while approaching the destination. | +| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Half-angle of the cone that defines the vehicle return altitude. Values (in degrees): `0`, `25`, `45`, `65`, `80`, `90`. Note that `0` is "no cone" (always return at `RTL_RETURN_ALT` or higher), while `90` indicates an almost vertical cone, so the vehicle generally returns at its current altitude when close to the destination. The return altitude may still be constrained to avoid flying too low while approaching the destination. | | [MAN_OVERRIDE_SPD](../advanced_config/parameter_reference.md#MAN_OVERRIDE_SPD) | Speed (normalized stick travel per second) above which moving the sticks controlling a multicopter (or VTOL in hover) gives control back to the pilot by switching to [Position mode](../flight_modes_mc/position.md) (or Altitude mode if position is unavailable). At the default value of 1 a half-stick movement in ~0.5 s triggers it; lower is more sensitive. A stick held statically has zero speed and will not trigger. Set to -1 to disable. | ## Дивіться також diff --git a/docs/uk/flight_modes_rover/index.md b/docs/uk/flight_modes_rover/index.md index 64368fc70b0..fcb54c9f7c6 100644 --- a/docs/uk/flight_modes_rover/index.md +++ b/docs/uk/flight_modes_rover/index.md @@ -12,12 +12,13 @@ Selecting any other mode than those listed below will either stop the rover or c ## Manual Modes -| Режим | Опис | -| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Manual](manual.md#manual-mode) | No autopilot support. User is responsible for keeping the rover on the desired course and maintaining speed and rate of turn. | -| [Acro](manual.md#acro-mode) | + Maintains the yaw rate (feels more like driving a car than manual mode).
+ Allows maximum yaw rate to be limited (protects against roll over). | -| [Stabilized](manual.md#stabilized-mode) | + Maintains the yaw (significantly better at holding a straight line). | -| [Position](manual.md#position-mode) | + Maintains the course (best mode for driving a straight line).
+ Maintains speed against disturbances, e.g. when driving up a hill.
+ Allows maximum speed to be limited. | +| Режим | Опис | +| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Manual](manual.md#manual-mode) | No autopilot support. User is responsible for keeping the rover on the desired course and maintaining speed and rate of turn. | +| [Acro](manual.md#acro-mode) | + Maintains the yaw rate (feels more like driving a car than manual mode).
+ Allows maximum yaw rate to be limited (protects against roll over). | +| [Stabilized](manual.md#stabilized-mode) | + Maintains the yaw (significantly better at holding a straight line). | +| [Position](manual.md#position-mode) | + Maintains the course (best mode for driving a straight line).
+ Maintains speed against disturbances, e.g. when driving up a hill.
+ Allows maximum speed to be limited. | +| [Manual Parking](manual.md#manual-parking-mode) | Reduced throttle for precise maneuvering in tight spaces. Differential and mecanum rovers are driven tank-style, using one stick per side. Ackermann vehicles are controlled in the same way as they are in manual mode, but with reduced throttle. | ## Auto Modes diff --git a/docs/uk/flight_modes_rover/manual.md b/docs/uk/flight_modes_rover/manual.md index 728a8f0e7de..708c110ed80 100644 --- a/docs/uk/flight_modes_rover/manual.md +++ b/docs/uk/flight_modes_rover/manual.md @@ -14,22 +14,24 @@ The sticks provide the same "high level" control effects over direction and rate The manual modes provide progressively increasing levels of autopilot support for maintaining a course, speed, and rate of turn, compensating for external factors such as slopes or uneven terrain. -| Режим | Опис | -| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Manual](manual.md#manual-mode) | No autopilot support. User is responsible for keeping the rover on the desired course and maintaining speed and rate of turn. | -| [Acro](manual.md#acro-mode) | + Maintains the yaw rate (feels more like driving a car than manual mode).
+ Allows maximum yaw rate to be limited (protects against roll over). | -| [Stabilized](manual.md#stabilized-mode) | + Maintains the yaw (significantly better at holding a straight line). | -| [Position](manual.md#position-mode) | + Maintains the course (best mode for driving a straight line).
+ Maintains speed against disturbances, e.g. when driving up a hill.
+ Allows maximum speed to be limited. | +| Режим | Опис | +| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Manual](manual.md#manual-mode) | No autopilot support. User is responsible for keeping the rover on the desired course and maintaining speed and rate of turn. | +| [Acro](manual.md#acro-mode) | + Maintains the yaw rate (feels more like driving a car than manual mode).
+ Allows maximum yaw rate to be limited (protects against roll over). | +| [Stabilized](manual.md#stabilized-mode) | + Maintains the yaw (significantly better at holding a straight line). | +| [Position](manual.md#position-mode) | + Maintains the course (best mode for driving a straight line).
+ Maintains speed against disturbances, e.g. when driving up a hill.
+ Allows maximum speed to be limited. | +| [Manual Parking](manual.md#manual-parking-mode) | Reduced throttle for precise maneuvering in tight spaces. Differential and mecanum rovers are driven tank-style, using one stick per side. Ackermann vehicles are controlled in the same way as they are in manual mode, but with reduced throttle. | :::details Overview mode mapping to control effect -| Режим | Speed | Turning | Required measurements | -| ------------------------------ | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| [Manual](#manual-mode) | Directly map stick input to motor command. | Directly map stick input to steering angle/speed difference. | None. | -| [Acro](#acro-mode) | Directly map stick input to motor command. | Stick input creates a yaw rate setpoint for the control system to regulate. | yaw rate. | -| [Stabilized](#stabilized-mode) | Directly map stick input to motor commands. | Stick input creates a yaw rate setpoint for the control system to regulate. If this setpoint is zero (stick is centered) the control system will maintain the current yaw (heading) of the rover. | Yaw rate and yaw. | -| [Position](#position-mode) | Stick input creates a speed setpoint for the control system to regulate. | Stick input creates a yaw rate setpoint for the control system to regulate. If this setpoint is zero (stick is centered) the control system will keep the rover driving in a straight line. | yaw rate, yaw, speed and global position (GPS). | +| Режим | Speed | Turning | Required measurements | +| -------------------------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| [Manual](#manual-mode) | Directly map stick input to motor command. | Directly map stick input to steering angle/speed difference. | None. | +| [Acro](#acro-mode) | Directly map stick input to motor command. | Stick input creates a yaw rate setpoint for the control system to regulate. | yaw rate. | +| [Stabilized](#stabilized-mode) | Directly map stick input to motor commands. | Stick input creates a yaw rate setpoint for the control system to regulate. If this setpoint is zero (stick is centered) the control system will maintain the current yaw (heading) of the rover. | Yaw rate and yaw. | +| [Position](#position-mode) | Stick input creates a speed setpoint for the control system to regulate. | Stick input creates a yaw rate setpoint for the control system to regulate. If this setpoint is zero (stick is centered) the control system will keep the rover driving in a straight line. | yaw rate, yaw, speed and global position (GPS). | +| [Manual Parking](#manual-parking-mode) | Directly map scaled down stick input to motor command. | Ackermann: Directly map stick input to steering angle. Differential/Mecanum: Each stick directly maps to the motor command of one side of the rover. | None. | ::: @@ -98,3 +100,23 @@ This offers the highest amount of disturbance rejection, which leads to the best | Mecanum | Stick position sets a forward/back speed setpoint. The vehicle attempts to maintain this speed on slopes etc. | Create a yaw rate setpoint for the control system to regulate. If this input is zero the control system will maintain the course of the rover. | Stick position sets a left/right speed setpoint. The vehicle attempts to maintain this speed on slopes etc. | For the configuration/tuning of this mode see [Velocity tuning](../config_rover/velocity_tuning.md). + +## Manual Parking Mode + +This mode is intended for precisely maneuvering the rover in tight spaces, e.g. when parking it. +Like [Manual mode](#manual-mode) the stick inputs are directly mapped to motor commands without any autopilot support, but the throttle is scaled down to [RO_PARK_THR_MAX](../advanced_config/parameter_reference.md#RO_PARK_THR_MAX). + +Differential and mecanum rovers are driven tank-style in this mode: the left stick drives the motor(s) on the left side and the right stick drives the motor(s) on the right side of the rover. +Pushing both sticks in the same direction drives straight, pushing them in opposite directions turns the rover on the spot, and holding one stick centered pivots the rover around that side. + +Ackermann vehicles are controlled in the same way as they are in manual mode, but with reduced throttle. + +| Rover Type | Left stick up/down | Right stick up/down | Right stick left/right | +| ------------ | -------------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------- | +| Ackermann | Drive the rover forwards/backwards (slowly) | - | Move the steering angle to the left/right. | +| Differential | Drive the left motor forwards/backwards. | Drive the right motor forwards/backwards. | - | +| Mecanum | Drive the left motors forwards/backwards. | Drive the right motors forwards/backwards. | Drive the rover left/right (slowly). | + +:::info +This mode has to be assigned to a flight mode switch (see [Flight Mode Configuration](../config/flight_mode.md)) or selected via the ground station. +::: diff --git a/docs/uk/flight_modes_vtol/return.md b/docs/uk/flight_modes_vtol/return.md index 90c199ac0eb..a7a60c3a2d6 100644 --- a/docs/uk/flight_modes_vtol/return.md +++ b/docs/uk/flight_modes_vtol/return.md @@ -80,7 +80,7 @@ When uploading VTOL approach loiters through MAVLink, [upload them as rally/safe The `MAV_CMD_NAV_RALLY_POINT` item must come first, followed by one or more `MAV_CMD_NAV_LOITER_TO_ALT` items that define the approach loiters for that rally point. The next `MAV_CMD_NAV_RALLY_POINT` starts a new landing-location block. -For each `MAV_CMD_NAV_LOITER_TO_ALT` item, `x/y/z` define the loiter center and approach altitude, and `param2` defines the loiter radius used by RTL. +For each `MAV_CMD_NAV_LOITER_TO_ALT` item, `x/y/z` define the loiter center and approach altitude, and `param2` defines the loiter radius used by Return mode. If `param2` is unset or zero, PX4 falls back to [RTL_LOITER_RAD](#RTL_LOITER_RAD). For example, a rally upload with one rally point and two possible approach loiters would use: @@ -104,16 +104,16 @@ If the selected approach loiter is far from the rally point or home location, th ## Параметри -Параметри RTL перелічені в [Референсі параметрів > Режим повернення](../advanced_config/parameter_reference.md#return-mode). +The Return parameters are listed in [Parameter Reference > Return Mode](../advanced_config/parameter_reference.md#return-mode). Якщо використовується місійна посадка, значення [RTL_RETURN_ALT](#RTL_RETURN_ALT) та [RTL_DESCEND_ALT](#RTL_DESCEND_ALT) є важливими. Інші параметри стають актуальними, якщо призначенням є точка збору або домашня локація. | Parameter | Опис | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [RTL_TYPE](../advanced_config/parameter_reference.md#RTL_TYPE) | Тип повернення. | -| [RTL_APPR_FORCE](../advanced_config/parameter_reference.md#RTL_APPR_FORCE) | [VTOL FW only] If set, PX4 only considers home or rally-point RTL destinations when a valid VTOL approach loiter is defined for that landing location. Mission landing patterns are unaffected. | +| [RTL_APPR_FORCE](../advanced_config/parameter_reference.md#RTL_APPR_FORCE) | [VTOL FW only] If set, PX4 only considers home or rally-point return destinations when a valid VTOL approach loiter is defined for that landing location. Mission landing patterns are unaffected. | | [RTL_RETURN_ALT](../advanced_config/parameter_reference.md#RTL_RETURN_ALT) | Висота повернення в метрах (за замовчуванням: 60 м). Якщо вже знаходиться вище цієї висоти, транспортний засіб повернеться на поточну висоту. | -| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Половина кута конуса, який визначає висоту повернення транспортного засобу RTL. Значення (у градусах): 0, 25, 45, 65, 80, 90. Зауважте, що 0 означає "без конуса" (завжди повертається на висоту `RTL_RETURN_ALT` або вище), тоді як 90 показує, що транспортний засіб повинен повертатися на поточну висоту або `RTL_DESCEND_ALT` (яка вище). | +| [RTL_CONE_ANG](../advanced_config/parameter_reference.md#RTL_CONE_ANG) | Half-angle of the cone that defines the vehicle return altitude. Значення (у градусах): 0, 25, 45, 65, 80, 90. Зауважте, що 0 означає "без конуса" (завжди повертається на висоту `RTL_RETURN_ALT` або вище), тоді як 90 показує, що транспортний засіб повинен повертатися на поточну висоту або `RTL_DESCEND_ALT` (яка вище). | | [RTL_DESCEND_ALT](../advanced_config/parameter_reference.md#RTL_DESCEND_ALT) | Мінімальна висота повернення і висота, на якій повітряне судно сповільнює або зупиняє своє початкове зниження з вищої висоти повернення (за замовчуванням: 30 м) | | [RTL_LAND_DELAY](../advanced_config/parameter_reference.md#RTL_LAND_DELAY) | Час очікування на висоті `RTL_DESCEND_ALT` перед посадкою (за замовчуванням: 0.5 с) - за замовчуванням цей період короткий, щоб транспортний засіб просто сповільнився, а потім враз відразу приземлився. Якщо встановлено значення -1, система буде кружляти на висоті `RTL_DESCEND_ALT` замість посадки. Затримка надається для того, щоб ви могли налаштувати час для розгортання шасі для посадки (автоматично спрацьовує). | | [RTL_LOITER_RAD](../advanced_config/parameter_reference.md#RTL_LOITER_RAD) | [Літаки з фіксованим крилом] Радіус кола очікування (на висоті [RTL_LAND_DELAY](#RTL_LAND_DELAY). | diff --git a/docs/uk/flying/package_delivery_mission.md b/docs/uk/flying/package_delivery_mission.md index 66b1a042384..eda0ec43d53 100644 --- a/docs/uk/flying/package_delivery_mission.md +++ b/docs/uk/flying/package_delivery_mission.md @@ -24,7 +24,7 @@ Whether or not you `Land` depends on whether the package can safely be deployed Оскільки захват не може безпечно опускати посилки, мультикоптери та апарати VTOL часто приземляються, щоб розвантажити посилки, коли використовують захват. After the deployment device [indicates completion](#package-release-feedback), the vehicle will proceed to the next waypoint. -Note that if landed, the next mission item after deployment should be another `Waypoint` or a `Takeoff` mission item ([it must not be a `RETURN`](#rtl-waypoint-for-package-delivery-with-landing).) +Note that if landed, the next mission item after deployment should be another `Waypoint` or a `Takeoff` mission item ([it must not be a `RETURN`](#return-waypoint-for-package-delivery-with-landing).) ## Створення місії доставки посилок @@ -76,12 +76,12 @@ Note how the altitude graph shows the `Land` item. ### Примітки -#### Точка маршруту RTL для доставки посилок з посадкою +#### Return Waypoint for Package Delivery with Landing Do not plan a mission with a delivery like this: `LAND` > `GRIPPER` > `RETURN TO LAUNCH`. -For safety reasons "Return To Launch" is disabled when vehicle is landed ([related issue](https://github.com/PX4/PX4-Autopilot/pull/20044)). -Отже, якщо ви приземлитесь, випустите вантаж, а потім встановите точку маршруту RTL, апарат буде простоювати на координатах посадки. +For safety reasons Return mode is disabled when the vehicle is landed ([related issue](https://github.com/PX4/PX4-Autopilot/pull/20044)). +So if you land, release the cargo, then have a `Return` (`MAV_CMD_NAV_RETURN_TO_LAUNCH`) mission item, the vehicle will idle at the landing coordinate. #### Ручне керування захватом в місіях diff --git a/docs/uk/gps_compass/rtk_gps_cuav_c-rtk-9ps.md b/docs/uk/gps_compass/rtk_gps_cuav_c-rtk-9ps.md index 61927a6d0e6..43910af9c21 100644 --- a/docs/uk/gps_compass/rtk_gps_cuav_c-rtk-9ps.md +++ b/docs/uk/gps_compass/rtk_gps_cuav_c-rtk-9ps.md @@ -64,4 +64,4 @@ RTK setup and use on PX4 via _QGroundControl_ is largely plug and play (see [RTK ## Докладніше -[CUAV docs](https://doc.cuav.net/gps/c-rtk-series/en/c-rtk-9ps/) +[CUAV docs](https://doc.cuav.net/en/gnss/c-rtk-series/c-rtk-9ps/) diff --git a/docs/uk/gps_compass/rtk_gps_cuav_c-rtk2.md b/docs/uk/gps_compass/rtk_gps_cuav_c-rtk2.md index 0973f8706a2..31edd7ad608 100644 --- a/docs/uk/gps_compass/rtk_gps_cuav_c-rtk2.md +++ b/docs/uk/gps_compass/rtk_gps_cuav_c-rtk2.md @@ -98,7 +98,7 @@ It has a high-precision IMU and positioning module, and can reduce the number of ## Налаштування -[CUAV Docs](https://doc.cuav.net/gps/c-rtk2/en/quick-start-c-rtk2.html) +[CUAV Docs](https://doc.cuav.net/en/gnss/c-rtk-series/c-rtk2/quick-start-c-rtk2.html) ## Схема розташування виводів @@ -110,4 +110,4 @@ It has a high-precision IMU and positioning module, and can reduce the number of ## Докладніше -[CUAV Docs](https://doc.cuav.net/gps/c-rtk-series/en/c-rtk-9ps/) +[CUAV Docs](https://doc.cuav.net/en/gnss/c-rtk-series/c-rtk-9ps/) diff --git a/docs/uk/hardware/porting_guide_nuttx.md b/docs/uk/hardware/porting_guide_nuttx.md index ab4a1afa0e7..896775c8d4d 100644 --- a/docs/uk/hardware/porting_guide_nuttx.md +++ b/docs/uk/hardware/porting_guide_nuttx.md @@ -18,23 +18,28 @@ The following example uses FMUv5 as it is a recent [reference configuration](../ ## Налаштування меню NuttX Menuconfig -To modify the NuttX OS configuration, you can use [menuconfig](https://bitbucket.org/patacongo/nuttx/src/master/) using the PX4 shortcuts: +To modify the NuttX OS configuration, you can use [menuconfig](https://nuttx.apache.org/docs/latest/quickstart/configuring.html) using the PX4 shortcuts: ```sh make px4_fmu-v5_default menuconfig make px4_fmu-v5_default qconfig ``` -For fresh installs of PX4 onto Ubuntu using [ubuntu.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/setup/ubuntu.sh) you will also need to install _kconfig_ tools from [NuttX tools](https://bitbucket.org/nuttx/tools/src/master/). +The _kconfig_ tools used by these targets (`kconfig-mconf` and `kconfig-qconf`) are installed by the standard [Ubuntu](../dev_setup/dev_env_linux_ubuntu.md) and [macOS](../dev_setup/dev_env_mac.md) development environment setup, and are included in the [px4-dev-nuttx](https://hub.docker.com/r/px4io/px4-dev-nuttx/) docker container. -:::info + + + To run `qconfig` you may need to install additional Qt dependencies. diff --git a/docs/uk/index.md b/docs/uk/index.md index 0d627bdade4..d1a3fc8f3a6 100644 --- a/docs/uk/index.md +++ b/docs/uk/index.md @@ -53,6 +53,11 @@ The [Hardware Selection & Setup](hardware/drone_parts.md) section covers flight Read [Operations](config/operations.md) to understand safety features and failsafe behavior before your first flight. Then see [Basic Flying (Multicopter)](flying/basic_flying_mc.md) or the equivalent for your frame type. +## Security + +Securing a deployment is the integrator's responsibility — PX4 ships with every control interface unauthenticated, unsigned, and unencrypted! +The [Security](security/index.md) section collects the hardening documentation, and links to the [security policy](https://github.com/PX4/PX4-Autopilot/blob/main/SECURITY.md) for reporting a vulnerability. + ## Підтримка Get help on the [discussion forums](https://discuss.px4.io/) or [Discord](https://discord.com/invite/dronecode). See the [Support](contribute/support.md) page for diagnosing problems, reporting bugs, and joining the [weekly dev call](contribute/dev_call.md). diff --git a/docs/uk/mavlink/security_hardening.md b/docs/uk/mavlink/security_hardening.md index 4e40edc40cb..059ce7b0074 100644 --- a/docs/uk/mavlink/security_hardening.md +++ b/docs/uk/mavlink/security_hardening.md @@ -3,16 +3,24 @@ MAVLink is an open communication protocol designed for lightweight, low-latency communication between drones and ground stations. -By default, all MAVLink messages are unauthenticated. -This is intentional for development and testing, but **production deployments must enable [message signing](message_signing.md)** to prevent unauthorized access. +By default, all MAVLink messages are unauthenticated and unencrypted. +This is intentional for development and testing, but **production deployments must secure the link** to prevent unauthorized access. + +There are two ways to do that, and they are not exclusive: + +- **Secure the link below MAVLink**, using a radio configured with link-layer security, a VPN, etc. + Configured with authenticated encryption, this uses standard, reviewed cryptography and gives confidentiality and authentication for all traffic on the link, not only MAVLink. + It is outside PX4's scope and depends on your radio and network stack. +- **Enable [MAVLink message signing](message_signing.md)**, which authenticates MAVLink frames without encrypting them. + This is the mechanism PX4 itself ships, and it is described in this guide. :::warning -Without message signing enabled, any device that can send MAVLink messages to the vehicle (via radio, network, or serial) can execute any command, including shell access, file operations, parameter changes, mission uploads, arming, and flight termination. +On an unsecured link, any device that can send MAVLink messages to the vehicle (via radio, network, or serial) can execute any command, including shell access, file operations, parameter changes, mission uploads, arming, and flight termination. ::: ## What Is at Risk -When MAVLink signing is not enabled, an attacker within communication range can: +On an unsecured link, an attacker within communication range can: | Capability | MAVLink mechanism | | ------------------------------------------- | ------------------------------------------------ | @@ -27,13 +35,15 @@ When MAVLink signing is not enabled, an attacker within communication range can: | Reboot the vehicle | `MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN` | All of these are standard MAVLink capabilities used by ground control stations. -Without signing, there is no distinction between a legitimate GCS and an unauthorized sender. +Until the link is secured, there is no distinction between a legitimate GCS and an unauthorized sender. ## Hardening Checklist -### 1. Enable Message Signing +### 1. Secure the Link -Message signing provides cryptographic authentication for all MAVLink communication. +If the link is carried over an encrypted radio, a VPN or IPsec, that covers authentication and confidentiality for everything on it, and the rest of this step is optional. + +Otherwise, use message signing, which provides cryptographic authentication for all MAVLink communication. See [Message Signing](message_signing.md) for full details. Steps: @@ -50,6 +60,14 @@ Signing changes are rejected while the vehicle is armed. Signing can also be disabled by physically removing the key file from the SD card. ::: +:::warning +Provision the key before the vehicle is used on an untrusted link, not after. + +Until a key is provisioned there is nothing to authenticate against, so any peer that can reach a link can provision one. +Only _changing_ a key requires a signed message; setting the first one cannot, because no key exists yet. +A key installed by someone else locks out the legitimate ground station, and the recovery is to remove the key file from the SD card. +::: + ### 2. Secure Physical Access - **SD card**: The signing key is stored at `/mavlink/mavlink-signing-key.bin`. @@ -67,6 +85,7 @@ If your threat model includes physical access, secure the SD card slot and debug ### 3. Secure Network Links +- Prefer an encrypted transport where one is available: an encrypted radio link, a VPN, etc. - Do not expose MAVLink UDP/TCP ports to untrusted networks or the internet. - Place MAVLink communication links behind firewalls or VPNs. - Segment MAVLink networks from business or public networks. @@ -77,6 +96,8 @@ If your threat model includes physical access, secure the SD card slot and debug - **No encryption**: Message signing provides authentication and integrity, but messages are sent in plaintext. An eavesdropper can read telemetry and commands but cannot forge them. +- **Unaudited implementation**: + The signing protocol was audited when it was drafted, but PX4's implementation of it has not been. - **Allowlisted messages**: A small set of [safety-critical messages](message_signing.md#unsigned-message-allowlist) (`HEARTBEAT`, `RADIO_STATUS`, `ADSB_VEHICLE`, `COLLISION`) are always accepted unsigned on all links. An attacker could spoof these specific messages. diff --git a/docs/uk/middleware/dds_topics.md b/docs/uk/middleware/dds_topics.md index 869ef2d6923..3e0b17093c9 100644 --- a/docs/uk/middleware/dds_topics.md +++ b/docs/uk/middleware/dds_topics.md @@ -157,6 +157,7 @@ See messages - [EstimatorStatus](../msg_docs/EstimatorStatus.md) - [Event](../msg_docs/Event.md) - [EventV0](../msg_docs/EventV0.md) +- [ExternalGimbalManagerStatus](../msg_docs/ExternalGimbalManagerStatus.md) - [FailureDetectorStatus](../msg_docs/FailureDetectorStatus.md) - [FailureInjection](../msg_docs/FailureInjection.md) - [FiducialMarkerPosReport](../msg_docs/FiducialMarkerPosReport.md) @@ -181,6 +182,7 @@ See messages - [GimbalManagerInformation](../msg_docs/GimbalManagerInformation.md) - [GimbalManagerSetAttitude](../msg_docs/GimbalManagerSetAttitude.md) - [GimbalManagerSetManualControl](../msg_docs/GimbalManagerSetManualControl.md) +- [GimbalManagerSetPitchyaw](../msg_docs/GimbalManagerSetPitchyaw.md) - [GimbalManagerStatus](../msg_docs/GimbalManagerStatus.md) - [GpioConfig](../msg_docs/GpioConfig.md) - [GpioIn](../msg_docs/GpioIn.md) diff --git a/docs/uk/middleware/uxrce_dds.md b/docs/uk/middleware/uxrce_dds.md index 17753cbdfeb..3945ffd4dc9 100644 --- a/docs/uk/middleware/uxrce_dds.md +++ b/docs/uk/middleware/uxrce_dds.md @@ -26,6 +26,14 @@ In order for PX4 uORB topics to be shared on the DDS network you will need _uXRC The PX4 [uxrce_dds_client](../modules/modules_system.md#uxrce-dds-client) publishes to/from a defined set of uORB topics to the global DDS data space. +:::warning +The DDS transport is unauthenticated and reaches uORB directly, so the DDS network must be kept isolated. +Connect the flight controller to the companion over serial or a dedicated Ethernet cable, not over a shared or wireless network. +A direct cable is not enough on its own: the agent republishes into the DDS network on the companion, so also keep that local, for example with [UXRCE_DDS_PTCFG](../advanced_config/parameter_reference.md#UXRCE_DDS_PTCFG) set to localhost and `ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST` (`ROS_LOCALHOST_ONLY=1` on Humble). +If the data has to leave the companion, securing it is up to the integrator. +See [Security](../security/index.md) for more. +::: + The [eProsima Micro XRCE-DDS _Agent_](https://github.com/eProsima/Micro-XRCE-DDS-Agent) runs on the companion computer and acts as a proxy for the client in the DDS/ROS 2 network. The agent itself has no dependency on client-side code and can be built and/or installed independent of PX4 or ROS, as long as version compatibility is ensured. diff --git a/docs/uk/middleware/zenoh.md b/docs/uk/middleware/zenoh.md index 0f423affbcc..1910831c8cd 100644 --- a/docs/uk/middleware/zenoh.md +++ b/docs/uk/middleware/zenoh.md @@ -20,6 +20,14 @@ The Zenoh-based middleware consists of a client running on PX4 and a Zenoh route The router acts as a broker and discovery service, enabling PX4 to publish and subscribe to topics in the global Zenoh data space. This allows seamless integration with ROS 2 nodes using [`rmw_zenoh`](https://github.com/ros2/rmw_zenoh), and supports flexible deployment across distributed systems. +:::warning +The Zenoh transport is unauthenticated and reaches uORB directly, so the Zenoh network must be kept isolated. +Connect the flight controller to the companion over a dedicated Ethernet cable, not over a shared or wireless network. +A direct cable is not enough on its own: the router republishes into the Zenoh network, so the router must also not be reachable from other networks. +If the data has to leave the companion, securing it is up to the integrator. +See [Security](../security/index.md) for more. +::: + ![Architecture PX4 Zenoh-Pico with ROS 2](../../assets/middleware/zenoh/architecture-px4-zenoh.svg) The client is the _PX4 Zenoh-Pico Node_ referred to above, which is implemented in the [PX4 `zenoh` module](../modules/modules_driver.md#zenoh). diff --git a/docs/uk/modules/modules_controller.md b/docs/uk/modules/modules_controller.md index 2194dfa7c5d..29267181b0e 100644 --- a/docs/uk/modules/modules_controller.md +++ b/docs/uk/modules/modules_controller.md @@ -267,7 +267,7 @@ Source: [modules/navigator](https://github.com/PX4/PX4-Autopilot/tree/main/src/m ### Опис Module that is responsible for autonomous flight modes. This includes missions (read from dataman), -takeoff and RTL. +takeoff and Return. It is also responsible for geofence violation checking. ### Імплементація diff --git a/docs/uk/modules/modules_system.md b/docs/uk/modules/modules_system.md index 857ba8444ee..68916f72168 100644 --- a/docs/uk/modules/modules_system.md +++ b/docs/uk/modules/modules_system.md @@ -155,9 +155,9 @@ commander [arguments...] transition VTOL transition mode Change flight mode - manual|acro|offboard|stabilized|altctl|posctl|altitude_cruise|position:slow - |auto:mission|auto:loiter|auto:course|auto:rtl|auto:takeoff|aut - o:land|auto:precland|ext1 Flight mode + manual|acro|offboard|stabilized|altctl|posctl|altitude_cruise|manual_parkin + g|position:slow|auto:mission|auto:loiter|auto:course|auto:rtl|a + uto:takeoff|auto:land|auto:precland|ext1 Flight mode pair @@ -411,54 +411,15 @@ Source: [modules/internal_combustion_engine_control](https://github.com/PX4/PX4- ### Опис -The module controls internal combustion engine (ICE) features including: -ignition (on/off), throttle and choke level, starter engine delay, and user request. +Controls a spark-ignition internal combustion engine (ICE): ignition, throttle, choke and +electric starter motor. A state machine sequences the start attempts, restarts the engine if +it stops in flight, and runs a closed-loop idle RPM governor. -### Enabling +The module is not in the default builds, and is only started at boot if +[ICE_EN](../advanced_config/parameter_reference.md#ICE_EN) is set. -This feature is not enabled by default needs to be configured in the -build target for your board together with the rpm capture driver: - -``` -CONFIG_MODULES_INTERNAL_COMBUSTION_ENGINE_CONTROL=y -CONFIG_DRIVERS_RPM_CAPTURE=y -``` - -Additionally, to enable the module: - -- Set [ICE_EN](../advanced_config/parameter_reference.md#ICE_EN) - to true and adjust the other `ICE_` module parameters according to your needs. -- Set [RPM_CAP_ENABLE](../advanced_config/parameter_reference.md#RPM_CAP_ENABLE) to true. - -The module outputs control signals for ignition, throttle, and choke, -and takes inputs from an RPM sensor. -These must be mapped to AUX outputs/inputs in the [Actuator configuration](../config/actuators.md), -similar to the setup shown below. - -![Actuator setup for ICE](../../assets/hardware/ice/ice_actuator_setup.png) - -### Імплементація - -The ICE is implemented with a (4) state machine: - -![Architecture](../../assets/hardware/ice/ice_control_state_machine.png) - -The state machine: - -- Checks if [Rpm.msg](../msg_docs/Rpm.md) is updated to know if the engine is running -- Allows for user inputs from: - - Manual control AUX - - Arming state in [VehicleStatus.msg](../msg_docs/VehicleStatus.md) -- In the state "Stopped" the throttle is set to NAN, which by definition will set the - throttle output to the disarmed value configured for the specific output. - -The module publishes [InternalCombustionEngineControl.msg](../msg_docs/InternalCombustionEngineControl.md). - -The architecture is as shown below: - -![Architecture](../../assets/hardware/ice/ice_control_diagram.png) - - +See [Internal Combustion Engines](../actuators/internal_combustion_engine.md) for the firmware +and hardware setup, actuator configuration, start sequence timing and idle governor tuning. ### Usage {#internal_combustion_engine_control_usage} diff --git a/docs/uk/msg_docs/ArmingCheckReply.md b/docs/uk/msg_docs/ArmingCheckReply.md index ec69eacd9c1..169af09a90c 100644 --- a/docs/uk/msg_docs/ArmingCheckReply.md +++ b/docs/uk/msg_docs/ArmingCheckReply.md @@ -37,7 +37,7 @@ The message is not used by internal/FMU components, as their mode requirements a | mode_req_global_position | `bool` | | | Requires a global position estimate | | mode_req_global_position_relaxed | `bool` | | | Requires a relaxed global position estimate | | mode_req_mission | `bool` | | | Requires an uploaded mission | -| mode_req_home_position | `bool` | | | Requires a home position (such as RTL/Return mode) | +| mode_req_home_position | `bool` | | | Requires a home position (such as Return mode) | | mode_req_prevent_arming | `bool` | | | Prevent arming (such as in Land mode) | | mode_req_manual_control | `bool` | | | Requires a manual controller | @@ -104,7 +104,7 @@ bool mode_req_local_position_relaxed # Requires a more relaxed global position e bool mode_req_global_position # Requires a global position estimate bool mode_req_global_position_relaxed # Requires a relaxed global position estimate bool mode_req_mission # Requires an uploaded mission -bool mode_req_home_position # Requires a home position (such as RTL/Return mode) +bool mode_req_home_position # Requires a home position (such as Return mode) bool mode_req_prevent_arming # Prevent arming (such as in Land mode) bool mode_req_manual_control # Requires a manual controller diff --git a/docs/uk/msg_docs/ExternalGimbalManagerStatus.md b/docs/uk/msg_docs/ExternalGimbalManagerStatus.md new file mode 100644 index 00000000000..227483a19aa --- /dev/null +++ b/docs/uk/msg_docs/ExternalGimbalManagerStatus.md @@ -0,0 +1,56 @@ +--- +pageClass: is-wide-page +--- + +# ExternalGimbalManagerStatus (UORB message) + +External gimbal manager status. + +Status of a gimbal manager running on another component (not us), decoded from +an incoming GIMBAL_MANAGER_STATUS message. Used to track which component +currently controls an external gimbal manager. + +**TOPICS:** external_gimbal_manager_status + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ----------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| manager_sysid | `uint8` | | | System id of the external gimbal manager | +| manager_compid | `uint8` | | | Component id of the external gimbal manager | +| flags | `uint32` | | | | +| gimbal_device_id | `uint8` | | | | +| primary_control_sysid | `uint8` | | | | +| primary_control_compid | `uint8` | | | | +| secondary_control_sysid | `uint8` | | | | +| secondary_control_compid | `uint8` | | | | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/ExternalGimbalManagerStatus.msg) + +:::details +Click here to see original file + +```c +# External gimbal manager status +# +# Status of a gimbal manager running on another component (not us), decoded from +# an incoming GIMBAL_MANAGER_STATUS message. Used to track which component +# currently controls an external gimbal manager. + +uint64 timestamp # [us] Time since system start + +uint8 manager_sysid # [-] System id of the external gimbal manager +uint8 manager_compid # [-] Component id of the external gimbal manager + +uint32 flags # [-] +uint8 gimbal_device_id +uint8 primary_control_sysid +uint8 primary_control_compid +uint8 secondary_control_sysid +uint8 secondary_control_compid +``` + +::: diff --git a/docs/uk/msg_docs/GimbalManagerSetPitchyaw.md b/docs/uk/msg_docs/GimbalManagerSetPitchyaw.md new file mode 100644 index 00000000000..4d9127de0f1 --- /dev/null +++ b/docs/uk/msg_docs/GimbalManagerSetPitchyaw.md @@ -0,0 +1,70 @@ +--- +pageClass: is-wide-page +--- + +# GimbalManagerSetPitchyaw (UORB message) + +Gimbal manager pitch/yaw setpoint. + +This is sent by PX4 (acting as a gimbal manager client) to an +external gimbal manager). Streamed out as GIMBAL_MANAGER_SET_PITCHYAW. + +**TOPICS:** gimbal_manager_set_pitchyaw + +## Fields + +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | +| timestamp | `uint64` | us | | Time since system start | +| target_system | `uint8` | | | System id of the external gimbal manager | +| target_component | `uint8` | | | Component id of the external gimbal manager | +| gimbal_device_id | `uint8` | | | Gimbal device to address (0 for all) | +| flags | `uint32` | | [GIMBAL_MANAGER_FLAGS](#GIMBAL_MANAGER_FLAGS) | GIMBAL_MANAGER_FLAGS bitmask | +| pitch | `float32` | rad | | pitch angle (Invalid: NaN to ignore) | +| yaw | `float32` | rad | | yaw angle (Invalid: NaN to ignore) | +| pitch_rate | `float32` | rad/s | | Pitch angular rate (Invalid: NaN to ignore) | +| yaw_rate | `float32` | rad/s | | Yaw angular rate (Invalid: NaN to ignore) | + +## Enums + +### GIMBAL_MANAGER_FLAGS {#GIMBAL_MANAGER_FLAGS} + +Used in field(s): [flags](#fld_flags) + +| Назва | Тип | Значення | Опис | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ---- | +| GIMBAL_MANAGER_FLAGS_PITCH_LOCK | `uint32` | 8 | | +| GIMBAL_MANAGER_FLAGS_YAW_LOCK | `uint32` | 16 | | +| GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME | `uint32` | 64 | | + +## Source Message + +[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/GimbalManagerSetPitchyaw.msg) + +:::details +Click here to see original file + +```c +# Gimbal manager pitch/yaw setpoint +# +# This is sent by PX4 (acting as a gimbal manager client) to an +# external gimbal manager). Streamed out as GIMBAL_MANAGER_SET_PITCHYAW. + +uint64 timestamp # [us] Time since system start + +uint8 target_system # [-] System id of the external gimbal manager +uint8 target_component # [-] Component id of the external gimbal manager +uint8 gimbal_device_id # [-] Gimbal device to address (0 for all) + +uint32 flags # [@enum GIMBAL_MANAGER_FLAGS] GIMBAL_MANAGER_FLAGS bitmask +uint32 GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8 +uint32 GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16 +uint32 GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME = 64 + +float32 pitch # [rad] [@invalid NaN to ignore] pitch angle +float32 yaw # [rad] [@invalid NaN to ignore] yaw angle +float32 pitch_rate # [rad/s] [@invalid NaN to ignore] Pitch angular rate +float32 yaw_rate # [rad/s] [@invalid NaN to ignore] Yaw angular rate +``` + +::: diff --git a/docs/uk/msg_docs/InternalCombustionEngineControl.md b/docs/uk/msg_docs/InternalCombustionEngineControl.md index 365537eba23..017a8f46f81 100644 --- a/docs/uk/msg_docs/InternalCombustionEngineControl.md +++ b/docs/uk/msg_docs/InternalCombustionEngineControl.md @@ -4,18 +4,26 @@ pageClass: is-wide-page # InternalCombustionEngineControl (UORB message) +Internal combustion engine (ICE) actuator setpoints. + +Published by the `internal_combustion_engine_control` module, which runs the engine +start/stop state machine and the idle RPM governor. +The mixer maps these setpoints onto the IC Engine output functions (ignition, +throttle, choke, starter), which are assigned to the flight controller outputs. +The resulting state machine state is reported in `InternalCombustionEngineStatus`. + **TOPICS:** internal_combustion_engine_control ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| ------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | | | time since system start (microseconds) | -| ignition_on | `bool` | | | activate/deactivate ignition (spark plug) | -| throttle_control | `float32` | | | setpoint for throttle actuator, with slew rate if enabled, idles with 0 [norm] [@range 0,1] [@uncontrolled NAN to stop motor] | -| choke_control | `float32` | | | setpoint for choke actuator, 1: fully closed [norm] [@range 0,1] | -| starter_engine_control | `float32` | | | setpoint for (electric) starter motor [norm] [@range 0,1] | -| user_request | `uint8` | | | user intent for the ICE being on/off | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| -------------------------------------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | us | | Time since system start | +| ignition_on | `bool` | | | Activate/deactivate the ignition (spark plug) | +| throttle_control | `float32` | norm | [0 : 1] | Throttle actuator setpoint, rate limited by `ICE_THR_SLEW`. 0 is closed throttle (Invalid: NaN Stops the engine: output goes to its disarmed value) | +| choke_control | `float32` | norm | [0 : 1] | Choke actuator setpoint, 1 is fully closed | +| starter_engine_control | `float32` | norm | [0 : 1] | (Electric) starter motor setpoint | +| user_request_motor_on | `bool` | | | User intent for the engine to be running, from the source selected by `ICE_ON_SOURCE` | ## Source Message @@ -25,14 +33,22 @@ pageClass: is-wide-page Click here to see original file ```c -uint64 timestamp # time since system start (microseconds) +# Internal combustion engine (ICE) actuator setpoints +# +# Published by the `internal_combustion_engine_control` module, which runs the engine +# start/stop state machine and the idle RPM governor. +# The mixer maps these setpoints onto the IC Engine output functions (ignition, +# throttle, choke, starter), which are assigned to the flight controller outputs. +# The resulting state machine state is reported in `InternalCombustionEngineStatus`. -bool ignition_on # activate/deactivate ignition (spark plug) -float32 throttle_control # setpoint for throttle actuator, with slew rate if enabled, idles with 0 [norm] [@range 0,1] [@uncontrolled NAN to stop motor] -float32 choke_control # setpoint for choke actuator, 1: fully closed [norm] [@range 0,1] -float32 starter_engine_control # setpoint for (electric) starter motor [norm] [@range 0,1] +uint64 timestamp # [us] Time since system start -uint8 user_request # user intent for the ICE being on/off +bool ignition_on # Activate/deactivate the ignition (spark plug) +float32 throttle_control # [norm] [@range 0, 1] [@invalid NaN Stops the engine: output goes to its disarmed value] Throttle actuator setpoint, rate limited by `ICE_THR_SLEW`. 0 is closed throttle +float32 choke_control # [norm] [@range 0, 1] Choke actuator setpoint, 1 is fully closed +float32 starter_engine_control # [norm] [@range 0, 1] (Electric) starter motor setpoint + +bool user_request_motor_on # User intent for the engine to be running, from the source selected by `ICE_ON_SOURCE` ``` ::: diff --git a/docs/uk/msg_docs/ManualControlSwitches.md b/docs/uk/msg_docs/ManualControlSwitches.md index 26a7db9bb43..f50b3ced487 100644 --- a/docs/uk/msg_docs/ManualControlSwitches.md +++ b/docs/uk/msg_docs/ManualControlSwitches.md @@ -14,7 +14,7 @@ pageClass: is-wide-page | timestamp_sample | `uint64` | | | the timestamp of the raw data (microseconds) | | mode_slot | `uint8` | | | the slot a specific model selector is in | | arm_switch | `uint8` | | | arm/disarm switch: _DISARMED_, ARMED | -| return_switch | `uint8` | | | return to launch 2 position switch (mandatory): _NORMAL_, RTL | +| return_switch | `uint8` | | | Return mode 2 position switch (mandatory): _NORMAL_, RETURN | | loiter_switch | `uint8` | | | loiter 2 position switch (optional): _MISSION_, LOITER | | offboard_switch | `uint8` | | | offboard 2 position switch (optional): _NORMAL_, OFFBOARD | | kill_switch | `uint8` | | | throttle kill: _NORMAL_, KILL | @@ -73,7 +73,7 @@ uint8 MODE_SLOT_NUM = 6 # number of slots uint8 mode_slot # the slot a specific model selector is in uint8 arm_switch # arm/disarm switch: _DISARMED_, ARMED -uint8 return_switch # return to launch 2 position switch (mandatory): _NORMAL_, RTL +uint8 return_switch # Return mode 2 position switch (mandatory): _NORMAL_, RETURN uint8 loiter_switch # loiter 2 position switch (optional): _MISSION_, LOITER uint8 offboard_switch # offboard 2 position switch (optional): _NORMAL_, OFFBOARD uint8 kill_switch # throttle kill: _NORMAL_, KILL diff --git a/docs/uk/msg_docs/RtlStatus.md b/docs/uk/msg_docs/RtlStatus.md index 51b6f6fb532..75f6f536840 100644 --- a/docs/uk/msg_docs/RtlStatus.md +++ b/docs/uk/msg_docs/RtlStatus.md @@ -8,14 +8,14 @@ pageClass: is-wide-page ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| ----------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | | | time since system start (microseconds) | -| safe_points_id | `uint32` | | | unique ID of active set of safe_point_items | -| is_evaluation_pending | `bool` | | | flag if the RTL point needs reevaluation (e.g. new safe points available, but need loading). | -| has_vtol_approach | `bool` | | | flag if approaches are defined for current RTL_TYPE parameter setting | -| rtl_type | `uint8` | | | Type of RTL chosen | -| safe_point_index | `uint8` | | | index of the chosen safe point, UINT8_MAX if no rally point was chosen | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ----------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| timestamp | `uint64` | | | time since system start (microseconds) | +| safe_points_id | `uint32` | | | unique ID of active set of safe_point_items | +| is_evaluation_pending | `bool` | | | flag if the return point needs reevaluation (e.g. new safe points available, but need loading). | +| has_vtol_approach | `bool` | | | flag if approaches are defined for current RTL_TYPE parameter setting | +| rtl_type | `uint8` | | | Selected Return type | +| safe_point_index | `uint8` | | | index of the chosen safe point, UINT8_MAX if no rally point was chosen | ## Constants @@ -38,11 +38,11 @@ Click here to see original file uint64 timestamp # time since system start (microseconds) uint32 safe_points_id # unique ID of active set of safe_point_items -bool is_evaluation_pending # flag if the RTL point needs reevaluation (e.g. new safe points available, but need loading). +bool is_evaluation_pending # flag if the return point needs reevaluation (e.g. new safe points available, but need loading). bool has_vtol_approach # flag if approaches are defined for current RTL_TYPE parameter setting -uint8 rtl_type # Type of RTL chosen +uint8 rtl_type # Selected Return type uint8 safe_point_index # index of the chosen safe point, UINT8_MAX if no rally point was chosen uint8 RTL_STATUS_TYPE_NONE=0 # pending if evaluation can't pe performed currently e.g. when it is still loading the safe points diff --git a/docs/uk/msg_docs/RtlTimeEstimate.md b/docs/uk/msg_docs/RtlTimeEstimate.md index b61ce925db2..00451d37d53 100644 --- a/docs/uk/msg_docs/RtlTimeEstimate.md +++ b/docs/uk/msg_docs/RtlTimeEstimate.md @@ -12,7 +12,7 @@ pageClass: is-wide-page | ----------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- | | timestamp | `uint64` | | | time since system start (microseconds) | | valid | `bool` | | | Flag indicating whether the time estiamtes are valid | -| time_estimate | `float32` | s | | Estimated time for RTL | +| time_estimate | `float32` | s | | Estimated time for Return | | safe_time_estimate | `float32` | s | | Same as time_estimate, but with safety factor and safety margin included (factor\*t + margin) | ## Source Message @@ -26,7 +26,7 @@ Click here to see original file uint64 timestamp # time since system start (microseconds) bool valid # Flag indicating whether the time estiamtes are valid -float32 time_estimate # [s] Estimated time for RTL +float32 time_estimate # [s] Estimated time for Return float32 safe_time_estimate # [s] Same as time_estimate, but with safety factor and safety margin included (factor*t + margin) ``` diff --git a/docs/uk/msg_docs/VehicleStatus.md b/docs/uk/msg_docs/VehicleStatus.md index 812c25dfe23..c7d25f50bb8 100644 --- a/docs/uk/msg_docs/VehicleStatus.md +++ b/docs/uk/msg_docs/VehicleStatus.md @@ -10,49 +10,49 @@ Encodes the system state of the vehicle published by commander. ## Fields -| Назва | Тип | Unit [Frame] | Range/Enum | Опис | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| timestamp | `uint64` | | | time since system start (microseconds) | -| armed_time | `uint64` | | | Arming timestamp (microseconds) | -| takeoff_time | `uint64` | | | Takeoff timestamp (microseconds) | -| arming_state | `uint8` | | | | -| latest_arming_reason | `uint8` | | | | -| latest_disarming_reason | `uint8` | | | | -| nav_state_timestamp | `uint64` | | | time when current nav_state activated | -| nav_state_user_intention | `uint8` | | | Mode that the user selected (might be different from nav_state in a failsafe situation) | -| nav_state | `uint8` | | | Currently active mode | -| executor_in_charge | `uint8` | | | Current mode executor in charge (0=Autopilot) | -| nav_state_display | `uint8` | | | User-visible nav state sent via MAVLink (executor state if active, otherwise nav_state) | -| accepts_offboard_setpoints | `bool` | | | True if the current mode accepts offboard trajectory setpoints via MAVLink | -| valid_nav_states_mask | `uint32` | | | Bitmask for all valid nav_state values | -| can_set_nav_states_mask | `uint32` | | | Bitmask for all modes that a user can select | -| hil_state | `uint8` | | | | -| vehicle_type | `uint8` | | | | -| failsafe | `bool` | | | true if system is in failsafe state (e.g.:RTL, Hover, Terminate, ...) | -| failsafe_and_user_took_over | `bool` | | | true if system is in failsafe state but the user took over control | -| failsafe_defer_state | `uint8` | | | one of FAILSAFE_DEFER_STATE_\* | -| gcs_connection_lost | `bool` | | | datalink to GCS lost | -| gcs_connection_lost_counter | `uint8` | | | counts unique GCS connection lost events | -| high_latency_data_link_lost | `bool` | | | Set to true if the high latency data link (eg. RockBlock Iridium 9603 telemetry module) is lost | -| is_vtol | `bool` | | | True if the system is VTOL capable | -| is_vtol_tailsitter | `bool` | | | True if the system performs a 90° pitch down rotation during transition from MC to FW | -| in_transition_mode | `bool` | | | True if VTOL is doing a transition | -| in_transition_to_fw | `bool` | | | True if VTOL is doing a transition from MC to FW | -| system_type | `uint8` | | | system type, contains mavlink MAV_TYPE | -| system_id | `uint8` | | | system id, contains MAVLink's system ID field | -| component_id | `uint8` | | | subsystem / component id, contains MAVLink's component ID field | -| safety_button_available | `bool` | | | Set to true if a safety button is connected | -| safety_off | `bool` | | | Set to true if safety is off | -| power_input_valid | `bool` | | | set if input power is valid | -| usb_connected | `bool` | | | set to true (never cleared) once telemetry received from usb link | -| open_drone_id_system_present | `bool` | | | | -| open_drone_id_system_healthy | `bool` | | | | -| parachute_system_present | `bool` | | | | -| parachute_system_healthy | `bool` | | | | -| traffic_avoidance_system_present | `bool` | | | | -| rc_calibration_in_progress | `bool` | | | | -| calibration_enabled | `bool` | | | | -| pre_flight_checks_pass | `bool` | | | true if all checks necessary to arm pass | +| Назва | Тип | Unit [Frame] | Range/Enum | Опис | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| timestamp | `uint64` | | | time since system start (microseconds) | +| armed_time | `uint64` | | | Arming timestamp (microseconds) | +| takeoff_time | `uint64` | | | Takeoff timestamp (microseconds) | +| arming_state | `uint8` | | | | +| latest_arming_reason | `uint8` | | | | +| latest_disarming_reason | `uint8` | | | | +| nav_state_timestamp | `uint64` | | | time when current nav_state activated | +| nav_state_user_intention | `uint8` | | | Mode that the user selected (might be different from nav_state in a failsafe situation) | +| nav_state | `uint8` | | | Currently active mode | +| executor_in_charge | `uint8` | | | Current mode executor in charge (0=Autopilot) | +| nav_state_display | `uint8` | | | User-visible nav state sent via MAVLink (executor state if active, otherwise nav_state) | +| accepts_offboard_setpoints | `bool` | | | True if the current mode accepts offboard trajectory setpoints via MAVLink | +| valid_nav_states_mask | `uint32` | | | Bitmask for all valid nav_state values | +| can_set_nav_states_mask | `uint32` | | | Bitmask for all modes that a user can select | +| hil_state | `uint8` | | | | +| vehicle_type | `uint8` | | | | +| failsafe | `bool` | | | true if system is in failsafe state (e.g. Return, Hover, Terminate, ...) | +| failsafe_and_user_took_over | `bool` | | | true if system is in failsafe state but the user took over control | +| failsafe_defer_state | `uint8` | | | one of FAILSAFE_DEFER_STATE_\* | +| gcs_connection_lost | `bool` | | | datalink to GCS lost | +| gcs_connection_lost_counter | `uint8` | | | counts unique GCS connection lost events | +| high_latency_data_link_lost | `bool` | | | Set to true if the high latency data link (eg. RockBlock Iridium 9603 telemetry module) is lost | +| is_vtol | `bool` | | | True if the system is VTOL capable | +| is_vtol_tailsitter | `bool` | | | True if the system performs a 90° pitch down rotation during transition from MC to FW | +| in_transition_mode | `bool` | | | True if VTOL is doing a transition | +| in_transition_to_fw | `bool` | | | True if VTOL is doing a transition from MC to FW | +| system_type | `uint8` | | | system type, contains mavlink MAV_TYPE | +| system_id | `uint8` | | | system id, contains MAVLink's system ID field | +| component_id | `uint8` | | | subsystem / component id, contains MAVLink's component ID field | +| safety_button_available | `bool` | | | Set to true if a safety button is connected | +| safety_off | `bool` | | | Set to true if safety is off | +| power_input_valid | `bool` | | | set if input power is valid | +| usb_connected | `bool` | | | set to true (never cleared) once telemetry received from usb link | +| open_drone_id_system_present | `bool` | | | | +| open_drone_id_system_healthy | `bool` | | | | +| parachute_system_present | `bool` | | | | +| parachute_system_healthy | `bool` | | | | +| traffic_avoidance_system_present | `bool` | | | | +| rc_calibration_in_progress | `bool` | | | | +| calibration_enabled | `bool` | | | | +| pre_flight_checks_pass | `bool` | | | true if all checks necessary to arm pass | ## Constants @@ -76,11 +76,11 @@ Encodes the system state of the vehicle published by commander. | NAVIGATION_STATE_POSCTL | `uint8` | 2 | Position control mode | | NAVIGATION_STATE_AUTO_MISSION | `uint8` | 3 | Auto mission mode | | NAVIGATION_STATE_AUTO_LOITER | `uint8` | 4 | Auto loiter mode | -| NAVIGATION_STATE_AUTO_RTL | `uint8` | 5 | Auto return to launch mode | +| NAVIGATION_STATE_AUTO_RTL | `uint8` | 5 | Return mode | | NAVIGATION_STATE_POSITION_SLOW | `uint8` | 6 | | | NAVIGATION_STATE_GUIDED_COURSE | `uint8` | 7 | Guided Course mode (FW: maintain course/alt/speed) | | NAVIGATION_STATE_ALTITUDE_CRUISE | `uint8` | 8 | Altitude with Cruise mode | -| NAVIGATION_STATE_FREE3 | `uint8` | 9 | | +| NAVIGATION_STATE_MANUAL_PARKING | `uint8` | 9 | Manual Parking mode | | NAVIGATION_STATE_ACRO | `uint8` | 10 | Acro mode | | NAVIGATION_STATE_FREE2 | `uint8` | 11 | | | NAVIGATION_STATE_DESCEND | `uint8` | 12 | Descend mode (no position control) | @@ -157,11 +157,11 @@ uint8 NAVIGATION_STATE_ALTCTL = 1 # Altitude control mode uint8 NAVIGATION_STATE_POSCTL = 2 # Position control mode uint8 NAVIGATION_STATE_AUTO_MISSION = 3 # Auto mission mode uint8 NAVIGATION_STATE_AUTO_LOITER = 4 # Auto loiter mode -uint8 NAVIGATION_STATE_AUTO_RTL = 5 # Auto return to launch mode +uint8 NAVIGATION_STATE_AUTO_RTL = 5 # Return mode uint8 NAVIGATION_STATE_POSITION_SLOW = 6 uint8 NAVIGATION_STATE_GUIDED_COURSE = 7 # Guided Course mode (FW: maintain course/alt/speed) uint8 NAVIGATION_STATE_ALTITUDE_CRUISE = 8 # Altitude with Cruise mode -uint8 NAVIGATION_STATE_FREE3 = 9 +uint8 NAVIGATION_STATE_MANUAL_PARKING = 9 # Manual Parking mode uint8 NAVIGATION_STATE_ACRO = 10 # Acro mode uint8 NAVIGATION_STATE_FREE2 = 11 uint8 NAVIGATION_STATE_DESCEND = 12 # Descend mode (no position control) @@ -208,7 +208,7 @@ uint8 FAILSAFE_DEFER_STATE_DISABLED = 0 uint8 FAILSAFE_DEFER_STATE_ENABLED = 1 uint8 FAILSAFE_DEFER_STATE_WOULD_FAILSAFE = 2 # Failsafes deferred, but would trigger a failsafe -bool failsafe # true if system is in failsafe state (e.g.:RTL, Hover, Terminate, ...) +bool failsafe # true if system is in failsafe state (e.g. Return, Hover, Terminate, ...) bool failsafe_and_user_took_over # true if system is in failsafe state but the user took over control uint8 failsafe_defer_state # one of FAILSAFE_DEFER_STATE_* diff --git a/docs/uk/msg_docs/index.md b/docs/uk/msg_docs/index.md index 9b4ae314c59..dadcd0eec68 100644 --- a/docs/uk/msg_docs/index.md +++ b/docs/uk/msg_docs/index.md @@ -132,6 +132,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [EstimatorStates](EstimatorStates.md) - [EstimatorStatus](EstimatorStatus.md) - [EstimatorStatusFlags](EstimatorStatusFlags.md) +- [ExternalGimbalManagerStatus](ExternalGimbalManagerStatus.md) — External gimbal manager status. - [FailsafeFlags](FailsafeFlags.md) — Input flags for the failsafe state machine set by the arming & health checks. - [FailureDetectorStatus](FailureDetectorStatus.md) - [FailureInjection](FailureInjection.md) — Failure injection configuration. @@ -158,6 +159,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [GimbalManagerInformation](GimbalManagerInformation.md) - [GimbalManagerSetAttitude](GimbalManagerSetAttitude.md) - [GimbalManagerSetManualControl](GimbalManagerSetManualControl.md) +- [GimbalManagerSetPitchyaw](GimbalManagerSetPitchyaw.md) — Gimbal manager pitch/yaw setpoint. - [GimbalManagerStatus](GimbalManagerStatus.md) - [GpioConfig](GpioConfig.md) — GPIO configuration. - [GpioIn](GpioIn.md) — GPIO mask and state. @@ -169,7 +171,7 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m - [HeaterStatus](HeaterStatus.md) - [HoverThrustEstimate](HoverThrustEstimate.md) - [InputRc](InputRc.md) -- [InternalCombustionEngineControl](InternalCombustionEngineControl.md) +- [InternalCombustionEngineControl](InternalCombustionEngineControl.md) — Internal combustion engine (ICE) actuator setpoints. - [InternalCombustionEngineStatus](InternalCombustionEngineStatus.md) - [IridiumsbdStatus](IridiumsbdStatus.md) - [IrlockReport](IrlockReport.md) — IRLOCK_REPORT message data. diff --git a/docs/uk/releases/main.md b/docs/uk/releases/main.md index 4819c4e956a..b6ee3b4a187 100644 --- a/docs/uk/releases/main.md +++ b/docs/uk/releases/main.md @@ -31,6 +31,8 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ## Інструкції для оновлення - `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. +- `PCA9685_SCHD_HZ` has been removed. `PCA9685_PWM_FREQ` now sets both the PWM frequency of the PCA9685 and the rate at which values are pushed to it; if you had `PCA9685_SCHD_HZ` set to a non-default value, set `PCA9685_PWM_FREQ` to it after upgrading. Frequencies above 400 Hz (previously only usable in duty-cycle mode) are no longer supported. +- **jMAVSim has been removed.** `make px4_sitl jmavsim` and the `10017_jmavsim_iris` airframe (`SYS_AUTOSTART=10017`) no longer exist, and the setup scripts no longer install Java or `ant`. Use [SIH](../sim_sih/index.md) with the [Hawkeye](../sim_hawkeye/index.md) visualizer instead (`make px4_sitl_sih sihsim_quadx`), or [Gazebo](../sim_gazebo_gz/index.md). - **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)) ## Інші зміни @@ -43,7 +45,8 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Загальні -- Уточнюється +- The unit and functional test suite builds, links and runs on macOS (`make tests`), and `px4_poll()` timeouts on macOS wait for their full duration instead of returning at once. The blended GPS timestamp is accumulated in double and rounded once instead of truncating each weighted term. ([PX4-Autopilot#28516](https://github.com/PX4/PX4-Autopilot/pull/28516)) +- The AlphaFilter library takes its sample interval and time constant in microseconds, and the float seconds overloads are removed, so a value in the wrong unit no longer compiles. Out-of-tree code that constructs the filter with seconds needs updating. ([PX4-Autopilot#28421](https://github.com/PX4/PX4-Autopilot/pull/28421)) ### Управління @@ -74,7 +77,8 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Симуляція -- Уточнюється +- jMAVSim has been removed in favour of [SIH](../sim_sih/index.md) with the [Hawkeye](../sim_hawkeye/index.md) visualizer. See the [Upgrade Guide](#upgrade-guide). +- Gazebo: the GNSS failure injection commands (`failure gps off`, `stuck` and `wrong`) now apply to the NavSat data published by the gz bridge, consistent with the other simulator paths. ([PX4-Autopilot#28398](https://github.com/PX4/PX4-Autopilot/pull/28398)) ### Debug & Logging @@ -86,7 +90,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### uXRCE-DDS / Zenoh / ROS 2 -- Уточнюється +- (uXRCE-DDS): SITL multi vehicle automatic namespace prefix is now `uav_{px4_instance}` and it is aligned with the behaviour of `UXRCE_DDS_NS_IDX`. ([PX4-Autopilot#28338](https://github.com/PX4/PX4-Autopilot/pull/28338)) ### MAVLink diff --git a/docs/uk/ros/mavros_custom_messages.md b/docs/uk/ros/mavros_custom_messages.md index c6790623457..fed2b6b1634 100644 --- a/docs/uk/ros/mavros_custom_messages.md +++ b/docs/uk/ros/mavros_custom_messages.md @@ -326,10 +326,10 @@ Follow _Source Installation_ instructions from [mavlink/mavros](https://github.c make px4_fmu-v5_default upload ``` - - для SITL потрібно виконати наступну команду в кореневому каталозі PX4-Autopilot (використовуючи jmavsim simulation): + - to build for SITL execute the following command in the root of the PX4-Autopilot directory (using SIH simulation): ```sh - make px4_sitl jmavsim + make px4_sitl_sih sihsim_quadx ``` ## Запуск коду diff --git a/docs/uk/ros2/multi_vehicle.md b/docs/uk/ros2/multi_vehicle.md index db21598d836..2738f8bbecd 100644 --- a/docs/uk/ros2/multi_vehicle.md +++ b/docs/uk/ros2/multi_vehicle.md @@ -7,7 +7,7 @@ Єдині вимоги -- To be able to run [multi-vehicle simulation](../simulation/multi-vehicle-simulation.md) without ROS 2 with the desired simulator ([Gazebo](../sim_gazebo_gz/multi_vehicle_simulation.md), [Gazebo Classic](../sim_gazebo_classic/multi_vehicle_simulation.md#multiple-vehicle-with-gazebo-classic), [FlightGear](../sim_flightgear/multi_vehicle.md) and [JMAVSim](../sim_jmavsim/multi_vehicle.md)). +- To be able to run [multi-vehicle simulation](../simulation/multi-vehicle-simulation.md) without ROS 2 with the desired simulator ([Gazebo](../sim_gazebo_gz/multi_vehicle_simulation.md), [Gazebo Classic](../sim_gazebo_classic/multi_vehicle_simulation.md#multiple-vehicle-with-gazebo-classic), [FlightGear](../sim_flightgear/multi_vehicle.md) and [SIH](../sim_sih/index.md#multi-vehicle-simulation)). - To be able to use [ROS 2](../ros2/user_guide.md) in a single vehicle simulation. ## Принцип операції @@ -23,10 +23,10 @@ param set UXRCE_DDS_KEY $((px4_instance+1)) By doing so, `UXRCE_DDS_KEY` will always coincide with [MAV_SYS_ID](../advanced_config/parameter_reference.md#MAV_SYS_ID). ::: -Moreover, when `px4_instance` is greater than zero, a unique ROS 2 [namespace prefix](../middleware/uxrce_dds.md#customizing-the-namespace) in the form `px4_$px4_instance` is added: +Moreover, when `px4_instance` is greater than zero, a unique ROS 2 [namespace prefix](../middleware/uxrce_dds.md#customizing-the-namespace) in the form `uav_$px4_instance` is added: ```sh -uxrce_dds_ns="-n px4_$px4_instance" +uxrce_dds_ns="-n uav_$px4_instance" ``` :::info @@ -42,7 +42,7 @@ This mismatch can be fixed by manually using `PX4_UXRCE_DDS_NS` on the first ins | ------------------ | -------------- | ---------------- | --------------------- | | not provided | 0 | `px4_instance+1` | none | | provided | 0 | `px4_instance+1` | `PX4_UXRCE_DDS_NS` | -| not provided | > 0 | `px4_instance+1` | `px4_${px4_instance}` | +| not provided | > 0 | `px4_instance+1` | `uav_${px4_instance}` | | provided | > 0 | `px4_instance+1` | `PX4_UXRCE_DDS_NS` | ## Adjusting `VehicleCommand` routing fields diff --git a/docs/uk/ros2/px4_ros2_control_interface.md b/docs/uk/ros2/px4_ros2_control_interface.md index d9eb3522643..80d68d3e4f7 100644 --- a/docs/uk/ros2/px4_ros2_control_interface.md +++ b/docs/uk/ros2/px4_ros2_control_interface.md @@ -60,7 +60,7 @@ You are welcome to add and contribute missing classes. #### Виконавець Режимів Виконавець режимів - це необов'язковий компонент для розкладання режимів. -Наприклад, виконавець режимів для індивідуальної доставки вантажу або режиму обстеження може спочатку ініціювати злет, потім переключитися на індивідуальний режим, і коли він завершиться, ініціювати повернення на базу (RTL). +For example, the mode executor for a custom payload delivery or survey mode might first trigger a take-off, then switch to the custom mode, and when that completes trigger a Return. Зокрема, він має наступні властивості: @@ -736,8 +736,8 @@ This makes it independent of startup ordering in case of multiple external modes ### Заміна внутрішнього режиму -Зовнішній режим може замінити існуючий внутрішній режим, наприклад, режим Повернення (RTL). -При цьому кожного разу, коли вибирається RTL (через користувача або ситуацію аварійного виклику), замість внутрішнього режиму використовується зовнішній. Внутрішній режим використовується лише як резервний випадок. +An external mode can replace an existing internal mode, such as [Return](../flight_modes/return.md) mode. +By doing so, whenever it gets selected (through the user or a failsafe situation), the external mode is used instead of the internal one. Внутрішній режим використовується лише як резервний випадок, коли зовнішній стає недоступним або відмовляє. Замінений режим можна встановити в налаштуваннях конструктора ModeBase: diff --git a/docs/uk/ros2/px4_ros2_waypoint_missions.md b/docs/uk/ros2/px4_ros2_waypoint_missions.md index c6d6f7caff1..af79a7c6abe 100644 --- a/docs/uk/ros2/px4_ros2_waypoint_missions.md +++ b/docs/uk/ros2/px4_ros2_waypoint_missions.md @@ -11,7 +11,7 @@ They completely bypass the existing PX4 mission mode and waypoint logic, and can ::: ROS 2 waypoint missions are effectively special PX4 ROS 2 custom modes that are run based on the content of a [JSON mission definition](#mission-definition). -Mission definitions can contain actions that reference existing PX4 modes, such as Takeoff mode or RTL, and can also be extended with arbitrary custom actions written in ROS. +Mission definitions can contain actions that reference existing PX4 modes, such as Takeoff or Return mode, and can also be extended with arbitrary custom actions written in ROS. A [mode executor](px4_ros2_control_interface.md#mode-executor) is used to schedule the modes. Mission definitions can be hard coded in the custom mission mode (either in code or statically loaded from a JSON string), or directly generated within the application. @@ -69,13 +69,13 @@ They are identified by a name, and any number of these can be registered with th A custom action is then run whenever a mission item with matching name is executed, and any extra arguments from the JSON definition are passed as arguments (for example an altitude for a takeoff action). Actions can call other actions, run any mode (PX4 or external by its ID), run a trajectory, or run any other external action before deciding when to continue the mission. -There is a set of default actions, for example for RTL, Land, etc. +There is a set of default actions, for example for Return, Land, etc. These simply trigger the corresponding PX4 mode. They can be disabled or replaced with custom implementations. There are also some special actions (which can be replaced as well): - `OnFailure`: this is called in case of a failure, e.g. a mode switch failed, a non-existing action is called (by another action) or by an explicit call to `MissionExecutor::abort()`. - The default is to run RTL, with fallback to Land. + The default is to run Return, with fallback to Land. - `OnResume`: this is called when resuming a mission (either from the ground or in-air). It handles a number of cases: - when called with an argument `action="storeState"`: this can be used to store the current position when the mission is deactivated, so it can be resumed from the same position. diff --git a/docs/uk/security/index.md b/docs/uk/security/index.md new file mode 100644 index 00000000000..5018eafd941 --- /dev/null +++ b/docs/uk/security/index.md @@ -0,0 +1,26 @@ +# Security + +Securing PX4 for a production vehicle is the integrator's responsibility. + +:::tip +PX4 is open by default: every PX4 control interface is unauthenticated, unsigned and unencrypted, and any peer that can reach a link can command the vehicle. +This is intended! +::: + +This section provides links to security documentation for integrators and security researchers. + +## Integrators + +- [MAVLink Security Hardening](../mavlink/security_hardening.md) — what an unauthenticated link exposes, and the checklist for a production deployment. +- [MAVLink Message Signing](../mavlink/message_signing.md) — authenticating MAVLink frames, and what signing does not cover. +- [Bootloader Secure Boot](../advanced_config/bootloader_secure_boot.md) — verifying firmware at boot, and replacing the committed test key. +- [Log Encryption](../dev_log/log_encryption.md) — encrypting flight logs at rest. +- [Read-Only Parameters](../advanced/parameters_and_configurations.md#read-only-parameters) — locking down settings that end users should not change. + +Securing the link itself sits below PX4. +An encrypted radio, a VPN or IPsec uses standard cryptography and protects every interface at once, including the ones MAVLink signing does not cover. + +## Security Researchers + +- [Security Policy](https://github.com/PX4/PX4-Autopilot/blob/main/SECURITY.md) — supported versions, how to report a vulnerability, and the rules for AI-assisted findings. +- [Security Scope](https://github.com/PX4/PX4-Autopilot/blob/main/SECURITY_SCOPE.md) — where PX4's security boundary sits, and what is in scope for a report. diff --git a/docs/uk/sensor/airspeed.md b/docs/uk/sensor/airspeed.md index 78fa57bd3dc..858126805da 100644 --- a/docs/uk/sensor/airspeed.md +++ b/docs/uk/sensor/airspeed.md @@ -25,7 +25,7 @@ Airspeed sensors are _highly recommended_ for fixed-wing and VTOL frames. - [RCDrone Digital AirSpeed sensor ASPD-DLVR](https://rcdrone.top/products/matek-mateksys-digital-airspeed-sensor-aspd-dlvr) - DroneCAN interface - [Holybro High Precision DroneCAN Airspeed Sensor - DLVR](https://holybro.com/collections/sensors/products/high-precision-dronecan-airspeed-sensor-dlvr) - - [RaccoonLab Cyphal/CAN and DroneCAN Airspeed Sensor - MS4525DO](https://raccoonlab.co/tproduct/360882105-652259850171-cyphal-and-dronecan-airspeed-v2) + - [RaccoonLab Cyphal/CAN and DroneCAN Airspeed Sensor - MS4525DO](https://docs.raccoonlab.co/guide/airspeed/) - [Avionics Anonymous Air Data Computer with OAT probe](https://www.tindie.com/products/avionicsanonymous/uavcan-air-data-computer-airspeed-sensor/) - [UAV-DEV GmbH DroneCAN Airspeed and Barometer Sensor - AUAV](https://wiki.uav-dev.com/en/product/airspeed/auav) - Based on [Venturi effect](https://en.wikipedia.org/wiki/Venturi_effect) diff --git a/docs/uk/sensor/barometer.md b/docs/uk/sensor/barometer.md index b397f48ec0f..bb4b2c778be 100644 --- a/docs/uk/sensor/barometer.md +++ b/docs/uk/sensor/barometer.md @@ -15,7 +15,7 @@ By default PX4 will select the barometer with the highest priority (if any are p Вони також присутні в іншому обладнанні: - [CUAV NEO 3 Pro GNSS module](https://doc.cuav.net/gps/neo-series-gnss/en/neo-3-pro.html#key-data) ([MS5611](../modules/modules_driver_baro.md#ms5611)) -- [RaccoonLab L1 GNSS NEO-M8N](https://raccoonlab.co/tproduct/360882105-258620719271-cyphal-and-dronecan-gnss-m8n-magnetomete) +- [RaccoonLab L1 GNSS NEO-M8N](https://docs.raccoonlab.co/guide/gps_mag_baro/) На момент написання водії/частини включають: bmp280, bmp388 (та BMP380), dps310, goertek (spl06), invensense (icp10100, icp10111, icp101xx, icp201xx), lps22hb, lps25h, lps33hw, maiertek (mpc2520), mpl3115a2, ms5611, ms5837, tcbp001ta. diff --git a/docs/uk/sensor/rangefinders.md b/docs/uk/sensor/rangefinders.md index b0ec3e9b997..cf7fad04eee 100644 --- a/docs/uk/sensor/rangefinders.md +++ b/docs/uk/sensor/rangefinders.md @@ -158,7 +158,7 @@ The [Avionics Anonymous UAVCAN Laser Altimeter Interface](../dronecan/avanon_las ### RaccoonLab Cyphal and DroneCAN Rangefinder Adapter -The [RaccoonLab Cyphal and DroneCAN Rangefinder Adapter](https://raccoonlab.co/tproduct/360882105-910084093051-cyphal-and-dronecan-rangefinder-adapter) allows several common rangefinders to be connected to the CAN bus via Cyphal or DroneCAN, providing a more robust interface than I2C or UART. +The [RaccoonLab Cyphal and DroneCAN Rangefinder Adapter](https://docs.raccoonlab.co/guide/rangefinder/) allows several common rangefinders to be connected to the CAN bus via Cyphal or DroneCAN, providing a more robust interface than I2C or UART. This adapter efficiently reads measurements via I2C or UART and publishes range data in meters, making it a versatile solution for UAVs, robotics, and technical documentation applications. Supported rangefinders include: diff --git a/docs/uk/sim_jmavsim/index.md b/docs/uk/sim_jmavsim/index.md index 5d305df3c40..02b6dd42319 100644 --- a/docs/uk/sim_jmavsim/index.md +++ b/docs/uk/sim_jmavsim/index.md @@ -1,401 +1 @@ -# jMAVSim з SITL - -:::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) для інформації про середовища та інструменти, що підтримуються основною командою розробників. -::: - -jMAVSim is a simple multirotor/Quad simulator that allows you to fly _copter_ type vehicles running PX4 around a simulated world. -Його легко налаштувати і можна використовувати для перевірки того, що ваш апарат може злітати, летіти, приземлятися і належним чином реагувати на різні несправності (наприклад, несправність GPS). - -Supported Vehicles: - -- Quad - -Ця тема показує, як налаштувати jMAVSim для підключення до SITL версії PX4. - -:::tip -jMAVSim can also be used for HITL Simulation ([as shown here](../simulation/hitl.md#jmavsim-quadrotor-only)). -::: - -## Встановлення - -jMAVSim requires JDK 17 or later. -On Ubuntu and Windows, the [standard development environment setup](../dev_setup/dev_env.md) scripts install all required dependencies including Java. -On macOS, `./Tools/setup/macos.sh --sim-tools` installs a suitable JDK and links it into `/Library/Java/JavaVirtualMachines` (see [macOS Development Environment](../dev_setup/dev_env_mac.md)). -If you set up without `--sim-tools`, install Java manually as shown below. - -### macOS - -jMAVSim requires OpenJDK 17 or later. -Install it via Homebrew: - -```sh -brew install openjdk@17 -``` - -Homebrew installs OpenJDK but does not link it into your `PATH`, so you need to set `JAVA_HOME` for jMAVSim to find it. -Add this to your shell profile (e.g. `~/.zshrc`): - -```sh -export JAVA_HOME=$(/usr/libexec/java_home -v 17) -``` - -## Середовище симуляції - -Симуляція програмного забезпечення в петлі виконує повну систему на комп'ютері та моделює автопілот. -Він підключається через локальну мережу до симулятора. -Вигляд налаштування виглядає наступним чином: - -[![Mermaid graph: SITL Simulator](https://mermaid.ink/img/eyJjb2RlIjoiZ3JhcGggTFI7XG4gIFNpbXVsYXRvci0tPk1BVkxpbms7XG4gIE1BVkxpbmstLT5TSVRMOyIsIm1lcm1haWQiOnsidGhlbWUiOiJkZWZhdWx0In0sInVwZGF0ZUVkaXRvciI6ZmFsc2V9)](https://mermaid-js.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoiZ3JhcGggTFI7XG4gIFNpbXVsYXRvci0tPk1BVkxpbms7XG4gIE1BVkxpbmstLT5TSVRMOyIsIm1lcm1haWQiOnsidGhlbWUiOiJkZWZhdWx0In0sInVwZGF0ZUVkaXRvciI6ZmFsc2V9) - - - -## Запуск SITL - -After ensuring that the [simulation prerequisites](../dev_setup/dev_env.md) are installed on the system, just launch: The convenience make target will compile the POSIX host build and run the simulation. - -```sh -make px4_sitl_default jmavsim -``` - -Це запустить консоль PX4 як показано нижче: - -```sh -[init] shell id: 140735313310464 -[init] task name: px4 - -______ __ __ ___ -| ___ \ \ \ / / / | -| |_/ / \ V / / /| | -| __/ / \ / /_| | -| | / /^\ \ \___ | -\_| \/ \/ |_/ - -Ready to fly. - - -pxh> -``` - -It will also bring up a window showing a 3D view of the [jMAVSim](https://github.com/PX4/jMAVSim) simulator: - -![jMAVSim 3d View](../../assets/simulation/jmavsim/jmavsim.jpg) - -## Підйом у небо - -Система почне друкувати інформацію про статус. -You will be able to start flying once you have a position lock (shortly after the console displays the message: _EKF commencing GPS fusion_). - -Щоб злітіти, введіть наступне у консоль: - -```sh -pxh> commander takeoff -``` - -You can use _QGroundControl_ to fly a mission or to connect to a [joystick](#using-a-joystick). - -## Використання/Налаштування - -Options that apply to all simulators are covered in the top level [Simulation](../simulation/index.md#sitl-simulation-environment) topic (some of these may be duplicated below). - -### Імітація відмови датчика/обладнання - -[Simulate Failsafes](../simulation/failsafes.md) explains how to trigger safety failsafes like GPS failure and battery drain. - -### Встановлення власного місця зльоту - -The default takeoff location in can be overridden using the environment variables: `PX4_HOME_LAT`, `PX4_HOME_LON`, and `PX4_HOME_ALT`. - -Наприклад, щоб встановити широту, довготу та висоту: - -```sh -export PX4_HOME_LAT=28.452386 -export PX4_HOME_LON=-13.867138 -export PX4_HOME_ALT=28.5 -make px4_sitl_default jmavsim -``` - -### Зміна швидкості симуляції - -The simulation speed can be increased or decreased with respect to realtime using the environment variable `PX4_SIM_SPEED_FACTOR`. - -To run at double real-time: - -```sh -PX4_SIM_SPEED_FACTOR=2 make px4_sitl_default jmavsim -``` - -To run at half real-time: - -```sh -PX4_SIM_SPEED_FACTOR=0.5 make px4_sitl_default jmavsim -``` - -To apply a factor to all SITL runs in the current session, use `EXPORT`: - -```sh -export PX4_SIM_SPEED_FACTOR=2 -make px4_sitl_default jmavsim -``` - -### Використання джойстика - -Joystick and thumb-joystick support are supported through _QGroundControl_ ([setup instructions here](../simulation/index.md#joystick-gamepad-integration)). - -### Моделювання Wifi Дрона - -Є спеціальна ціль для моделювання безпілотника, підключеного через Wifi до локальної мережі: - -```sh -make broadcast jmavsim -``` - -Симулятор транслює свою адресу в локальній мережі так, як це робив би справжній безпілотник. - -### Запуск JMAVSim та PX4 окремо - -Ви можете запустити JMAVSim та PX4 окремо: - -```sh -./Tools/simulation/jmavsim/jmavsim_run.sh -l -make px4_sitl none -``` - -Це дозволяє швидший цикл тестування (перезапуск jMAVSim займає значно більше часу). - -### Режим без інтерфейсу - -To start jMAVSim without the GUI, set the env variable `HEADLESS=1` as shown: - -```sh -HEADLESS=1 make px4_sitl jmavsim -``` - -## Симуляція кількох рухомих засобів - -JMAVSim can be used for multi-vehicle simulation: [Multi-Vehicle Sim with JMAVSim](../sim_jmavsim/multi_vehicle.md). - -## Lockstep - -PX4 SITL and jMAVSim have been set up to run in _lockstep_. -What this means is that PX4 and the simulator run at the same speed, and therefore can react appropriately to sensor and actuator messages. -Lockstep makes it possible to [change the simulation speed](#change-simulation-speed), and also to pause it in order to step through code. - -#### Lockstep Sequence - -The sequence of steps for lockstep are: - -1. The simulation sends a sensor message [HIL_SENSOR](https://mavlink.io/en/messages/common.html#HIL_SENSOR) including a timestamp `time_usec` to update the sensor state and time of PX4. -2. PX4 receives this and does one iteration of state estimation, controls, etc. and eventually sends an actuator message [HIL_ACTUATOR_CONTROLS](https://mavlink.io/en/messages/common.html#HIL_ACTUATOR_CONTROLS). -3. The simulation waits until it receives the actuator/motor message, then simulates the physics and calculates the next sensor message to send to PX4 again. - -The system starts with a "freewheeling" period where the simulation sends sensor messages including time and therefore runs PX4 until it has initialized and responds with an actuator message. - -#### Disabling Lockstep - -The lockstep simulation can be disabled if, for example, SITL is to be used with a simulator that does not support this feature. -In this case the simulator and PX4 use the host system time and do not wait on each other. - -To disable lockstep in: - -- PX4, run `make px4_sitl_default boardconfig` and set the `BOARD_NOLOCKSTEP` "Force disable lockstep" symbol which is located under toolchain. -- jMAVSim, remove `-l` in [sitl_run.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/simulation/jsbsim/sitl_run.sh#L40), or make sure otherwise that the java binary is started without the `-lockstep` flag. - - - - - - - -## Розширення та персоналізація - -To extend or customize the simulation interface, edit the files in the **Tools/jMAVSim** folder. -The code can be accessed through the[jMAVSim repository](https://github.com/px4/jMAVSim) on Github. - -:::info -The build system enforces the correct submodule to be checked out for all dependencies, including the simulator. -Це не перезапише зміни в файлах у каталозі, проте, коли ці зміни будуть зафіксовані, підмодуль повинен бути зареєстрований у репозиторії Firmware з новим хешем коміту. -To do so, `git add Tools/jMAVSim` and commit the change. -Це оновить хеш GIT симулятора. -::: - -## Взаємодія з ROS - -The simulation can be [interfaced to ROS](../simulation/ros_interface.md) the same way as onboard a real vehicle. - -## Важливі файли - -- The startup scripts are discussed in [System Startup](../concept/system_startup.md). -- The simulated root file system ("`/`" directory) is created inside the build directory here: `build/px4_sitl_default/rootfs`. - -## Display-Only Mode - -jMAVSim can run as a display-only renderer for other simulators (like [SIH](../sim_sih/index.md)), with its internal physics disabled. -In this mode, jMAVSim receives vehicle position via MAVLink and only renders the 3D view. - -To use jMAVSim as a display for SIH running in SITL: - -```sh -# Start SIH first -make px4_sitl_sih sihsim_quadx - -# In another terminal, start jMAVSim in display-only mode -./Tools/simulation/jmavsim/jmavsim_run.sh -p 19410 -u -q -o # 19410 is the default SIH display port -``` - -For SIH running on flight controller hardware: - -```sh -./Tools/simulation/jmavsim/jmavsim_run.sh -q -d /dev/ttyACM0 -b 2000000 -o -``` - -Use `-a` for airplane display or `-t` for tailsitter display. - -## Command-Line Reference - -The `jmavsim_run.sh` launch script accepts the following flags: - -| Flag | Опис | -| ------------- | -------------------------------------------------------------------------------------------- | -| `-b ` | Serial baud rate (default: 921600) | -| `-d ` | Serial device path (e.g., `/dev/ttyACM0`) | -| `-u` | Use UDP connection instead of serial | -| `-i ` | Simulated MAVLink system ID | -| `-p ` | UDP port (default: 14560) | -| `-q` | No interactive console | -| `-s ` | TCP serial port | -| `-r ` | Render rate in Hz | -| `-l` | Enable lockstep | -| `-o` | Display-only mode (disable physics, render only) | -| `-a` | Use airplane model | -| `-t` | Use tailsitter model | -| `HEADLESS=1` | Environment variable: run without GUI window | - -## How jMAVSim Works - -jMAVSim is a Java-based lightweight simulator that communicates with PX4 via MAVLink HIL (Hardware-In-the-Loop) messages. - -In normal mode: - -1. PX4 sends actuator commands via [HIL_ACTUATOR_CONTROLS](https://mavlink.io/en/messages/common.html#HIL_ACTUATOR_CONTROLS). -2. jMAVSim runs its physics engine to compute the vehicle state. -3. jMAVSim sends sensor data back via [HIL_SENSOR](https://mavlink.io/en/messages/common.html#HIL_SENSOR) and [HIL_GPS](https://mavlink.io/en/messages/common.html#HIL_GPS). - -In **display-only mode** (`-o` flag), jMAVSim disables its physics engine and only reads [HIL_STATE_QUATERNION](https://mavlink.io/en/messages/common.html#HIL_STATE_QUATERNION) messages to render the vehicle position. -This allows it to visualize vehicles from other simulators like SIH. - -jMAVSim supports [lockstep synchronization](#lockstep) with PX4 (enabled with `-l` flag), ensuring deterministic simulation results. - -## Keyboard Shortcuts - -Camera modes in the jMAVSim 3D view: - -| Key | Camera Mode | -| -------------------------------- | ------------------------------------------------------- | -| **F** | First person (attached to vehicle) | -| **S** | Stationary (fixed position) | -| **G** | Gimbal (follows vehicle orientation) | -| **(default)** | Third person follow | - -## Усунення проблем - -### java.long.NoClassDefFoundError - -```sh -Exception in thread "main" java.lang.NoClassDefFoundError: javax/vecmath/Tuple3d -at java.base/java.lang.Class.forName0(Native Method) -at java.base/java.lang.Class.forName(Class.java:374) -at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56) -Caused by: java.lang.ClassNotFoundException: javax.vecmath.Tuple3d -at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) -at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566) -at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) -... 3 more -Exception in thread "main" java.lang.NoClassDefFoundError: javax/vecmath/Tuple3d -at java.base/java.lang.Class.forName0(Native Method) -at java.base/java.lang.Class.forName(Class.java:374) -at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56) -Caused by: java.lang.ClassNotFoundException: javax.vecmath.Tuple3d -at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) -at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566) -at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) -``` - -This error should no longer occur once the jMAVSim submodule is [updated to newer jar libs](https://github.com/PX4/jMAVSim/pull/119) and Java 11 or Java 14 should work fine. - -### Відбулася незаконна відображувальна операція доступу - -Це попередження можна ігнорувати (ймовірно, воно буде відображено, але симуляція все одно буде працювати правильно). - -```sh -WARNING: An illegal reflective access operation has occurred -WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext() -WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline -WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations -WARNING: All illegal access operations will be denied in a future release -Inconsistency detected by ld.so: dl-lookup.c: 112: check_match: Assertion version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed! -``` - -### java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper - -```sh -Виключення в потоці "main" java.lang.reflect.InvocationTargetException -в sun.reflect.NativeMethodAccessorImpl.invoke0 (Нативний метод) -в sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) -в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) -в java.lang.reflect.Method.invoke (Method.java:498) -в org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main (JarRsrcLoader.java:58) -Викликано: java.awt.AWTError: Не знайдено технологію сприяння: org.GNOME.Accessibility.AtkWrapper -в java.awt.Toolkit.loadAssistiveTechnologies (Toolkit.java:807) -в java.awt.Toolkit.getDefaultToolkit (Toolkit.java:886) -в java.awt.Window.getToolkit (Window.java:1358) -в java.awt.Window.init (Window.java:506) -в java.awt.Window. (Window.java:537) -в java.awt.Frame. (Frame.java:420) -в java.awt.Frame. (Frame.java:385) -в javax.swing.JFrame. (JFrame.java:189) -в me.drton.jmavsim.Visualizer3D. (Visualizer3D.java:104) -в me.drton.jmavsim.Simulator. (Simulator.java:157) -в me.drton.jmavsim.Simulator.main (Simulator.java:678) -``` - -Якщо ви бачите цю помилку, спробуйте цей обхідний шлях: - -Edit the **accessibility.properties** file: - -```sh -sudo gedit /etc/java-8-openjdk/accessibility.properties -``` - -та закоментуйте рядок, вказаний нижче: - -```sh -#assistive_technologies=org.GNOME.Accessibility.AtkWrapper -``` - -For more info, check [this GitHub issue](https://github.com/PX4/PX4-Autopilot/issues/9557). -A contributor found the fix in [askubuntu.com](https://askubuntu.com/questions/695560/assistive-technology-not-found-awterror). - -### Виняток у потоці "main" java.lang.UnsupportedClassVersionError - -При компіляції jMAVsim ви можливо зіткнетеся з наступною помилкою: - -```sh -Exception in thread "main" java.lang.UnsupportedClassVersionError: me/drton/jmavsim/Simulator has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 58.0 -``` - -Ця помилка говорить вам, вам потрібна більш свіжа версія Java у вашому середовищі. -Версія файлу класу 58 відповідає jdk14, версія 59 - jdk15, версія 60 - jdk 16 тощо. - -To fix it under macOS, install a newer OpenJDK via Homebrew: - -```sh -brew install openjdk@17 -``` + diff --git a/docs/uk/sim_jmavsim/multi_vehicle.md b/docs/uk/sim_jmavsim/multi_vehicle.md index f46c487caca..f290cdc9e72 100644 --- a/docs/uk/sim_jmavsim/multi_vehicle.md +++ b/docs/uk/sim_jmavsim/multi_vehicle.md @@ -1,53 +1 @@ -# Симуляція кількох рухомих засобів з JMAVSim - -This topic explains how to simulate multiple UAV (multicopter) vehicles using [JMAVSim](../sim_jmavsim/index.md) and SITL. -Усі екземпляри транспортних засобів починають рух з однакової позиції в симуляції. - -:::tip -This is the easiest way to simulate multiple vehicles running PX4. -It is suitable for testing multi-vehicle support in _QGroundControl_ (or the [MAVSDK](https://mavsdk.mavlink.io/), etc.). -[Multi-Vehicle Simulation with Gazebo](../simulation/multi-vehicle-simulation.md) should be used for swarm simulations with many vehicles, or for testing features like computer vision that are only supported by Gazebo. -::: - -## Як запустити кілька екземплярів - -Для запуску кількох екземплярів (на окремих портах): - -1. Збірка PX4 - - ```sh - make px4_sitl_default - ``` - -2. Run **sitl_multiple_run.sh**, specifying the number of instances to start (e.g. 2): - - ```sh - ./Tools/sitl_multiple_run.sh 2 - ``` - -3. Запустіть перший екземпляр в тому ж терміналі (це буде працювати на передньому плані): - - ```sh - ./Tools/simulation/jmavsim/jmavsim_run.sh -l - ``` - -4. Open a new terminal for each subsequent instance, specifying the _simulation_ TCP port for the instance: - - ```sh - ./Tools/simulation/jmavsim/jmavsim_run.sh -p 4560 -l - ``` - - The port should be set to `4560+i` where `i` iterates for each instance (from `0` to `N-1`) - -_QGroundControl_ should automatically connect to all the new vehicle instances (all GCS traffic is sent to PX4's remote UDP port: `14550` from all instances). -The vehicle that is currently being controlled is displayed in the application to bar; you can select this vehicle text to display a selection list of all of the (simulated) connected vehicle instances (`Vehicle 1`, `Vehicle 2`, etc.) and choose a new vehicle to control. - -Developer APIs such as _MAVSDK_ or _MAVROS_ can connect to individual instances by listening on sequentially allocated PX4 remote UDP ports from `14540` (first instance) to `14549`. -Additional instances _all_ connect to port `14549`. - -> **Tip** The **sitl_multiple_run.sh** script starts a separate process for each vehicle. -> To restart the simulations after killing one of them, you must call **sitl_multiple_run.sh** again, and also restart each of the individual instances in their own terminals. - -## Додаткові ресурси - -- See [Simulation](../simulation/index.md) for more information about the port configuration. + diff --git a/docs/uk/sim_sih/hardware.md b/docs/uk/sim_sih/hardware.md index aba607b1e39..c7e49a35225 100644 --- a/docs/uk/sim_sih/hardware.md +++ b/docs/uk/sim_sih/hardware.md @@ -94,7 +94,6 @@ You can add SIH to any board -- see [Check if SIH is in Firmware](#check-if-sih- - A flight controller with SIH module included in firmware (see [Firmware Builds with SIH](#firmware-builds-with-sih)). - USB connection for QGroundControl. -- Optional: jMAVSim for 3D visualization via serial link (see [Visualization](#hardware-visualization)). ## Check if SIH is in Firmware @@ -115,16 +114,24 @@ If you need a visual aid to see what the simulated vehicle is doing on hardware: Connect the flight controller via USB. QGC shows the vehicle on the map view with attitude, position, and telemetry, the same as a real flight. -### jMAVSim (3D Display-Only) +### Hawkeye (3D Display-Only) -jMAVSim can render a 3D view of the vehicle over a serial connection. No physics are simulated in jMAVSim -- it is display-only. +[Hawkeye](../sim_hawkeye/index.md) can render a 3D view of the vehicle from the [HIL_STATE_QUATERNION](https://mavlink.io/en/messages/common.html#HIL_STATE_QUATERNION) messages SIH sends. +No physics are simulated in Hawkeye: it is display-only. + +Hawkeye listens on UDP, so bridge the flight controller's serial link to UDP port 19410 (for example with [MAVProxy](https://ardupilot.org/mavproxy/)), then start Hawkeye: ```sh -./Tools/simulation/jmavsim/jmavsim_run.sh -q -d /dev/ttyACM0 -b 2000000 -o +# Terminal 1 +mavproxy.py --master /dev/ttyACM0 --out udp:localhost:19410 --out udp:localhost:14550 + +# Terminal 2 +hawkeye ``` Where `/dev/ttyACM0` is the serial device for the flight controller. On macOS, this is typically `/dev/tty.usbmodem*`. +The second `--out` keeps QGroundControl connected on its default port. ## Controlling Actuators diff --git a/docs/uk/simulation/community_supported_simulators.md b/docs/uk/simulation/community_supported_simulators.md index 608a429c5e6..26f4417c80f 100644 --- a/docs/uk/simulation/community_supported_simulators.md +++ b/docs/uk/simulation/community_supported_simulators.md @@ -16,7 +16,6 @@ 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) |

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

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

| | [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

| diff --git a/docs/uk/simulation/hardware.md b/docs/uk/simulation/hardware.md index 7006b0164a4..e81e2335dd8 100644 --- a/docs/uk/simulation/hardware.md +++ b/docs/uk/simulation/hardware.md @@ -9,14 +9,14 @@ It can surface issues with running PX4 that might hidden when running on a deskt Two simulation approaches are available, controlled by the [SYS_HITL](../advanced_config/parameter_reference.md#SYS_HITL) parameter: -- **[HITL Simulation](../simulation/hitl.md) (`SYS_HITL=1`):** An external simulator (Gazebo Classic or jMAVSim) runs physics on a companion computer and sends sensor data to the flight controller via MAVLink HIL messages. Requires a USB/UART connection and simulator setup. +- **[HITL Simulation](../simulation/hitl.md) (`SYS_HITL=1`):** An external simulator (Gazebo Classic) runs physics on a companion computer and sends sensor data to the flight controller via MAVLink HIL messages. Requires a USB/UART connection and simulator setup. - **[SIH on Hardware](../sim_sih/hardware.md) (`SYS_HITL=2`):** A C++ physics model runs directly on the flight controller itself. No external simulator, no companion computer, no MAVLink sensor data. Just set the parameter and reboot. ## HITL vs SIH {#comparision} | | HITL (`SYS_HITL=1`) | SIH (`SYS_HITL=2`) | | ----------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | -| Physics model | External simulator (Gazebo Classic, jMAVSim) | Internal C++ module | +| Physics model | External simulator (Gazebo Classic) | Internal C++ module | | Communication | MAVLink HIL messages | uORB (internal) | | External process | Вимоги | Not required | | Setup complexity | Higher | Lower | diff --git a/docs/uk/simulation/hitl.md b/docs/uk/simulation/hitl.md index 9fd7180d6fd..a9161d24f8b 100644 --- a/docs/uk/simulation/hitl.md +++ b/docs/uk/simulation/hitl.md @@ -10,7 +10,8 @@ HITL is [community supported and maintained](../simulation/community_supported_s Апаратне забезпечення в контурі (HITL або HIL) режим симуляції в якому звичайна прошивка PX4 виконується на реальному пристрої польотного контролера. Цей підхід має перевагу у вигляді можливості тестування більшості коду для польоту на реальному апаратному забезпеченні. -PX4 supports HITL for multicopters (using [jMAVSim](../sim_jmavsim/index.md) or [Gazebo Classic](../sim_gazebo_classic/index.md)) and VTOL (using Gazebo Classic). +PX4 supports HITL for multicopters and VTOL using [Gazebo Classic](../sim_gazebo_classic/index.md). +To simulate on flight controller hardware without an external simulator, use [SIH on hardware](../sim_sih/hardware.md). For a comparison of HITL and SIH on hardware, see [Hardware Simulation](../simulation/hardware.md). @@ -18,31 +19,31 @@ For a comparison of HITL and SIH on hardware, see [Hardware Simulation](../simul The set of compatible airframes vs simulators is: -| Планер | `SYS_AUTOSTART` | Gazebo Classic | jMAVSim | -| ---------------------------------------------------------------------------------------------------------------- | --------------- | -------------- | ------- | -| [HIL Quadcopter X](../airframes/airframe_reference.md#copter_simulation_hil_quadcopter_x) | 1001 | Y | Y | -| [HIL Standard VTOL QuadPlane](../airframes/airframe_reference.md#vtol_standard_vtol_hil_standard_vtol_quadplane) | 1002 | Y | | +| Планер | `SYS_AUTOSTART` | Gazebo Classic | +| ---------------------------------------------------------------------------------------------------------------- | --------------- | -------------- | +| [HIL Quadcopter X](../airframes/airframe_reference.md#copter_simulation_hil_quadcopter_x) | 1001 | Y | +| [HIL Standard VTOL QuadPlane](../airframes/airframe_reference.md#vtol_standard_vtol_hil_standard_vtol_quadplane) | 1002 | Y | ## HITL Simulation Environment {#simulation_environment} У симуляції з апаратним забезпеченням у контурі (HITL) звичайна прошивка PX4 виконується на реальному обладнані. -JMAVSim або Gazebo Classic (які працюють на комп'ютері розробки) підключені до пристрою польотного контролера через USB/UART. +Gazebo Classic (running on a development computer) is connected to the flight controller hardware via USB/UART. The simulator acts as gateway to share MAVLink data between PX4 and _QGroundControl_. :::info The simulator can also be connected via UDP if the flight controller has networking support and uses a stable, low-latency connection (e.g. a wired Ethernet connection - WiFi is usually not sufficiently reliable). -For example, this configuration has been tested with PX4 running on a Raspberry Pi connected via Ethernet to the computer (a startup configuration that includes the command for running jMAVSim can be found in [px4_hil.config](https://github.com/PX4/PX4-Autopilot/blob/main/posix-configs/rpi/px4_hil.config)). +For example, this configuration has been tested with PX4 running on a Raspberry Pi connected via Ethernet to the computer (the startup configuration can be found in [px4_hil.config](https://github.com/PX4/PX4-Autopilot/blob/main/posix-configs/rpi/px4_hil.config)). ::: Діаграма нижче показує середовище симуляції: - A HITL configuration is selected (via _QGroundControl_) that doesn't start any real sensors. -- _jMAVSim_ or _Gazebo Classic_ are connected to the flight controller via USB. +- _Gazebo Classic_ is connected to the flight controller via USB. - The simulator is connected to _QGroundControl_ via UDP and bridges its MAVLink messages to PX4. -- _Gazebo Classic_ and _jMAVSim_ can also connect to an offboard API and bridge MAVLink messages to PX4. +- _Gazebo Classic_ can also connect to an offboard API and bridge MAVLink messages to PX4. - (Optional) A serial connection can be used to connect Joystick/Gamepad hardware via _QGroundControl_. -![HITL Setup - jMAVSim and Gazebo Classic](../../assets/simulation/px4_hitl_overview_jmavsim_gazebo.svg) +![HITL Setup - Gazebo Classic](../../assets/simulation/px4_hitl_overview_jmavsim_gazebo.svg) ## HITL у порівнянні з SITL @@ -165,30 +166,6 @@ Make sure _QGroundControl_ is not running! 5. Start _QGroundControl_. Воно повинно автоматично підключитися до PX4 та Gazebo Classic. -#### jMAVSim (тільки квадрокоптер) - -:::info -Make sure _QGroundControl_ is not running! -::: - -1. Під'єднайте політний контролер до комп'ютера та дочекайтесь коли він завантажиться. - -2. Запустіть jMAVSim в режимі HITL: - - ```sh - ./Tools/simulation/jmavsim/jmavsim_run.sh -q -s -d /dev/ttyACM0 -b 921600 -r 250 - ``` - - ::: info - Replace the serial port name `/dev/ttyACM0` as appropriate. - On macOS this port would be `/dev/tty.usbmodem1`. - На Windows (включно з Cygwin) це буде COM1 або інший порт - перевірте з'єднання в менеджері пристроїв Windows. - -::: - -3. Start _QGroundControl_. - Воно повинно автоматично підключитися до PX4 та jMAVSim. - ## Політ за автономним завданням у HITL You should be able to use _QGroundControl_ to [run missions](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/fly_view/fly_view.html#missions) and otherwise control the vehicle. diff --git a/docs/uk/simulation/index.md b/docs/uk/simulation/index.md index 97124ef2289..3c4a8701447 100644 --- a/docs/uk/simulation/index.md +++ b/docs/uk/simulation/index.md @@ -41,7 +41,7 @@ To run PX4 SITL without setting up a build environment, [pre-built packages and | Характеристика | Gazebo | SIH | | ------------------------- | ------------------------------------------------- | -------------------------------------------------------------------------------------- | | **Default Mode** | GUI with 3D rendering | Headless (fastest iteration) | -| **3D Visualization** | Built-in (photorealistic) | Optional: QGC map or jMAVSim display-only | +| **3D Visualization** | Built-in (photorealistic) | Optional: QGC map or [Hawkeye](../sim_hawkeye/index.md) | | **Physics Engine** | External (gz-physics) | Internal (C++ module, uORB) | | **External Dependencies** | Gazebo packages, rendering libs | None | | **Vehicle Types** | Quad, VTOL, Plane, Rovers | Quad, Hex, Plane, Tailsitter, Std VTOL, Rover | @@ -67,7 +67,7 @@ For a detailed analysis of PX4 simulation user needs, priorities, and pain point - **Hardware integration testing without propellers:** Use [SIH on flight controller hardware](../sim_sih/index.md#sih-on-flight-controller-hardware) (`SYS_HITL=2`). :::info -SIH is headless by default. For optional 3D visualization, you can use [jMAVSim in display-only mode](../sim_sih/index.md#visualization-optional) or monitor the vehicle in QGroundControl's map view. +SIH is headless by default. For optional 3D visualization, you can use the [Hawkeye](../sim_hawkeye/index.md) visualizer or monitor the vehicle in QGroundControl's map view. ::: ## Симулятор MAVLink API @@ -179,7 +179,7 @@ If you use the normal build system SITL `make` configuration targets (see next s make px4_sitl simulator[_vehicle-model] ``` -where `simulator` is `gz` (for Gazebo), `gazebo-classic`, `jmavsim` or some other simulator, and vehicle-model is a particular vehicle type supported by that simulator ([Gazebo](../sim_gazebo_gz/index.md) and [jMAVSim](../sim_jmavsim/index.md) only support multicopters at time of writing, while [Gazebo Classic](../sim_gazebo_classic/index.md) supports many different types). +where `simulator` is `gz` (for Gazebo), `gazebo-classic` or some other simulator, and vehicle-model is a particular vehicle type supported by that simulator ([Gazebo](../sim_gazebo_gz/index.md) only supports multicopters at time of writing, while [Gazebo Classic](../sim_gazebo_classic/index.md) supports many different types). Нижче наведено кілька прикладів, і їх набагато більше на окремих сторінках для кожного з симуляторів: @@ -193,9 +193,6 @@ make px4_sitl gazebo-classic_plane # Start Gazebo Classic with iris and optical flow make px4_sitl gazebo-classic_iris_opt_flow -# Start JMavSim with iris (default vehicle model) -make px4_sitl jmavsim - # Start PX4 with no simulator (i.e. to use your own "custom" simulator) make px4_sitl none_iris @@ -218,7 +215,7 @@ For more information see: [Building the Code > PX4 Make Build Targets](../dev_se ### Run Simulation Faster than Realtime {#simulation_speed} -SITL can be run faster or slower than real-time when using Gazebo, Gazebo Classic, jMAVSim, or SIH. +SITL can be run faster or slower than real-time when using Gazebo, Gazebo Classic, or SIH. The speed factor is set using the environment variable `PX4_SIM_SPEED_FACTOR`. @@ -231,7 +228,6 @@ This is what makes it possible to run the simulation at different speeds, and al - Gazebo: [Change Simulation Speed](../sim_gazebo_gz/index.md#change-simulation-speed) - Gazebo Classic: [Change Simulation Speed](../sim_gazebo_classic/index.md#change-simulation-speed) and [Lockstep](../sim_gazebo_classic/index.md#lockstep) -- jMAVSim: [Change Simulation Speed](../sim_jmavsim/index.md#change-simulation-speed) and [Lockstep](../sim_jmavsim/index.md#lockstep) - SIH: Supports `PX4_SIM_SPEED_FACTOR` for faster-than-realtime simulation. ### Сценарії запуску diff --git a/docs/uk/simulation/multi-vehicle-simulation.md b/docs/uk/simulation/multi-vehicle-simulation.md index 300a88ef77e..8f0af95d8a9 100644 --- a/docs/uk/simulation/multi-vehicle-simulation.md +++ b/docs/uk/simulation/multi-vehicle-simulation.md @@ -5,7 +5,6 @@ PX4 підтримує симуляцію кількох рухомих засо - [Multi-Vehicle Sim with Gazebo](../sim_gazebo_gz/multi_vehicle_simulation.md) (both with and without ROS) - [Multi-Vehicle Sim with Gazebo Classic](../sim_gazebo_classic/multi_vehicle_simulation.md) (both with and without ROS) - [Multi-Vehicle Sim with FlightGear](../sim_flightgear/multi_vehicle.md) -- [Multi-Vehicle Sim with JMAVSim](../sim_jmavsim/multi_vehicle.md) - [Multi-Vehicle Sim with SIH](../sim_sih/index.md#multi-vehicle-simulation) Вибір симулятора залежить від рухомого засобу що моделюється, наскільки "якісна" потрібна симуляція (і для яких функцій), і скільки засобів потрібно симулювати одночасно. @@ -19,8 +18,6 @@ PX4 підтримує симуляцію кількох рухомих засо Note, this is the successor of [Gazebo Classic](../sim_gazebo_classic/index.md) (below). - [Gazebo Classic](../sim_gazebo_classic/index.md) is less accurate and less heavy-weight and supports many features and vehicles that aren't available for FlightGear. Він може симулювати набагато більше засобів за раз, ніж FlightGear, та дозволяє симулювати різні їх типи водночас. -- [JMAVSim](../sim_jmavsim/index.md) is a very light-weight simulator that supports only quadcopters. - Рекомендується у випадку, якщо вам необхідно підтримувати багато квадрокоптерів та симуляція може бути приблизна. - [SIH](../sim_sih/index.md) is the lightest-weight option with zero external dependencies. Since SIH is headless and runs physics internally, it can launch many instances with minimal resource usage. It supports all 6 vehicle types (quad, hex, plane, tailsitter, standard VTOL, rover). diff --git a/docs/uk/test_and_ci/bench_testing.md b/docs/uk/test_and_ci/bench_testing.md index c37a806c2a3..e7037cb12f5 100644 --- a/docs/uk/test_and_ci/bench_testing.md +++ b/docs/uk/test_and_ci/bench_testing.md @@ -79,7 +79,7 @@ A per-test watchdog turns a hung board into a named failure instead of a stuck t ## Simulated Flight on the FMU (SIH) -`sih/flight_mission.py` performs a complete hardware-in-the-loop flight without any host-side simulator: it switches the board to a [SIH airframe](../sim_sih/index.md) (`SYS_HITL=2`, physics computed on the autopilot), uploads a mission, arms through the NuttX shell, and asserts takeoff, waypoint progression, RTL, landing, and auto-disarm against per-phase timeouts. +`sih/flight_mission.py` performs a complete hardware-in-the-loop flight without any host-side simulator: it switches the board to a [SIH airframe](../sim_sih/index.md) (`SYS_HITL=2`, physics computed on the autopilot), uploads a mission, arms through the NuttX shell, and asserts takeoff, waypoint progression, Return, landing, and auto-disarm against per-phase timeouts. It runs as the last test of the default bench suite and also works standalone. Because it arms the flight controller, the suite asks for explicit confirmation on a terminal (type `arm`), and non-interactive runs skip it unless `--allow-arming` is passed. It first probes the running firmware for the SIH module and records a skip, not a failure, when the build does not include it. diff --git a/docs/uk/test_and_ci/integration_testing_mavsdk.md b/docs/uk/test_and_ci/integration_testing_mavsdk.md index faf385780fc..01388edc8eb 100644 --- a/docs/uk/test_and_ci/integration_testing_mavsdk.md +++ b/docs/uk/test_and_ci/integration_testing_mavsdk.md @@ -90,7 +90,7 @@ Run a single test by specifying the `model` and test `case` as command line opti For example, to test a multicopter mission using the SIH simulator: ```sh -test/mavsdk_tests/mavsdk_test_runner.py test/mavsdk_tests/configs/sih-sitl.json --speed-factor 10 --model quadx --case 'Fly square Multicopter Missions including RTL' +test/mavsdk_tests/mavsdk_test_runner.py test/mavsdk_tests/configs/sih-sitl.json --speed-factor 10 --model quadx --case 'Fly square Multicopter Missions including Return' ``` The easiest way to find out the current set of models and their associated test cases is to run all PX4 tests [as shown above](#run-all-px4-tests) (note, you can then cancel the build if you wish to test just one). @@ -108,8 +108,8 @@ About to run 39 test cases for 3 selected models (1 iteration): - 'Continue on baro stuck during mission (baro height mode)' - 'Continue on baro stuck during mission (GPS height mode)' - 'Takeoff and Land' - - 'Fly square Multicopter Missions including RTL' - - 'Fly square Multicopter Missions with manual RTL' + - 'Fly square Multicopter Missions including Return' + - 'Fly square Multicopter Missions with manual Return' - 'Fly straight Multicopter Mission' - 'Offboard takeoff and land' - 'Offboard position control' @@ -124,8 +124,8 @@ About to run 39 test cases for 3 selected models (1 iteration): - 'Continue on baro stuck during mission (baro height mode)' - 'Continue on baro stuck during mission (GPS height mode)' - 'Takeoff and Land' - - 'Fly square Multicopter Missions including RTL' - - 'Fly square Multicopter Missions with manual RTL' + - 'Fly square Multicopter Missions including Return' + - 'Fly square Multicopter Missions with manual Return' - 'Fly forward in position control' - 'Fly forward in altitude control' - tailsitter: @@ -137,8 +137,8 @@ About to run 39 test cases for 3 selected models (1 iteration): - 'Continue on baro stuck during mission (baro height mode)' - 'Continue on baro stuck during mission (GPS height mode)' - 'Takeoff and Land' - - 'Fly square Multicopter Missions including RTL' - - 'Fly square Multicopter Missions with manual RTL' + - 'Fly square Multicopter Missions including Return' + - 'Fly square Multicopter Missions with manual Return' - 'Fly forward in position control' - 'Fly forward in altitude control' ``` diff --git a/docs/uk/test_cards/fw_02_full_autonomous.md b/docs/uk/test_cards/fw_02_full_autonomous.md index 4c36986fb83..d5174aab0c3 100644 --- a/docs/uk/test_cards/fw_02_full_autonomous.md +++ b/docs/uk/test_cards/fw_02_full_autonomous.md @@ -2,7 +2,7 @@ ## Objective -To test the auto modes such as Mission, Takeoff, Hold, and RTL for fixed wing vehicles. +To test the auto modes such as Mission, Takeoff, Hold, and Return for fixed wing vehicles. ## Preflight @@ -10,7 +10,7 @@ Plan a mission on the ground. Ensure the mission has: - Takeoff as first waypoint - Changes in altitude throughout the mission -- Last waypoint is an RTL +- Last waypoint is a Return item - Duration of 1 to 2 minutes ## Flight Tests @@ -29,7 +29,7 @@ Plan a mission on the ground. Ensure the mission has:     ❏ Verify changes in altitude throughout the mission -    ❏ Verify Mission Ends in RTL +    ❏ Verify Mission Ends in Return     ❏ Duration of 1 to 2 minutes @@ -43,7 +43,7 @@ Plan a mission on the ground. Ensure the mission has:     ❏ Orbit radius and direction should match parameters -❏ RTL +❏ Return     ❏ Arm and takeoff in any manual mode @@ -51,7 +51,7 @@ Plan a mission on the ground. Ensure the mission has:     ❏ Engage Return mode -    ❏ Vehicle should climb to RTL altitude if below it +    ❏ Vehicle should climb to return altitude if below it     ❏ Vehicle should return to home and hold or land @@ -60,5 +60,5 @@ Plan a mission on the ground. Ensure the mission has: - Місія має бути завантажена при першій спробі - Vehicle should automatically takeoff upon engaging Auto - Waypoint tracking should be smooth with appropriate turn radius -- Vehicle should adjust height to RTL altitude before returning home +- Vehicle should adjust height to return altitude before returning home - Landing approach should be stable (if auto-land is configured) diff --git a/docs/uk/test_cards/mc_02_full_autonomous.md b/docs/uk/test_cards/mc_02_full_autonomous.md index 3685ab02d78..147d594195b 100644 --- a/docs/uk/test_cards/mc_02_full_autonomous.md +++ b/docs/uk/test_cards/mc_02_full_autonomous.md @@ -2,7 +2,7 @@ ## Objective -To test the auto modes such as Mission, RTL, etc... +To test the auto modes such as Mission, Return, etc... ## Preflight @@ -10,7 +10,7 @@ Plan a mission on the ground. Ensure the mission has - Takeoff as first waypoint - Changes in Altitude throughout the mission -- Last waypoint is an RTL +- Last waypoint is a Return item - Duration of 5 to 6 minutes ## Flight Tests @@ -23,7 +23,7 @@ Plan a mission on the ground. Ensure the mission has     ❏ First waypoint set to Takeoff -    ❏ Enable Mission End RTL +    ❏ Enable Mission End Return     ❏ Duration of 5 to 6 minutes @@ -35,26 +35,26 @@ Plan a mission on the ground. Ensure the mission has     ❏ Engage Auto (Mission Mode) to trigger take-off -    ❏ Observe tracking, cornering and proper RTL performance +    ❏ Observe tracking, cornering and proper Return performance     ❏ Upon touching ground, copter should disarm automatically within 2 seconds (disarm time set by parameter: [COM_DISARM_LAND](../advanced_config/parameter_reference.md#COM_DISARM_LAND)) -❏ RTL +❏ Return     ❏ Arm and takeoff in position mode     ❏ Fly out ~10m from start point -    ❏ Engage RTL Mode +    ❏ Engage Return mode -    ❏ Observe tracking, cornering and proper RTL performance +    ❏ Observe tracking, cornering and proper Return performance ## Очікувані результати - Зліт повинен бути плавним, коли газ піднято - Місія має бути завантажена при першій спробі - Дрон повинен автоматично злетіти після ввімкнення автоматичного режиму -- Vehicle should adjust height to RTL altitude before returning home +- Vehicle should adjust height to return altitude before returning home - Після посадки, коптер не повинен підскакувати на землі