mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-30 04:30:28 +08:00
docs(docs): Link fixes, _sidebar, uorb docs generator tweak (#27482)
This commit is contained in:
1 parent
19b2d01fd1
commit
dfc08eed28
15 files changed
+249
-557
No files matched your search
@@ -1022,9 +1022,9 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
|
||||
fragment_lines.append(' - [Versioned](msg_docs/versioned_messages.md)')
|
||||
for name in versioned_names:
|
||||
fragment_lines.append(f' - [{name}](msg_docs/{name}.md)')
|
||||
fragment_lines.append(' - [Historical](msg_docs/versioned_historical_messages.md)')
|
||||
fragment_lines.append(' - [Historic (old) Versions](msg_docs/versioned_old_messages.md)')
|
||||
for name in historic_names:
|
||||
fragment_lines.append(f' - [{name}]({name}.md)')
|
||||
fragment_lines.append(f' - [{name}](msg_docs/{name}.md)')
|
||||
fragment_lines.append(' - [Unversioned Messages](msg_docs/unversioned_messages.md)')
|
||||
for name in unversioned_names:
|
||||
fragment_lines.append(f' - [{name}](msg_docs/{name}.md)')
|
||||
|
||||
+32
-21
@@ -517,8 +517,10 @@
|
||||
- [AirspeedValidated](msg_docs/AirspeedValidated.md)
|
||||
- [ArmingCheckReply](msg_docs/ArmingCheckReply.md)
|
||||
- [ArmingCheckRequest](msg_docs/ArmingCheckRequest.md)
|
||||
- [AuxGlobalPosition](msg_docs/AuxGlobalPosition.md)
|
||||
- [BatteryStatus](msg_docs/BatteryStatus.md)
|
||||
- [ConfigOverrides](msg_docs/ConfigOverrides.md)
|
||||
- [Event](msg_docs/Event.md)
|
||||
- [FixedWingLateralSetpoint](msg_docs/FixedWingLateralSetpoint.md)
|
||||
- [FixedWingLongitudinalSetpoint](msg_docs/FixedWingLongitudinalSetpoint.md)
|
||||
- [GotoSetpoint](msg_docs/GotoSetpoint.md)
|
||||
@@ -546,6 +548,26 @@
|
||||
- [VehicleRatesSetpoint](msg_docs/VehicleRatesSetpoint.md)
|
||||
- [VehicleStatus](msg_docs/VehicleStatus.md)
|
||||
- [VtolVehicleStatus](msg_docs/VtolVehicleStatus.md)
|
||||
- [Wind](msg_docs/Wind.md)
|
||||
- [Historic (old) Versions](msg_docs/versioned_old_messages.md)
|
||||
- [AirspeedValidatedV0](msg_docs/AirspeedValidatedV0.md)
|
||||
- [ArmingCheckReplyV0](msg_docs/ArmingCheckReplyV0.md)
|
||||
- [ArmingCheckRequestV0](msg_docs/ArmingCheckRequestV0.md)
|
||||
- [BatteryStatusV0](msg_docs/BatteryStatusV0.md)
|
||||
- [ConfigOverridesV0](msg_docs/ConfigOverridesV0.md)
|
||||
- [EventV0](msg_docs/EventV0.md)
|
||||
- [HomePositionV0](msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](msg_docs/VehicleStatusV3.md)
|
||||
- [Unversioned Messages](msg_docs/unversioned_messages.md)
|
||||
- [ActionRequest](msg_docs/ActionRequest.md)
|
||||
- [ActuatorArmed](msg_docs/ActuatorArmed.md)
|
||||
@@ -557,7 +579,6 @@
|
||||
- [Airspeed](msg_docs/Airspeed.md)
|
||||
- [AirspeedWind](msg_docs/AirspeedWind.md)
|
||||
- [AutotuneAttitudeControlStatus](msg_docs/AutotuneAttitudeControlStatus.md)
|
||||
- [AuxGlobalPosition](msg_docs/AuxGlobalPosition.md)
|
||||
- [BatteryInfo](msg_docs/BatteryInfo.md)
|
||||
- [ButtonEvent](msg_docs/ButtonEvent.md)
|
||||
- [CameraCapture](msg_docs/CameraCapture.md)
|
||||
@@ -598,9 +619,10 @@
|
||||
- [EstimatorStates](msg_docs/EstimatorStates.md)
|
||||
- [EstimatorStatus](msg_docs/EstimatorStatus.md)
|
||||
- [EstimatorStatusFlags](msg_docs/EstimatorStatusFlags.md)
|
||||
- [Event](msg_docs/Event.md)
|
||||
- [FailsafeFlags](msg_docs/FailsafeFlags.md)
|
||||
- [FailureDetectorStatus](msg_docs/FailureDetectorStatus.md)
|
||||
- [FiducialMarkerPosReport](msg_docs/FiducialMarkerPosReport.md)
|
||||
- [FiducialMarkerYawReport](msg_docs/FiducialMarkerYawReport.md)
|
||||
- [FigureEightStatus](msg_docs/FigureEightStatus.md)
|
||||
- [FixedWingLateralGuidanceStatus](msg_docs/FixedWingLateralGuidanceStatus.md)
|
||||
- [FixedWingLateralStatus](msg_docs/FixedWingLateralStatus.md)
|
||||
@@ -683,6 +705,7 @@
|
||||
- [PowerButtonState](msg_docs/PowerButtonState.md)
|
||||
- [PowerMonitor](msg_docs/PowerMonitor.md)
|
||||
- [PpsCapture](msg_docs/PpsCapture.md)
|
||||
- [PrecLandStatus](msg_docs/PrecLandStatus.md)
|
||||
- [PurePursuitStatus](msg_docs/PurePursuitStatus.md)
|
||||
- [PwmInput](msg_docs/PwmInput.md)
|
||||
- [Px4ioStatus](msg_docs/Px4ioStatus.md)
|
||||
@@ -729,6 +752,7 @@
|
||||
- [SensorsStatusImu](msg_docs/SensorsStatusImu.md)
|
||||
- [SystemPower](msg_docs/SystemPower.md)
|
||||
- [TakeoffStatus](msg_docs/TakeoffStatus.md)
|
||||
- [TargetGnss](msg_docs/TargetGnss.md)
|
||||
- [TaskStackInfo](msg_docs/TaskStackInfo.md)
|
||||
- [TecsStatus](msg_docs/TecsStatus.md)
|
||||
- [TelemetryStatus](msg_docs/TelemetryStatus.md)
|
||||
@@ -755,28 +779,15 @@
|
||||
- [VehicleThrustSetpoint](msg_docs/VehicleThrustSetpoint.md)
|
||||
- [VehicleTorqueSetpoint](msg_docs/VehicleTorqueSetpoint.md)
|
||||
- [VelocityLimits](msg_docs/VelocityLimits.md)
|
||||
- [VteAidSource1d](msg_docs/VteAidSource1d.md)
|
||||
- [VteAidSource3d](msg_docs/VteAidSource3d.md)
|
||||
- [VteBiasInitStatus](msg_docs/VteBiasInitStatus.md)
|
||||
- [VteInput](msg_docs/VteInput.md)
|
||||
- [VteOrientation](msg_docs/VteOrientation.md)
|
||||
- [VtePosition](msg_docs/VtePosition.md)
|
||||
- [Vtx](msg_docs/Vtx.md)
|
||||
- [WheelEncoders](msg_docs/WheelEncoders.md)
|
||||
- [Wind](msg_docs/Wind.md)
|
||||
- [YawEstimatorStatus](msg_docs/YawEstimatorStatus.md)
|
||||
- [AirspeedValidatedV0](msg_docs/AirspeedValidatedV0.md)
|
||||
- [ArmingCheckReplyV0](msg_docs/ArmingCheckReplyV0.md)
|
||||
- [ArmingCheckRequestV0](msg_docs/ArmingCheckRequestV0.md)
|
||||
- [BatteryStatusV0](msg_docs/BatteryStatusV0.md)
|
||||
- [ConfigOverridesV0](msg_docs/ConfigOverridesV0.md)
|
||||
- [EventV0](msg_docs/EventV0.md)
|
||||
- [HomePositionV0](msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](msg_docs/VehicleStatusV3.md)
|
||||
- [MAVLink Messaging](mavlink/index.md)
|
||||
- [Adding Messages](mavlink/adding_messages.md)
|
||||
- [Streaming Messages](mavlink/streaming_messages.md)
|
||||
|
||||
+61
-25
@@ -1,8 +1,7 @@
|
||||
<!-- GENERATED CONTENT: DO NOT EDIT -->
|
||||
|
||||
- [Introduction](/index.md)
|
||||
- [Basic Concepts](/getting_started/px4_basic_concepts.md)
|
||||
|
||||
- [Try PX4 (Simulation)](/simulation/px4_simulation_quickstart.md)
|
||||
- [Multicopters](/frames_multicopter/index.md)
|
||||
- [Features](/features_mc/index.md)
|
||||
- [Flight Modes](/flight_modes_mc/index.md)
|
||||
@@ -22,6 +21,8 @@
|
||||
- [Offboard Mode (MC)](/flight_modes_mc/offboard.md)
|
||||
- [Collision Prevention](/computer_vision/collision_prevention.md)
|
||||
- [Precision Landing](/advanced_features/precland.md)
|
||||
- [Vision Target Estimator](/advanced_features/vision_target_estimator.md)
|
||||
- [Vision Target Estimator Deep Dive](/advanced_features/vision_target_estimator_advanced.md)
|
||||
- [Terrain Following/Holding](/flying/terrain_following_holding.md)
|
||||
- [Throw Launch](/flight_modes_mc/throw_launch.md)
|
||||
- [Assembly](/assembly/assembly_mc.md)
|
||||
@@ -31,10 +32,10 @@
|
||||
- [PID Tuning (Manual/Basic)](/config_mc/pid_tuning_guide_multicopter_basic.md)
|
||||
- [PID Tuning Guide (Manual/Advanced)](/config_mc/pid_tuning_guide_multicopter.md)
|
||||
- [Setpoint Tuning (Trajectory Generator)](/config_mc/mc_trajectory_tuning.md)
|
||||
- [Jerk-limited Type Trajectory](/config_mc/mc_jerk_limited_type_trajectory.md)
|
||||
- [Racer Setup](/config_mc/racer_setup.md)
|
||||
- [Land Detector Configuration](/advanced_config/land_detector.md)
|
||||
- [Static Pressure Buildup](/advanced_config/static_pressure_buildup.md)
|
||||
- [Jerk-limited Type Trajectory](/config_mc/mc_jerk_limited_type_trajectory.md)
|
||||
- [Flying (Basics)](/flying/basic_flying_mc.md)
|
||||
- [Complete Vehicles](/complete_vehicles_mc/index.md)
|
||||
- [ModalAI Starling](/complete_vehicles_mc/modalai_starling.md)
|
||||
@@ -78,6 +79,7 @@
|
||||
- [Takeoff Mode (FW)](/flight_modes_fw/takeoff.md)
|
||||
- [Land Mode (FW)](/flight_modes_fw/land.md)
|
||||
- [Hold Mode (FW)](/flight_modes_fw/hold.md)
|
||||
- [Guided Course Mode (FW)](/flight_modes_fw/guided_course.md)
|
||||
- [Mission Mode (FW)](/flight_modes_fw/mission.md)
|
||||
- [Return Mode (FW)](/flight_modes_fw/return.md)
|
||||
- [Offboard Mode (FW)](/flight_modes_fw/offboard.md)
|
||||
@@ -167,12 +169,14 @@
|
||||
- [ARK Electronics ARKV6S](/flight_controller/ark_v6s.md)
|
||||
- [ARK FPV Flight Controller](/flight_controller/ark_fpv.md)
|
||||
- [ARK Pi6X Flow Flight Controller](/flight_controller/ark_pi6x.md)
|
||||
- [CORVON 743v1](/flight_controller/corvon_743v1.md)
|
||||
- [CUAV Nora](/flight_controller/cuav_nora.md)
|
||||
- [CUAV V5+ (FMUv5)](/flight_controller/cuav_v5_plus.md)
|
||||
- [Wiring Quickstart](/assembly/quick_start_cuav_v5_plus.md)
|
||||
- [CUAV V5 nano (FMUv5)](/flight_controller/cuav_v5_nano.md)
|
||||
- [CUAV V5 nano Wiring Quickstart](/assembly/quick_start_cuav_v5_nano.md)
|
||||
- [CUAV X25 EVO](/flight_controller/cuav_x25-evo.md)
|
||||
- [CUAV X25 EVO Wiring Quick Start](/assembly/quick_start_cuav_x25_evo.md)
|
||||
- [CUAV X25 SUPER](/flight_controller/cuav_x25-super.md)
|
||||
- [CubePilot Cube Orange+ (CubePilot)](/flight_controller/cubepilot_cube_orangeplus.md)
|
||||
- [CubePilot Cube Orange (CubePilot)](/flight_controller/cubepilot_cube_orange.md)
|
||||
@@ -308,6 +312,7 @@
|
||||
- [DroneCAN ESCs](/dronecan/escs.md)
|
||||
- [PX4 Sapog ESC Firmware](/dronecan/sapog.md)
|
||||
- [ARK 4IN1 ESC](/esc/ark_4in1_esc.md)
|
||||
- [Hiwonder 4Ch Encoder Motor Module](/peripherals/hiwonder_emm.md)
|
||||
- [Holybro Kotleta](/dronecan/holybro_kotleta.md)
|
||||
- [Vertiq Motor/ESC Modules](/peripherals/vertiq.md)
|
||||
- [VESC Project ESCs](/peripherals/vesc.md)
|
||||
@@ -324,6 +329,7 @@
|
||||
- [RFD900 (SiK) Telemetry Radio](/telemetry/rfd900_telemetry.md)
|
||||
- [ThunderFly TFSIK01 Telemetry Radio](/telemetry/tfsik_telemetry.md)
|
||||
- [HolyBro (SIK) Telemetry Radio](/telemetry/holybro_sik_radio.md)
|
||||
- [HolyBro SiK Long Range Telemetry Radio](/telemetry/holybro_sik_longrange.md)
|
||||
- [Telemetry Wifi](/telemetry/telemetry_wifi.md)
|
||||
- [ESP8266 WiFi Module](/telemetry/esp8266_wifi_module.md)
|
||||
- [ESP32 WiFi Module](/telemetry/esp32_wifi_module.md)
|
||||
@@ -403,6 +409,7 @@
|
||||
- [Serial Port Configuration](/peripherals/serial_configuration.md)
|
||||
- [PX4 Ethernet Setup](/advanced_config/ethernet_setup.md)
|
||||
- [Standard Configuration](/config/index.md)
|
||||
- [OEM Configuration](/advanced_config/oem.md)
|
||||
- [Advanced Configuration](/advanced_config/index.md)
|
||||
- [Using PX4's Navigation Filter (EKF2)](/advanced_config/tuning_the_ecl_ekf.md)
|
||||
- [GNSS-Denied & Degraded Flight](/advanced_config/gnss_degraded_or_denied_flight.md)
|
||||
@@ -428,7 +435,10 @@
|
||||
- [Position Tuning](/config_rover/position_tuning.md)
|
||||
- [Apps & API](/flight_modes_rover/api.md)
|
||||
- [Complete Vehicles](/complete_vehicles_rover/index.md)
|
||||
- [Aion Robotics R1](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Hiwonder Ackermann Chassis](/complete_vehicles_rover/hiwonder_ackermann.md)
|
||||
- [Hiwonder Tracked Chassis](/complete_vehicles_rover/hiwonder_tracked.md)
|
||||
- [Hiwonder Mecanum Chassis](/complete_vehicles_rover/hiwonder_mecanum.md)
|
||||
- [Aion Robotics R1 (Discontinued)](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Submarines (experimental)](/frames_sub/index.md)
|
||||
- [BlueROV2](/frames_sub/bluerov2.md)
|
||||
- [Airframes Reference](/airframes/airframe_reference.md)
|
||||
@@ -469,17 +479,21 @@
|
||||
- [Plugins](/sim_gazebo_gz/plugins.md)
|
||||
- [Gazebo Models Repository](/sim_gazebo_gz/gazebo_models.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_gz/multi_vehicle_simulation.md)
|
||||
- [SIH Simulation](/sim_sih/index.md)
|
||||
- [Hawkeye Visualizer](/sim_hawkeye/index.md)
|
||||
- [Gazebo Classic Simulation](/sim_gazebo_classic/index.md)
|
||||
- [Vehicles](/sim_gazebo_classic/vehicles.md)
|
||||
- [Worlds](/sim_gazebo_classic/worlds.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_classic/multi_vehicle_simulation.md)
|
||||
- [Simulate Failsafes](/simulation/failsafes.md)
|
||||
- [Pre-built Packages](/simulation/px4_sitl_prebuilt_packages.md)
|
||||
- [Hardware](/hardware/index.md)
|
||||
- [Flight Controller Reference Design](/hardware/reference_design.md)
|
||||
- [Manufacturer’s Board Support Guide](/hardware/board_support_guide.md)
|
||||
- [Flight Controller Porting Guide](/hardware/porting_guide.md)
|
||||
- [PX4 Board Configuration (kconfig)](/hardware/porting_guide_config.md)
|
||||
- [NuttX Board Porting Guide](/hardware/porting_guide_nuttx.md)
|
||||
- [Board Firmware Packaging (.deb)](/hardware/board_packaging.md)
|
||||
- [Serial Port Mapping](/hardware/serial_port_mapping.md)
|
||||
- [Airframes](/dev_airframes/index.md)
|
||||
- [Adding a New Airframe](/dev_airframes/adding_a_new_frame.md)
|
||||
@@ -504,8 +518,10 @@
|
||||
- [AirspeedValidated](/msg_docs/AirspeedValidated.md)
|
||||
- [ArmingCheckReply](/msg_docs/ArmingCheckReply.md)
|
||||
- [ArmingCheckRequest](/msg_docs/ArmingCheckRequest.md)
|
||||
- [AuxGlobalPosition](/msg_docs/AuxGlobalPosition.md)
|
||||
- [BatteryStatus](/msg_docs/BatteryStatus.md)
|
||||
- [ConfigOverrides](/msg_docs/ConfigOverrides.md)
|
||||
- [Event](/msg_docs/Event.md)
|
||||
- [FixedWingLateralSetpoint](/msg_docs/FixedWingLateralSetpoint.md)
|
||||
- [FixedWingLongitudinalSetpoint](/msg_docs/FixedWingLongitudinalSetpoint.md)
|
||||
- [GotoSetpoint](/msg_docs/GotoSetpoint.md)
|
||||
@@ -533,6 +549,26 @@
|
||||
- [VehicleRatesSetpoint](/msg_docs/VehicleRatesSetpoint.md)
|
||||
- [VehicleStatus](/msg_docs/VehicleStatus.md)
|
||||
- [VtolVehicleStatus](/msg_docs/VtolVehicleStatus.md)
|
||||
- [Wind](/msg_docs/Wind.md)
|
||||
- [Historic (old) Versions](/msg_docs/versioned_old_messages.md)
|
||||
- [AirspeedValidatedV0](/msg_docs/AirspeedValidatedV0.md)
|
||||
- [ArmingCheckReplyV0](/msg_docs/ArmingCheckReplyV0.md)
|
||||
- [ArmingCheckRequestV0](/msg_docs/ArmingCheckRequestV0.md)
|
||||
- [BatteryStatusV0](/msg_docs/BatteryStatusV0.md)
|
||||
- [ConfigOverridesV0](/msg_docs/ConfigOverridesV0.md)
|
||||
- [EventV0](/msg_docs/EventV0.md)
|
||||
- [HomePositionV0](/msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](/msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](/msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](/msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](/msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](/msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](/msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](/msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](/msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](/msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](/msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](/msg_docs/VehicleStatusV3.md)
|
||||
- [Unversioned Messages](/msg_docs/unversioned_messages.md)
|
||||
- [ActionRequest](/msg_docs/ActionRequest.md)
|
||||
- [ActuatorArmed](/msg_docs/ActuatorArmed.md)
|
||||
@@ -544,7 +580,6 @@
|
||||
- [Airspeed](/msg_docs/Airspeed.md)
|
||||
- [AirspeedWind](/msg_docs/AirspeedWind.md)
|
||||
- [AutotuneAttitudeControlStatus](/msg_docs/AutotuneAttitudeControlStatus.md)
|
||||
- [AuxGlobalPosition](/msg_docs/AuxGlobalPosition.md)
|
||||
- [BatteryInfo](/msg_docs/BatteryInfo.md)
|
||||
- [ButtonEvent](/msg_docs/ButtonEvent.md)
|
||||
- [CameraCapture](/msg_docs/CameraCapture.md)
|
||||
@@ -567,6 +602,8 @@
|
||||
- [DistanceSensorModeChangeRequest](/msg_docs/DistanceSensorModeChangeRequest.md)
|
||||
- [DronecanNodeStatus](/msg_docs/DronecanNodeStatus.md)
|
||||
- [Ekf2Timestamps](/msg_docs/Ekf2Timestamps.md)
|
||||
- [EscEepromRead](/msg_docs/EscEepromRead.md)
|
||||
- [EscEepromWrite](/msg_docs/EscEepromWrite.md)
|
||||
- [EscReport](/msg_docs/EscReport.md)
|
||||
- [EscStatus](/msg_docs/EscStatus.md)
|
||||
- [EstimatorAidSource1d](/msg_docs/EstimatorAidSource1d.md)
|
||||
@@ -575,6 +612,7 @@
|
||||
- [EstimatorBias](/msg_docs/EstimatorBias.md)
|
||||
- [EstimatorBias3d](/msg_docs/EstimatorBias3d.md)
|
||||
- [EstimatorEventFlags](/msg_docs/EstimatorEventFlags.md)
|
||||
- [EstimatorFusionControl](/msg_docs/EstimatorFusionControl.md)
|
||||
- [EstimatorGpsStatus](/msg_docs/EstimatorGpsStatus.md)
|
||||
- [EstimatorInnovations](/msg_docs/EstimatorInnovations.md)
|
||||
- [EstimatorSelectorStatus](/msg_docs/EstimatorSelectorStatus.md)
|
||||
@@ -582,9 +620,10 @@
|
||||
- [EstimatorStates](/msg_docs/EstimatorStates.md)
|
||||
- [EstimatorStatus](/msg_docs/EstimatorStatus.md)
|
||||
- [EstimatorStatusFlags](/msg_docs/EstimatorStatusFlags.md)
|
||||
- [Event](/msg_docs/Event.md)
|
||||
- [FailsafeFlags](/msg_docs/FailsafeFlags.md)
|
||||
- [FailureDetectorStatus](/msg_docs/FailureDetectorStatus.md)
|
||||
- [FiducialMarkerPosReport](/msg_docs/FiducialMarkerPosReport.md)
|
||||
- [FiducialMarkerYawReport](/msg_docs/FiducialMarkerYawReport.md)
|
||||
- [FigureEightStatus](/msg_docs/FigureEightStatus.md)
|
||||
- [FixedWingLateralGuidanceStatus](/msg_docs/FixedWingLateralGuidanceStatus.md)
|
||||
- [FixedWingLateralStatus](/msg_docs/FixedWingLateralStatus.md)
|
||||
@@ -667,12 +706,14 @@
|
||||
- [PowerButtonState](/msg_docs/PowerButtonState.md)
|
||||
- [PowerMonitor](/msg_docs/PowerMonitor.md)
|
||||
- [PpsCapture](/msg_docs/PpsCapture.md)
|
||||
- [PrecLandStatus](/msg_docs/PrecLandStatus.md)
|
||||
- [PurePursuitStatus](/msg_docs/PurePursuitStatus.md)
|
||||
- [PwmInput](/msg_docs/PwmInput.md)
|
||||
- [Px4ioStatus](/msg_docs/Px4ioStatus.md)
|
||||
- [QshellReq](/msg_docs/QshellReq.md)
|
||||
- [QshellRetval](/msg_docs/QshellRetval.md)
|
||||
- [RadioStatus](/msg_docs/RadioStatus.md)
|
||||
- [RangingBeacon](/msg_docs/RangingBeacon.md)
|
||||
- [RateCtrlStatus](/msg_docs/RateCtrlStatus.md)
|
||||
- [RcChannels](/msg_docs/RcChannels.md)
|
||||
- [RcParameterMap](/msg_docs/RcParameterMap.md)
|
||||
@@ -712,6 +753,7 @@
|
||||
- [SensorsStatusImu](/msg_docs/SensorsStatusImu.md)
|
||||
- [SystemPower](/msg_docs/SystemPower.md)
|
||||
- [TakeoffStatus](/msg_docs/TakeoffStatus.md)
|
||||
- [TargetGnss](/msg_docs/TargetGnss.md)
|
||||
- [TaskStackInfo](/msg_docs/TaskStackInfo.md)
|
||||
- [TecsStatus](/msg_docs/TecsStatus.md)
|
||||
- [TelemetryStatus](/msg_docs/TelemetryStatus.md)
|
||||
@@ -738,30 +780,23 @@
|
||||
- [VehicleThrustSetpoint](/msg_docs/VehicleThrustSetpoint.md)
|
||||
- [VehicleTorqueSetpoint](/msg_docs/VehicleTorqueSetpoint.md)
|
||||
- [VelocityLimits](/msg_docs/VelocityLimits.md)
|
||||
- [VteAidSource1d](/msg_docs/VteAidSource1d.md)
|
||||
- [VteAidSource3d](/msg_docs/VteAidSource3d.md)
|
||||
- [VteBiasInitStatus](/msg_docs/VteBiasInitStatus.md)
|
||||
- [VteInput](/msg_docs/VteInput.md)
|
||||
- [VteOrientation](/msg_docs/VteOrientation.md)
|
||||
- [VtePosition](/msg_docs/VtePosition.md)
|
||||
- [Vtx](/msg_docs/Vtx.md)
|
||||
- [WheelEncoders](/msg_docs/WheelEncoders.md)
|
||||
- [Wind](/msg_docs/Wind.md)
|
||||
- [YawEstimatorStatus](/msg_docs/YawEstimatorStatus.md)
|
||||
- [AirspeedValidatedV0](/msg_docs/AirspeedValidatedV0.md)
|
||||
- [ArmingCheckReplyV0](/msg_docs/ArmingCheckReplyV0.md)
|
||||
- [ArmingCheckRequestV0](/msg_docs/ArmingCheckRequestV0.md)
|
||||
- [BatteryStatusV0](/msg_docs/BatteryStatusV0.md)
|
||||
- [ConfigOverridesV0](/msg_docs/ConfigOverridesV0.md)
|
||||
- [EventV0](/msg_docs/EventV0.md)
|
||||
- [HomePositionV0](/msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](/msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](/msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [VehicleAttitudeSetpointV0](/msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](/msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](/msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](/msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](/msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](/msg_docs/VehicleStatusV1.md)
|
||||
- [MAVLink Messaging](/mavlink/index.md)
|
||||
- [Adding Messages](/mavlink/adding_messages.md)
|
||||
- [Streaming Messages](/mavlink/streaming_messages.md)
|
||||
- [MAVLink Profiles](/mavlink/mavlink_profiles.md)
|
||||
- [Receiving Messages](/mavlink/receiving_messages.md)
|
||||
- [Custom MAVLink Messages](/mavlink/custom_messages.md)
|
||||
- [Message Signing](/mavlink/message_signing.md)
|
||||
- [Security Hardening](/mavlink/security_hardening.md)
|
||||
- [Protocols/Microservices](/mavlink/protocols.md)
|
||||
- [Standard Modes Protocol](/mavlink/standard_modes.md)
|
||||
- [uXRCE-DDS (PX4-ROS 2/DDS Bridge)](/middleware/uxrce_dds.md)
|
||||
@@ -848,8 +883,9 @@
|
||||
- [Multi-Vehicle Sim with JMAVSim](/sim_jmavsim/multi_vehicle.md)
|
||||
- [JSBSim Simulation](/sim_jsbsim/index.md)
|
||||
- [AirSim Simulation](/sim_airsim/index.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [Simulation-In-Hardware](/sim_sih/index.md)
|
||||
- [Hardware Simulation](/simulation/hardware.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [SIH on Hardware](/sim_sih/hardware.md)
|
||||
- [Multi-vehicle simulation](/simulation/multi-vehicle-simulation.md)
|
||||
- [Platform Testing and CI](/test_and_ci/index.md)
|
||||
- [Test Flights](/test_and_ci/test_flights.md)
|
||||
@@ -873,7 +909,6 @@
|
||||
- [Integration Testing](/test_and_ci/integration_testing.md)
|
||||
- [MAVSDK Integration Testing](/test_and_ci/integration_testing_mavsdk.md)
|
||||
- [PX4 ROS2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md)
|
||||
- [ROS 1 Integration Testing](/test_and_ci/integration_testing_ros1_mavros.md)
|
||||
- [Docker Containers](/test_and_ci/docker.md)
|
||||
- [Maintenance](/test_and_ci/maintenance.md)
|
||||
- [Drone Apps & APIs](/robotics/index.md)
|
||||
@@ -907,6 +942,7 @@
|
||||
- [Translation](/contribute/translation.md)
|
||||
- [Terminology/Notation](/contribute/notation.md)
|
||||
- [Licenses](/contribute/licenses.md)
|
||||
- [SBOM](/contribute/sbom.md)
|
||||
- [Releases](/releases/index.md)
|
||||
- [Release Process](/releases/release_process.md)
|
||||
- [main (alpha)](/releases/main.md)
|
||||
|
||||
@@ -17,7 +17,7 @@ Make sure all parts are compatible with your flight controller's ports, and adju
|
||||
Alternatives are listed in:
|
||||
|
||||
- [Flight Controllers](../flight_controller/index.md)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#px4-compatible-receivers-compatible_receivers)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#compatible_receivers)
|
||||
- [Data Links](../data_links/index.md)
|
||||
- [Global Navigation Satellite Systems (GNSS)](../gps_compass/index.md#supported-gnss) or [RTK GNSS](../gps_compass/rtk_gps.md)
|
||||
|
||||
@@ -80,7 +80,7 @@ For a longer term solution we highly recommend 3d printing mounts that you attac
|
||||
This frame works with the usual Rover firmware variants on most flight controllers.
|
||||
You can use either prebuilt versions or build the firmware yourself (see [Flashing the Rover Build](../config_rover/index.md#flashing-the-rover-build) and [Building Rover](../config_rover/index.md#building-rover) in _Rover Configuration/Tuning_).
|
||||
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder_emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder-emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
If your board does not ship with it you will need a custom build — see [Hiwonder 4-Channel Encoder Motor Module > Building the Firmware](../peripherals/hiwonder_emm.md#building-the-firmware) for instructions.
|
||||
|
||||
## PX4 Configuration
|
||||
|
||||
@@ -17,7 +17,7 @@ Make sure all parts are compatible with your flight controller's ports, and adju
|
||||
Alternatives are listed in:
|
||||
|
||||
- [Flight Controllers](../flight_controller/index.md)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#px4-compatible-receivers-compatible_receivers)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#compatible_receivers)
|
||||
- [Data Links](../data_links/index.md)
|
||||
- [Global Navigation Satellite Systems (GNSS)](../gps_compass/index.md#supported-gnss) or [RTK GNSS](../gps_compass/rtk_gps.md)
|
||||
|
||||
@@ -70,7 +70,7 @@ For a longer term solution we highly recommend 3d printing mounts that you attac
|
||||
This frame works with the usual Rover firmware variants on most flight controllers.
|
||||
You can use either prebuilt versions or build the firmware yourself (see [Flashing the Rover Build](../config_rover/index.md#flashing-the-rover-build) and [Building Rover](../config_rover/index.md#building-rover) in _Rover Configuration/Tuning_).
|
||||
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder_emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder-emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
If your board does not ship with it you will need a custom build — see [Hiwonder 4-Channel Encoder Motor Module > Building the Firmware](../peripherals/hiwonder_emm.md#building-the-firmware) for instructions.
|
||||
|
||||
## PX4 Configuration
|
||||
|
||||
@@ -17,7 +17,7 @@ Make sure all parts are compatible with your flight controller's ports, and adju
|
||||
Alternatives are listed in:
|
||||
|
||||
- [Flight Controllers](../flight_controller/index.md)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#px4-compatible-receivers-compatible_receivers)
|
||||
- [PX4-Compatible Receivers](../getting_started/rc_transmitter_receiver.md#compatible_receivers)
|
||||
- [Data Links](../data_links/index.md)
|
||||
- [Global Navigation Satellite Systems (GNSS)](../gps_compass/index.md#supported-gnss) or [RTK GNSS](../gps_compass/rtk_gps.md)
|
||||
|
||||
@@ -70,7 +70,7 @@ For a longer term solution we highly recommend 3d printing mounts that you attac
|
||||
This frame works with the usual Rover firmware variants on most flight controllers.
|
||||
You can use either prebuilt versions or build the firmware yourself (see [Flashing the Rover Build](../config_rover/index.md#flashing-the-rover-build) and [Building Rover](../config_rover/index.md#building-rover) in _Rover Configuration/Tuning_).
|
||||
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder_emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
A few boards may omit the [`hiwonder_emm` driver](../modules/modules_driver.md#hiwonder-emm) for the [Hiwonder 4-Channel Encoder Motor Module](../peripherals/hiwonder_emm.md) used by this vehicle.
|
||||
If your board does not ship with it you will need a custom build — see [Hiwonder 4-Channel Encoder Motor Module > Building the Firmware](../peripherals/hiwonder_emm.md#building-the-firmware) for instructions.
|
||||
|
||||
## PX4 Configuration
|
||||
|
||||
@@ -11,7 +11,7 @@ It features a powerful STM32H743 processor, dual high-performance IMUs (BMI088/B
|
||||
|
||||
With its highly integrated 36x36mm footprint and 9g weight, and specialized interfaces like a direct plug-and-play DJI O3 Air Unit connector, this flight controller is optimized for space-constrained FPV builds and agile multirotors that require top-tier processing power and sensor redundancy.
|
||||
|
||||
The board uses [Pixhawk Autopilot Standard Connections](https://docs.px4.io/main/en/flight_controller/autopilot_pixhawk_standard.html).
|
||||
The board uses [Pixhawk Autopilot Standard Connections](../flight_controller/autopilot_pixhawk_standard.md).
|
||||
|
||||
<img src="../../assets/flight_controller/corvon_743v1/corvon_743v1_top.jpg" width="400px" title="CORVON 743v1 Top Baseboard" /> <img src="../../assets/flight_controller/corvon_743v1/corvon_743v1_bottom.jpg" width="400px" title="CORVON 743v1 Bottom Interfaces" />
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<img src="../../assets/site/position_fixed.svg" title="Position required (e.g. GPS)" width="30px" />
|
||||
|
||||
_Guided Course mode_ maintains a constant ground track (course), altitude, and airspeed without any manual stick input.
|
||||
The operator controls the vehicle entirely via [GCS commands](#in-flight-commands), making it the guided equivalent of [Position mode](../flight_modes_fw/position.md).
|
||||
The operator controls the vehicle entirely using [GCS commands](#supported-commands), making it the guided equivalent of [Position mode](../flight_modes_fw/position.md).
|
||||
|
||||
:::tip
|
||||
This mode is suited to situations where an operator wants to guide a fixed-wing vehicle from a GCS without manual control.
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Historic (Old) Versioned Messages (uORB Message Reference)
|
||||
|
||||
See [list here](../msg_docs/index.md#historic-versions).
|
||||
+45
-14
@@ -2,6 +2,8 @@
|
||||
- [Introduction](/index.md)
|
||||
- [기본 개념](/getting_started/px4_basic_concepts.md)
|
||||
|
||||
- [Try PX4 (Simulation)](/simulation/px4_simulation_quickstart.md)
|
||||
|
||||
- [멀티콥터](/frames_multicopter/index.md)
|
||||
- [Features](/features_mc/index.md)
|
||||
- [비행 모드 ](/flight_modes_mc/index.md)
|
||||
@@ -166,12 +168,14 @@
|
||||
- [ARK Electronics ARKV6X](/flight_controller/ark_v6x.md)
|
||||
- [ARK FPV Flight Controller](/flight_controller/ark_fpv.md)
|
||||
- [ARK Pi6X Flow Flight Controller](/flight_controller/ark_pi6x.md)
|
||||
- [CORVON 743v1](/flight_controller/corvon_743v1.md)
|
||||
- [CUAV Nora](/flight_controller/cuav_nora.md)
|
||||
- [CUAV V5+ (FMUv5)](/flight_controller/cuav_v5_plus.md)
|
||||
- [Wiring Quickstart](/assembly/quick_start_cuav_v5_plus.md)
|
||||
- [CUAV V5 nano (FMUv5)](/flight_controller/cuav_v5_nano.md)
|
||||
- [CUAV V5 nano 배선 퀵 스타트](/assembly/quick_start_cuav_v5_nano.md)
|
||||
- [CUAV X25 EVO](/flight_controller/cuav_x25-evo.md)
|
||||
- [CUAV X25 EVO Wiring Quick Start](/assembly/quick_start_cuav_x25_evo.md)
|
||||
- [CUAV X25 SUPER](/flight_controller/cuav_x25-super.md)
|
||||
- [CubePilot Cube Orange+ (CubePilot)](/flight_controller/cubepilot_cube_orangeplus.md)
|
||||
- [CubePilot Cube Orange (CubePilot)](/flight_controller/cubepilot_cube_orange.md)
|
||||
@@ -310,6 +314,7 @@
|
||||
- [DroneCAN ESCs](/dronecan/escs.md)
|
||||
- [PX4 Sapog ESC Firmware](/dronecan/sapog.md)
|
||||
- [ARK 4IN1 ESC](/esc/ark_4in1_esc.md)
|
||||
- [Hiwonder 4Ch Encoder Motor Module](/peripherals/hiwonder_emm.md)
|
||||
- [Holybro Kotleta](/dronecan/holybro_kotleta.md)
|
||||
- [Vertiq Motor/ESC Modules](/peripherals/vertiq.md)
|
||||
- [VESC Project ESCs](/peripherals/vesc.md)
|
||||
@@ -329,6 +334,7 @@
|
||||
- [RFD900 (SiK) 텔레메트리](/telemetry/rfd900_telemetry.md)
|
||||
- [ThunderFly TFSIK01 Telemetry Radio](/telemetry/tfsik_telemetry.md)
|
||||
- [HolyBro (SIK) Telemetry Radio](/telemetry/holybro_sik_radio.md)
|
||||
- [HolyBro SiK Long Range Telemetry Radio](/telemetry/holybro_sik_longrange.md)
|
||||
- [Wifi 텔레메트리](/telemetry/telemetry_wifi.md)
|
||||
- [ESP8266 WiFi 모듈](/telemetry/esp8266_wifi_module.md)
|
||||
- [ESP32 WiFi Module](/telemetry/esp32_wifi_module.md)
|
||||
@@ -382,6 +388,7 @@
|
||||
|
||||
- [Peripherals](/peripherals/index.md)
|
||||
- [ADSB/FLARM/UTM (Traffic Avoidance)](/peripherals/adsb_flarm.md)
|
||||
- [On-Screen Display (OSD)](/peripherals/osd.md)
|
||||
- [낙하산](/peripherals/parachute.md)
|
||||
- [Remote ID](/peripherals/remote_id.md)
|
||||
|
||||
@@ -421,6 +428,8 @@
|
||||
|
||||
- [Standard Configuration](/config/index.md)
|
||||
|
||||
- [OEM Configuration](/advanced_config/oem.md)
|
||||
|
||||
- [고급 설정](/advanced_config/index.md)
|
||||
- [Using PX4's Navigation Filter (EKF2)](/advanced_config/tuning_the_ecl_ekf.md)
|
||||
- [GNSS-Denied & Degraded Flight](/advanced_config/gnss_degraded_or_denied_flight.md)
|
||||
@@ -446,7 +455,10 @@
|
||||
- [Position Tuning](/config_rover/position_tuning.md)
|
||||
- [Apps & API](/flight_modes_rover/api.md)
|
||||
- [Complete Vehicles](/complete_vehicles_rover/index.md)
|
||||
- [Aion Robotics R1](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Hiwonder Ackermann Chassis](/complete_vehicles_rover/hiwonder_ackermann.md)
|
||||
- [Hiwonder Tracked Chassis](/complete_vehicles_rover/hiwonder_tracked.md)
|
||||
- [Hiwonder Mecanum Chassis](/complete_vehicles_rover/hiwonder_mecanum.md)
|
||||
- [Aion Robotics R1 (Discontinued)](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Submarines (experimental)](/frames_sub/index.md)
|
||||
- [블루로브2](/frames_sub/bluerov2.md)
|
||||
- [기체 프레임 정의서](/airframes/airframe_reference.md)
|
||||
@@ -487,17 +499,21 @@
|
||||
- [Plugins](/sim_gazebo_gz/plugins.md)
|
||||
- [Gazebo Models Repository](/sim_gazebo_gz/gazebo_models.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_gz/multi_vehicle_simulation.md)
|
||||
- [SIH Simulation](/sim_sih/index.md)
|
||||
- [Hawkeye Visualizer](/sim_hawkeye/index.md)
|
||||
- [Gazebo Classic Simulation](/sim_gazebo_classic/index.md)
|
||||
- [Vehicles](/sim_gazebo_classic/vehicles.md)
|
||||
- [Worlds](/sim_gazebo_classic/worlds.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_classic/multi_vehicle_simulation.md)
|
||||
- [안전장치 시뮬레이션](/simulation/failsafes.md)
|
||||
- [Pre-built Packages](/simulation/px4_sitl_prebuilt_packages.md)
|
||||
- [하드웨어](/hardware/index.md)
|
||||
- [비행 제어 장치 참고 설계](/hardware/reference_design.md)
|
||||
- [제조사 보드 지원 가이드](/hardware/board_support_guide.md)
|
||||
- [비행 제어 장치 이식 안내](/hardware/porting_guide.md)
|
||||
- [PX4 Board Configuration (kconfig)](/hardware/porting_guide_config.md)
|
||||
- [NuttX Board Porting Guide](/hardware/porting_guide_nuttx.md)
|
||||
- [Board Firmware Packaging (.deb)](/hardware/board_packaging.md)
|
||||
- [시리얼 포트 매핑](/hardware/serial_port_mapping.md)
|
||||
- [기체](/dev_airframes/index.md)
|
||||
- [새 기체 추가](/dev_airframes/adding_a_new_frame.md)
|
||||
@@ -585,6 +601,8 @@
|
||||
- [DistanceSensorModeChangeRequest](/msg_docs/DistanceSensorModeChangeRequest.md)
|
||||
- [DronecanNodeStatus](/msg_docs/DronecanNodeStatus.md)
|
||||
- [Ekf2Timestamps](/msg_docs/Ekf2Timestamps.md)
|
||||
- [EscEepromRead](/msg_docs/EscEepromRead.md)
|
||||
- [EscEepromWrite](/msg_docs/EscEepromWrite.md)
|
||||
- [EscReport](/msg_docs/EscReport.md)
|
||||
- [EscStatus](/msg_docs/EscStatus.md)
|
||||
- [EstimatorAidSource1d](/msg_docs/EstimatorAidSource1d.md)
|
||||
@@ -593,6 +611,7 @@
|
||||
- [EstimatorBias](/msg_docs/EstimatorBias.md)
|
||||
- [EstimatorBias3d](/msg_docs/EstimatorBias3d.md)
|
||||
- [EstimatorEventFlags](/msg_docs/EstimatorEventFlags.md)
|
||||
- [EstimatorFusionControl](/msg_docs/EstimatorFusionControl.md)
|
||||
- [EstimatorGpsStatus](/msg_docs/EstimatorGpsStatus.md)
|
||||
- [EstimatorInnovations](/msg_docs/EstimatorInnovations.md)
|
||||
- [EstimatorSelectorStatus](/msg_docs/EstimatorSelectorStatus.md)
|
||||
@@ -691,6 +710,7 @@
|
||||
- [QshellReq](/msg_docs/QshellReq.md)
|
||||
- [QshellRetval](/msg_docs/QshellRetval.md)
|
||||
- [RadioStatus](/msg_docs/RadioStatus.md)
|
||||
- [RangingBeacon](/msg_docs/RangingBeacon.md)
|
||||
- [RateCtrlStatus](/msg_docs/RateCtrlStatus.md)
|
||||
- [RcChannels](/msg_docs/RcChannels.md)
|
||||
- [RcParameterMap](/msg_docs/RcParameterMap.md)
|
||||
@@ -769,17 +789,23 @@
|
||||
- [HomePositionV0](/msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](/msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](/msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](/msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](/msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](/msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](/msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](/msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](/msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](/msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](/msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](/msg_docs/VehicleStatusV3.md)
|
||||
- [MAVLink Messaging](/mavlink/index.md)
|
||||
- [Adding Messages](/mavlink/adding_messages.md)
|
||||
- [Streaming Messages](/mavlink/streaming_messages.md)
|
||||
- [MAVLink Profiles](/mavlink/mavlink_profiles.md)
|
||||
- [Receiving Messages](/mavlink/receiving_messages.md)
|
||||
- [Custom MAVLink Messages](/mavlink/custom_messages.md)
|
||||
- [Message Signing](/mavlink/message_signing.md)
|
||||
- [Security Hardening](/mavlink/security_hardening.md)
|
||||
- [Protocols/Microservices](/mavlink/protocols.md)
|
||||
- [Standard Modes Protocol](/mavlink/standard_modes.md)
|
||||
- [uXRCE-DDS (PX4-ROS 2/DDS Bridge)](/middleware/uxrce_dds.md)
|
||||
@@ -866,28 +892,32 @@
|
||||
- [jMAVSim 다중 차량 시뮬레이션](/sim_jmavsim/multi_vehicle.md)
|
||||
- [JSBSim Simulation](/sim_jsbsim/index.md)
|
||||
- [AirSim Simulation](/sim_airsim/index.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [Simulation-In-Hardware](/sim_sih/index.md)
|
||||
- [Hardware Simulation](/simulation/hardware.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [SIH on Hardware](/sim_sih/hardware.md)
|
||||
- [Multi-vehicle simulation](/simulation/multi-vehicle-simulation.md)
|
||||
- [플랫폼 시험과 지속 통합](/test_and_ci/index.md)
|
||||
- [시험 비행](/test_and_ci/test_flights.md)
|
||||
- [시험 MC_01 - 수동 모드](/test_cards/mc_01_manual_modes.md)
|
||||
- [시험 MC_02 - 완전 자동](/test_cards/mc_02_full_autonomous.md)
|
||||
- [시험 MC_03 - 자동 / 수동 혼합](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [시험 MC_04 - 안전 장치 시험](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Multicopter](/test_and_ci/test_flights.md#multicopter)
|
||||
- [시험 MC_01 - 수동 모드](/test_cards/mc_01_manual_modes.md)
|
||||
- [시험 MC_02 - 완전 자동](/test_cards/mc_02_full_autonomous.md)
|
||||
- [시험 MC_03 - 자동 / 수동 혼합](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [시험 MC_04 - 안전 장치 시험](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Fixed Wing](/test_and_ci/test_flights.md#fixed-wing)
|
||||
- [Test FW_01 - Manual Modes](/test_cards/fw_01_manual_modes.md)
|
||||
- [Test FW_02 - Full Autonomous](/test_cards/fw_02_full_autonomous.md)
|
||||
- [단위 테스트](/test_and_ci/unit_tests.md)
|
||||
- [Fuzz Tests](/test_and_ci/fuzz_tests.md)
|
||||
- [지속 통합](/test_and_ci/continous_integration.md)
|
||||
- [Integration Testing](/test_and_ci/integration_testing.md)
|
||||
- [MAVSDK 통합 테스트](/test_and_ci/integration_testing_mavsdk.md)
|
||||
- [PX4 ROS2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md)
|
||||
- [ROS 1 Integration Testing](/test_and_ci/integration_testing_ros1_mavros.md)
|
||||
- [도커 컨테이너](/test_and_ci/docker.md)
|
||||
- [유지보수](/test_and_ci/maintenance.md)
|
||||
|
||||
@@ -923,6 +953,7 @@
|
||||
- [Translation](/contribute/translation.md)
|
||||
- [용어/표기법](/contribute/notation.md)
|
||||
- [라이센스](/contribute/licenses.md)
|
||||
- [SBOM](/contribute/sbom.md)
|
||||
|
||||
- [출시](/releases/index.md)
|
||||
- [Release Process](/releases/release_process.md)
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
# Integration Testing using ROS 1
|
||||
|
||||
This topic explains how to run (and extend) PX4's ROS (1) and MAVROS -based integration tests.
|
||||
|
||||
:::warning
|
||||
This test framework is deprecated.
|
||||
It should be used only for new test cases that _require_ ROS 1.
|
||||
|
||||
[MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md) is preferred when writing new tests.
|
||||
:::
|
||||
|
||||
:::info
|
||||
All PX4 integration tests are executed automatically by our [Continuous Integration](../test_and_ci/continous_integration.md) system.
|
||||
:::
|
||||
|
||||
## 준비 사항
|
||||
|
||||
- [Gazebo Classic Simulator](../sim_gazebo_classic/index.md)
|
||||
- [ROS and MAVROS](../simulation/ros_interface.md)
|
||||
|
||||
## Execute Tests
|
||||
|
||||
To run the MAVROS tests:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
make <test_target>
|
||||
```
|
||||
|
||||
`test_target` is a makefile targets from the set: _tests_mission_, _tests_mission_coverage_, _tests_offboard_ and _tests_avoidance_.
|
||||
|
||||
Test can also be executed directly by running the test scripts, located under `test/`:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
./test/<test_bash_script> <test_launch_file>
|
||||
```
|
||||
|
||||
예:
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test
|
||||
```
|
||||
|
||||
Tests can also be run with a GUI to see what's happening (by default the tests run "headless"):
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test gui:=true headless:=false
|
||||
```
|
||||
|
||||
The **.test** files launch the corresponding Python tests defined in `integrationtests/python_src/px4_it/mavros/`
|
||||
|
||||
## Write a New MAVROS Test (Python)
|
||||
|
||||
This section explains how to write a new python test using ROS 1/MAVROS, test it, and add it to the PX4 test suite.
|
||||
|
||||
We recommend you review the existing tests as examples/inspiration ([integrationtests/python_src/px4_it/mavros/](https://github.com/PX4/PX4-Autopilot/tree/main/integrationtests/python_src/px4_it/mavros)).
|
||||
The official ROS documentation also contains information on how to use [unittest](https://wiki.ros.org/unittest) (on which this test suite is based).
|
||||
|
||||
To write a new test:
|
||||
|
||||
1. Create a new test script by copying the empty test skeleton below:
|
||||
|
||||
```python
|
||||
#!/usr/bin/env python
|
||||
# [... LICENSE ...]
|
||||
|
||||
#
|
||||
# @author Example Author <author@example.com>
|
||||
#
|
||||
PKG = 'px4'
|
||||
|
||||
import unittest
|
||||
import rospy
|
||||
import rosbag
|
||||
|
||||
from sensor_msgs.msg import NavSatFix
|
||||
|
||||
class MavrosNewTest(unittest.TestCase):
|
||||
"""
|
||||
Test description
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
rospy.init_node('test_node', anonymous=True)
|
||||
rospy.wait_for_service('mavros/cmd/arming', 30)
|
||||
|
||||
rospy.Subscriber("mavros/global_position/global", NavSatFix, self.global_position_callback)
|
||||
self.rate = rospy.Rate(10) # 10hz
|
||||
self.has_global_pos = False
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
#
|
||||
# General callback functions used in tests
|
||||
#
|
||||
def global_position_callback(self, data):
|
||||
self.has_global_pos = True
|
||||
|
||||
def test_method(self):
|
||||
"""Test method description"""
|
||||
|
||||
# FIXME: hack to wait for simulation to be ready
|
||||
while not self.has_global_pos:
|
||||
self.rate.sleep()
|
||||
|
||||
# TODO: execute test
|
||||
|
||||
if __name__ == '__main__':
|
||||
import rostest
|
||||
rostest.rosrun(PKG, 'mavros_new_test', MavrosNewTest)
|
||||
```
|
||||
|
||||
2. Run the new test only
|
||||
- Start the simulator:
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
roslaunch launch/mavros_posix_sitl.launch
|
||||
```
|
||||
|
||||
- Run test (in a new shell):
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
rosrun px4 mavros_new_test.py
|
||||
```
|
||||
|
||||
3. Add new test node to a launch file
|
||||
- In `test/` create a new `<test_name>.test` ROS launch file.
|
||||
- Call the test file using one of the base scripts _rostest_px4_run.sh_ or _rostest_avoidance_run.sh_
|
||||
|
||||
4. (Optional) Create a new target in the Makefile
|
||||
|
||||
- Open the Makefile
|
||||
- Search the _Testing_ section
|
||||
- Add a new target name and call the test
|
||||
|
||||
예:
|
||||
|
||||
```sh
|
||||
tests_<new_test_target_name>: rostest
|
||||
@"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_<new_test>.test
|
||||
```
|
||||
|
||||
Run the tests as described above.
|
||||
+49
-14
@@ -2,6 +2,8 @@
|
||||
- [Введення](/index.md)
|
||||
- [Основні поняття](/getting_started/px4_basic_concepts.md)
|
||||
|
||||
- [Try PX4 (Simulation)](/simulation/px4_simulation_quickstart.md)
|
||||
|
||||
- [Мультикоптери](/frames_multicopter/index.md)
|
||||
- [Функції](/features_mc/index.md)
|
||||
- [Режим польоту](/flight_modes_mc/index.md)
|
||||
@@ -21,6 +23,8 @@
|
||||
- [Offboard Mode (MC)](/flight_modes_mc/offboard.md)
|
||||
- [Запобігання зіткненням](/computer_vision/collision_prevention.md)
|
||||
- [Точна посадка](/advanced_features/precland.md)
|
||||
- [Vision Target Estimator](/advanced_features/vision_target_estimator.md)
|
||||
- [Vision Target Estimator Deep Dive](/advanced_features/vision_target_estimator_advanced.md)
|
||||
- [Послідовність місцевості/захистки](/flying/terrain_following_holding.md)
|
||||
- [Запуск з катапульти чи підкиданням](/flight_modes_mc/throw_launch.md)
|
||||
- [Збірка](/assembly/assembly_mc.md)
|
||||
@@ -77,6 +81,7 @@
|
||||
- [Takeoff Mode (FW)](/flight_modes_fw/takeoff.md)
|
||||
- [Land Mode (FW)](/flight_modes_fw/land.md)
|
||||
- [Hold Mode (FW)](/flight_modes_fw/hold.md)
|
||||
- [Guided Course Mode (FW)](/flight_modes_fw/guided_course.md)
|
||||
- [Mission Mode (FW)](/flight_modes_fw/mission.md)
|
||||
- [Return Mode (FW)](/flight_modes_fw/return.md)
|
||||
- [Offboard Mode (FW)](/flight_modes_fw/offboard.md)
|
||||
@@ -164,14 +169,17 @@
|
||||
- [AirMind MindPX](/flight_controller/mindpx.md)
|
||||
- [AirMind MindRacer](/flight_controller/mindracer.md)
|
||||
- [ARK Electronics ARKV6X](/flight_controller/ark_v6x.md)
|
||||
- [ARK Electronics ARKV6S](/flight_controller/ark_v6s.md)
|
||||
- [ARK FPV Flight Controller](/flight_controller/ark_fpv.md)
|
||||
- [ARK Pi6X Flow Flight Controller](/flight_controller/ark_pi6x.md)
|
||||
- [CORVON 743v1](/flight_controller/corvon_743v1.md)
|
||||
- [CUAV Nora](/flight_controller/cuav_nora.md)
|
||||
- [CUAV V5+ (FMUv5)](/flight_controller/cuav_v5_plus.md)
|
||||
- [Wiring Quickstart](/assembly/quick_start_cuav_v5_plus.md)
|
||||
- [CUAV V5 nano (FMUv5)](/flight_controller/cuav_v5_nano.md)
|
||||
- [Швидке підключення CUAV V5 nano](/assembly/quick_start_cuav_v5_nano.md)
|
||||
- [CUAV X25 EVO](/flight_controller/cuav_x25-evo.md)
|
||||
- [CUAV X25 EVO Wiring Quick Start](/assembly/quick_start_cuav_x25_evo.md)
|
||||
- [CUAV X25 SUPER](/flight_controller/cuav_x25-super.md)
|
||||
- [CubePilot Cube Orange+ (CubePilot)](/flight_controller/cubepilot_cube_orangeplus.md)
|
||||
- [CubePilot Cube Orange (CubePilot)](/flight_controller/cubepilot_cube_orange.md)
|
||||
@@ -310,6 +318,7 @@
|
||||
- [DroneCAN ESCs](/dronecan/escs.md)
|
||||
- [PX4 Sapog ESC Firmware](/dronecan/sapog.md)
|
||||
- [ARK 4IN1 ESC](/esc/ark_4in1_esc.md)
|
||||
- [Hiwonder 4Ch Encoder Motor Module](/peripherals/hiwonder_emm.md)
|
||||
- [Holybro Kotleta](/dronecan/holybro_kotleta.md)
|
||||
- [Vertiq Motor/ESC Modules](/peripherals/vertiq.md)
|
||||
- [VESC Project ESCs](/peripherals/vesc.md)
|
||||
@@ -329,6 +338,7 @@
|
||||
- [Телеметричне радіо RFD900 (SiK)](/telemetry/rfd900_telemetry.md)
|
||||
- [ThunderFly TFSIK01 Telemetry Radio](/telemetry/tfsik_telemetry.md)
|
||||
- [HolyBro (SIK) Телеметричне радіо](/telemetry/holybro_sik_radio.md)
|
||||
- [HolyBro SiK Long Range Telemetry Radio](/telemetry/holybro_sik_longrange.md)
|
||||
- [Телеметрія Wi-Fi](/telemetry/telemetry_wifi.md)
|
||||
- [Модуль WiFi ESP8266](/telemetry/esp8266_wifi_module.md)
|
||||
- [Модуль WiFi ESP32](/telemetry/esp32_wifi_module.md)
|
||||
@@ -382,6 +392,7 @@
|
||||
|
||||
- [Периферія](/peripherals/index.md)
|
||||
- [ADSB/FLARM/UTM (уникнення трафіку)](/peripherals/adsb_flarm.md)
|
||||
- [On-Screen Display (OSD)](/peripherals/osd.md)
|
||||
- [Парашут](/peripherals/parachute.md)
|
||||
- [Remote ID](/peripherals/remote_id.md)
|
||||
|
||||
@@ -421,6 +432,8 @@
|
||||
|
||||
- [Стандартна конфігурація](/config/index.md)
|
||||
|
||||
- [OEM Configuration](/advanced_config/oem.md)
|
||||
|
||||
- [Розширені налаштування](/advanced_config/index.md)
|
||||
- [Using PX4's Navigation Filter (EKF2)](/advanced_config/tuning_the_ecl_ekf.md)
|
||||
- [GNSS-Denied & Degraded Flight](/advanced_config/gnss_degraded_or_denied_flight.md)
|
||||
@@ -446,7 +459,10 @@
|
||||
- [Position Tuning](/config_rover/position_tuning.md)
|
||||
- [Apps & API](/flight_modes_rover/api.md)
|
||||
- [Complete Vehicles](/complete_vehicles_rover/index.md)
|
||||
- [Aion Robotics R1](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Hiwonder Ackermann Chassis](/complete_vehicles_rover/hiwonder_ackermann.md)
|
||||
- [Hiwonder Tracked Chassis](/complete_vehicles_rover/hiwonder_tracked.md)
|
||||
- [Hiwonder Mecanum Chassis](/complete_vehicles_rover/hiwonder_mecanum.md)
|
||||
- [Aion Robotics R1 (Discontinued)](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Submarines (experimental)](/frames_sub/index.md)
|
||||
- [BlueROV2](/frames_sub/bluerov2.md)
|
||||
- [Airframes Reference](/airframes/airframe_reference.md)
|
||||
@@ -487,17 +503,21 @@
|
||||
- [Plugins](/sim_gazebo_gz/plugins.md)
|
||||
- [Gazebo Models Repository](/sim_gazebo_gz/gazebo_models.md)
|
||||
- [Багатотранспортний Sim](/sim_gazebo_gz/multi_vehicle_simulation.md)
|
||||
- [SIH Simulation](/sim_sih/index.md)
|
||||
- [Hawkeye Visualizer](/sim_hawkeye/index.md)
|
||||
- [Симуляція Gazebo Classic](/sim_gazebo_classic/index.md)
|
||||
- [Vehicles](/sim_gazebo_classic/vehicles.md)
|
||||
- [Worlds](/sim_gazebo_classic/worlds.md)
|
||||
- [Багатотранспортний Sim](/sim_gazebo_classic/multi_vehicle_simulation.md)
|
||||
- [Симуляція запобігання відмовам](/simulation/failsafes.md)
|
||||
- [Pre-built Packages](/simulation/px4_sitl_prebuilt_packages.md)
|
||||
- [Апаратне забезпечення](/hardware/index.md)
|
||||
- [Дизайн контролера польоту](/hardware/reference_design.md)
|
||||
- [Manufacturer’s Board Support Guide](/hardware/board_support_guide.md)
|
||||
- [Flight Controller Porting Guide](/hardware/porting_guide.md)
|
||||
- [PX4 Конфігурація плати (kconfig)](/hardware/porting_guide_config.md)
|
||||
- [Посібник з портування NuttX](/hardware/porting_guide_nuttx.md)
|
||||
- [Board Firmware Packaging (.deb)](/hardware/board_packaging.md)
|
||||
- [Serial Port Mapping](/hardware/serial_port_mapping.md)
|
||||
- [Airframes](/dev_airframes/index.md)
|
||||
- [Adding a New Airframe](/dev_airframes/adding_a_new_frame.md)
|
||||
@@ -585,6 +605,8 @@
|
||||
- [DistanceSensorModeChangeRequest](/msg_docs/DistanceSensorModeChangeRequest.md)
|
||||
- [DronecanNodeStatus](/msg_docs/DronecanNodeStatus.md)
|
||||
- [Ekf2Timestamps](/msg_docs/Ekf2Timestamps.md)
|
||||
- [EscEepromRead](/msg_docs/EscEepromRead.md)
|
||||
- [EscEepromWrite](/msg_docs/EscEepromWrite.md)
|
||||
- [EscReport](/msg_docs/EscReport.md)
|
||||
- [EscStatus](/msg_docs/EscStatus.md)
|
||||
- [EstimatorAidSource1d](/msg_docs/EstimatorAidSource1d.md)
|
||||
@@ -593,6 +615,7 @@
|
||||
- [EstimatorBias](/msg_docs/EstimatorBias.md)
|
||||
- [EstimatorBias3d](/msg_docs/EstimatorBias3d.md)
|
||||
- [EstimatorEventFlags](/msg_docs/EstimatorEventFlags.md)
|
||||
- [EstimatorFusionControl](/msg_docs/EstimatorFusionControl.md)
|
||||
- [EstimatorGpsStatus](/msg_docs/EstimatorGpsStatus.md)
|
||||
- [EstimatorInnovations](/msg_docs/EstimatorInnovations.md)
|
||||
- [EstimatorSelectorStatus](/msg_docs/EstimatorSelectorStatus.md)
|
||||
@@ -691,6 +714,7 @@
|
||||
- [QshellReq](/msg_docs/QshellReq.md)
|
||||
- [QshellRetval](/msg_docs/QshellRetval.md)
|
||||
- [RadioStatus](/msg_docs/RadioStatus.md)
|
||||
- [RangingBeacon](/msg_docs/RangingBeacon.md)
|
||||
- [RateCtrlStatus](/msg_docs/RateCtrlStatus.md)
|
||||
- [RcChannels](/msg_docs/RcChannels.md)
|
||||
- [RcParameterMap](/msg_docs/RcParameterMap.md)
|
||||
@@ -769,17 +793,23 @@
|
||||
- [HomePositionV0](/msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](/msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](/msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](/msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](/msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](/msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](/msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](/msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](/msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](/msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](/msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](/msg_docs/VehicleStatusV3.md)
|
||||
- [MAVLink Messaging](/mavlink/index.md)
|
||||
- [Adding Messages](/mavlink/adding_messages.md)
|
||||
- [Streaming Messages](/mavlink/streaming_messages.md)
|
||||
- [MAVLink Profiles](/mavlink/mavlink_profiles.md)
|
||||
- [Receiving Messages](/mavlink/receiving_messages.md)
|
||||
- [Custom MAVLink Messages](/mavlink/custom_messages.md)
|
||||
- [Message Signing](/mavlink/message_signing.md)
|
||||
- [Security Hardening](/mavlink/security_hardening.md)
|
||||
- [Protocols/Microservices](/mavlink/protocols.md)
|
||||
- [Standard Modes Protocol](/mavlink/standard_modes.md)
|
||||
- [uXRCE-DDS (PX4-ROS 2/DDS Bridge)](/middleware/uxrce_dds.md)
|
||||
@@ -866,28 +896,32 @@
|
||||
- [Multi-Vehicle Sim with JMAVSim](/sim_jmavsim/multi_vehicle.md)
|
||||
- [JSBSim Simulation](/sim_jsbsim/index.md)
|
||||
- [AirSim Simulation](/sim_airsim/index.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [Simulation-In-Hardware](/sim_sih/index.md)
|
||||
- [Hardware Simulation](/simulation/hardware.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [SIH on Hardware](/sim_sih/hardware.md)
|
||||
- [Multi-vehicle simulation](/simulation/multi-vehicle-simulation.md)
|
||||
- [Тестування платформи та CI](/test_and_ci/index.md)
|
||||
- [Польотні тести](/test_and_ci/test_flights.md)
|
||||
- [Тест MC_01 - Ручні режими](/test_cards/mc_01_manual_modes.md)
|
||||
- [Тест MC_02 - Повна автономність](/test_cards/mc_02_full_autonomous.md)
|
||||
- [Тест MC_03 - поєднання автоматичного і ручного керування](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [Тест MC_04 - Тестування відмовостійкості](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Multicopter](/test_and_ci/test_flights.md#multicopter)
|
||||
- [Тест MC_01 - Ручні режими](/test_cards/mc_01_manual_modes.md)
|
||||
- [Тест MC_02 - Повна автономність](/test_cards/mc_02_full_autonomous.md)
|
||||
- [Тест MC_03 - поєднання автоматичного і ручного керування](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [Тест MC_04 - Тестування відмовостійкості](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Fixed Wing](/test_and_ci/test_flights.md#fixed-wing)
|
||||
- [Test FW_01 - Manual Modes](/test_cards/fw_01_manual_modes.md)
|
||||
- [Test FW_02 - Full Autonomous](/test_cards/fw_02_full_autonomous.md)
|
||||
- [Модульні Тести](/test_and_ci/unit_tests.md)
|
||||
- [Fuzz Tests](/test_and_ci/fuzz_tests.md)
|
||||
- [Безперервна інтеграція](/test_and_ci/continous_integration.md)
|
||||
- [Integration Testing](/test_and_ci/integration_testing.md)
|
||||
- [MAVSDK Тестування інтеграції ](/test_and_ci/integration_testing_mavsdk.md)
|
||||
- [PX4 ROS2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md)
|
||||
- [ROS 1 Integration Testing](/test_and_ci/integration_testing_ros1_mavros.md)
|
||||
- [Докер-контейнер](/test_and_ci/docker.md)
|
||||
- [Підтримка](/test_and_ci/maintenance.md)
|
||||
|
||||
@@ -923,6 +957,7 @@
|
||||
- [Translation](/contribute/translation.md)
|
||||
- [Термінологія/Нотація](/contribute/notation.md)
|
||||
- [Ліцензії](/contribute/licenses.md)
|
||||
- [SBOM](/contribute/sbom.md)
|
||||
|
||||
- [Релізи](/releases/index.md)
|
||||
- [Release Process](/releases/release_process.md)
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
# Integration Testing using ROS 1
|
||||
|
||||
This topic explains how to run (and extend) PX4's ROS (1) and MAVROS -based integration tests.
|
||||
|
||||
:::warning
|
||||
This test framework is deprecated.
|
||||
It should be used only for new test cases that _require_ ROS 1.
|
||||
|
||||
[MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md) is preferred when writing new tests.
|
||||
:::
|
||||
|
||||
:::info
|
||||
All PX4 integration tests are executed automatically by our [Continuous Integration](../test_and_ci/continous_integration.md) system.
|
||||
:::
|
||||
|
||||
## Вимоги
|
||||
|
||||
- [Gazebo Classic Simulator](../sim_gazebo_classic/index.md)
|
||||
- [ROS and MAVROS](../simulation/ros_interface.md)
|
||||
|
||||
## Execute Tests
|
||||
|
||||
To run the MAVROS tests:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
make <test_target>
|
||||
```
|
||||
|
||||
`test_target` is a makefile targets from the set: _tests_mission_, _tests_mission_coverage_, _tests_offboard_ and _tests_avoidance_.
|
||||
|
||||
Test can also be executed directly by running the test scripts, located under `test/`:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
./test/<test_bash_script> <test_launch_file>
|
||||
```
|
||||
|
||||
Наприклад:
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test
|
||||
```
|
||||
|
||||
Tests can also be run with a GUI to see what's happening (by default the tests run "headless"):
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test gui:=true headless:=false
|
||||
```
|
||||
|
||||
The **.test** files launch the corresponding Python tests defined in `integrationtests/python_src/px4_it/mavros/`
|
||||
|
||||
## Write a New MAVROS Test (Python)
|
||||
|
||||
This section explains how to write a new python test using ROS 1/MAVROS, test it, and add it to the PX4 test suite.
|
||||
|
||||
We recommend you review the existing tests as examples/inspiration ([integrationtests/python_src/px4_it/mavros/](https://github.com/PX4/PX4-Autopilot/tree/main/integrationtests/python_src/px4_it/mavros)).
|
||||
The official ROS documentation also contains information on how to use [unittest](https://wiki.ros.org/unittest) (on which this test suite is based).
|
||||
|
||||
To write a new test:
|
||||
|
||||
1. Create a new test script by copying the empty test skeleton below:
|
||||
|
||||
```python
|
||||
#!/usr/bin/env python
|
||||
# [... LICENSE ...]
|
||||
|
||||
#
|
||||
# @author Example Author <author@example.com>
|
||||
#
|
||||
PKG = 'px4'
|
||||
|
||||
import unittest
|
||||
import rospy
|
||||
import rosbag
|
||||
|
||||
from sensor_msgs.msg import NavSatFix
|
||||
|
||||
class MavrosNewTest(unittest.TestCase):
|
||||
"""
|
||||
Test description
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
rospy.init_node('test_node', anonymous=True)
|
||||
rospy.wait_for_service('mavros/cmd/arming', 30)
|
||||
|
||||
rospy.Subscriber("mavros/global_position/global", NavSatFix, self.global_position_callback)
|
||||
self.rate = rospy.Rate(10) # 10hz
|
||||
self.has_global_pos = False
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
#
|
||||
# General callback functions used in tests
|
||||
#
|
||||
def global_position_callback(self, data):
|
||||
self.has_global_pos = True
|
||||
|
||||
def test_method(self):
|
||||
"""Test method description"""
|
||||
|
||||
# FIXME: hack to wait for simulation to be ready
|
||||
while not self.has_global_pos:
|
||||
self.rate.sleep()
|
||||
|
||||
# TODO: execute test
|
||||
|
||||
if __name__ == '__main__':
|
||||
import rostest
|
||||
rostest.rosrun(PKG, 'mavros_new_test', MavrosNewTest)
|
||||
```
|
||||
|
||||
2. Run the new test only
|
||||
- Start the simulator:
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
roslaunch launch/mavros_posix_sitl.launch
|
||||
```
|
||||
|
||||
- Run test (in a new shell):
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
rosrun px4 mavros_new_test.py
|
||||
```
|
||||
|
||||
3. Add new test node to a launch file
|
||||
- In `test/` create a new `<test_name>.test` ROS launch file.
|
||||
- Call the test file using one of the base scripts _rostest_px4_run.sh_ or _rostest_avoidance_run.sh_
|
||||
|
||||
4. (Optional) Create a new target in the Makefile
|
||||
|
||||
- Open the Makefile
|
||||
- Search the _Testing_ section
|
||||
- Add a new target name and call the test
|
||||
|
||||
Наприклад:
|
||||
|
||||
```sh
|
||||
tests_<new_test_target_name>: rostest
|
||||
@"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_<new_test>.test
|
||||
```
|
||||
|
||||
Run the tests as described above.
|
||||
+49
-14
@@ -2,6 +2,8 @@
|
||||
- [概述](/index.md)
|
||||
- [基本概念](/getting_started/px4_basic_concepts.md)
|
||||
|
||||
- [Try PX4 (Simulation)](/simulation/px4_simulation_quickstart.md)
|
||||
|
||||
- [多旋翼](/frames_multicopter/index.md)
|
||||
- [特征](/features_mc/index.md)
|
||||
- [飞行模式](/flight_modes_mc/index.md)
|
||||
@@ -21,6 +23,8 @@
|
||||
- [外部控制模式(多旋翼)](/flight_modes_mc/offboard.md)
|
||||
- [碰撞预防](/computer_vision/collision_prevention.md)
|
||||
- [地形跟随/保持](/flying/terrain_following_holding.md)
|
||||
- [Vision Target Estimator](/advanced_features/vision_target_estimator.md)
|
||||
- [Vision Target Estimator Deep Dive](/advanced_features/vision_target_estimator_advanced.md)
|
||||
- [地形跟随/保持](/flying/terrain_following_holding.md)
|
||||
- [抛飞启动](/flight_modes_mc/throw_launch.md)
|
||||
- [Assembly](/assembly/assembly_mc.md)
|
||||
@@ -77,6 +81,7 @@
|
||||
- [Takeoff Mode (FW)](/flight_modes_fw/takeoff.md)
|
||||
- [Land Mode (FW)](/flight_modes_fw/land.md)
|
||||
- [Hold Mode (FW)](/flight_modes_fw/hold.md)
|
||||
- [Guided Course Mode (FW)](/flight_modes_fw/guided_course.md)
|
||||
- [任务模式](/flight_modes_fw/mission.md)
|
||||
- [Return Mode (FW)](/flight_modes_fw/return.md)
|
||||
- [Offboard Mode (FW)](/flight_modes_fw/offboard.md)
|
||||
@@ -164,14 +169,17 @@
|
||||
- [AirMind MindPX](/flight_controller/mindpx.md)
|
||||
- [AirMind MindRacer](/flight_controller/mindracer.md)
|
||||
- [ARK Electronics ARKV6X](/flight_controller/ark_v6x.md)
|
||||
- [ARK Electronics ARKV6S](/flight_controller/ark_v6s.md)
|
||||
- [ARK FPV Flight Controller](/flight_controller/ark_fpv.md)
|
||||
- [ARK Pi6X Flow Flight Controller](/flight_controller/ark_pi6x.md)
|
||||
- [CORVON 743v1](/flight_controller/corvon_743v1.md)
|
||||
- [CUAV Nora](/flight_controller/cuav_nora.md)
|
||||
- [CUAV V5+ (FMUv5)](/flight_controller/cuav_v5_plus.md)
|
||||
- [Wiring Quickstart](/assembly/quick_start_cuav_v5_plus.md)
|
||||
- [CUAV V5 nano (FMUv5)](/flight_controller/cuav_v5_nano.md)
|
||||
- [CUAV V5 nano Wiring Quickstart](/assembly/quick_start_cuav_v5_nano.md)
|
||||
- [CUAV X25 EVO](/flight_controller/cuav_x25-evo.md)
|
||||
- [CUAV X25 EVO Wiring Quick Start](/assembly/quick_start_cuav_x25_evo.md)
|
||||
- [CUAV X25 SUPER](/flight_controller/cuav_x25-super.md)
|
||||
- [CubePilot Cube Orange+ (CubePilot)](/flight_controller/cubepilot_cube_orangeplus.md)
|
||||
- [CubePilot Cube Orange (CubePilot)](/flight_controller/cubepilot_cube_orange.md)
|
||||
@@ -310,6 +318,7 @@
|
||||
- [DroneCAN ESCs](/dronecan/escs.md)
|
||||
- [PX4 Sapog ESC Firmware](/dronecan/sapog.md)
|
||||
- [ARK 4IN1 ESC](/esc/ark_4in1_esc.md)
|
||||
- [Hiwonder 4Ch Encoder Motor Module](/peripherals/hiwonder_emm.md)
|
||||
- [Holybro Kotleta](/dronecan/holybro_kotleta.md)
|
||||
- [Vertiq Motor/ESC Modules](/peripherals/vertiq.md)
|
||||
- [VESC Project ESCs](/peripherals/vesc.md)
|
||||
@@ -329,6 +338,7 @@
|
||||
- [RFD900 (SiK) 数传电台](/telemetry/rfd900_telemetry.md)
|
||||
- [ThunderFly TFSIK01 Telemetry Radio](/telemetry/tfsik_telemetry.md)
|
||||
- [HolyBro (SIK) 数传电台](/telemetry/holybro_sik_radio.md)
|
||||
- [HolyBro SiK Long Range Telemetry Radio](/telemetry/holybro_sik_longrange.md)
|
||||
- [WiFi 数传](/telemetry/telemetry_wifi.md)
|
||||
- [ESP8266 WiFi 模块](/telemetry/esp8266_wifi_module.md)
|
||||
- [ESP32 WiFi 模块](/telemetry/esp32_wifi_module.md)
|
||||
@@ -382,6 +392,7 @@
|
||||
|
||||
- [Peripherals](/peripherals/index.md)
|
||||
- [ADSB/FLARM/UTM (Traffic Avoidance)](/peripherals/adsb_flarm.md)
|
||||
- [On-Screen Display (OSD)](/peripherals/osd.md)
|
||||
- [降落伞](/peripherals/parachute.md)
|
||||
- [Remote ID](/peripherals/remote_id.md)
|
||||
|
||||
@@ -421,6 +432,8 @@
|
||||
|
||||
- [Standard Configuration](/config/index.md)
|
||||
|
||||
- [OEM Configuration](/advanced_config/oem.md)
|
||||
|
||||
- [高级配置](/advanced_config/index.md)
|
||||
- [Using PX4's Navigation Filter (EKF2)](/advanced_config/tuning_the_ecl_ekf.md)
|
||||
- [GNSS-Denied & Degraded Flight](/advanced_config/gnss_degraded_or_denied_flight.md)
|
||||
@@ -446,7 +459,10 @@
|
||||
- [Position Tuning](/config_rover/position_tuning.md)
|
||||
- [Apps & API](/flight_modes_rover/api.md)
|
||||
- [Complete Vehicles](/complete_vehicles_rover/index.md)
|
||||
- [Aion Robotics R1](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Hiwonder Ackermann Chassis](/complete_vehicles_rover/hiwonder_ackermann.md)
|
||||
- [Hiwonder Tracked Chassis](/complete_vehicles_rover/hiwonder_tracked.md)
|
||||
- [Hiwonder Mecanum Chassis](/complete_vehicles_rover/hiwonder_mecanum.md)
|
||||
- [Aion Robotics R1 (Discontinued)](/complete_vehicles_rover/aion_r1.md)
|
||||
- [Submarines (experimental)](/frames_sub/index.md)
|
||||
- [BlueROV2](/frames_sub/bluerov2.md)
|
||||
- [机架参考](/airframes/airframe_reference.md)
|
||||
@@ -487,17 +503,21 @@
|
||||
- [Plugins](/sim_gazebo_gz/plugins.md)
|
||||
- [Gazebo Models Repository](/sim_gazebo_gz/gazebo_models.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_gz/multi_vehicle_simulation.md)
|
||||
- [SIH Simulation](/sim_sih/index.md)
|
||||
- [Hawkeye Visualizer](/sim_hawkeye/index.md)
|
||||
- [Gazebo Classic Simulation](/sim_gazebo_classic/index.md)
|
||||
- [Vehicles](/sim_gazebo_classic/vehicles.md)
|
||||
- [Worlds](/sim_gazebo_classic/worlds.md)
|
||||
- [Multi-Vehicle Sim](/sim_gazebo_classic/multi_vehicle_simulation.md)
|
||||
- [仿真故障保护](/simulation/failsafes.md)
|
||||
- [Pre-built Packages](/simulation/px4_sitl_prebuilt_packages.md)
|
||||
- [硬件](/hardware/index.md)
|
||||
- [飞行控制器参考设计](/hardware/reference_design.md)
|
||||
- [制造商的版面支持指南](/hardware/board_support_guide.md)
|
||||
- [飞行控制器移植指南](/hardware/porting_guide.md)
|
||||
- [PX4 板配置 (kconfig)](/hardware/porting_guide_config.md)
|
||||
- [NuttX 板移植指南](/hardware/porting_guide_nuttx.md)
|
||||
- [Board Firmware Packaging (.deb)](/hardware/board_packaging.md)
|
||||
- [串口映射](/hardware/serial_port_mapping.md)
|
||||
- [机型](/dev_airframes/index.md)
|
||||
- [增加一个新的机型](/dev_airframes/adding_a_new_frame.md)
|
||||
@@ -585,6 +605,8 @@
|
||||
- [DistanceSensorModeChangeRequest](/msg_docs/DistanceSensorModeChangeRequest.md)
|
||||
- [DronecanNodeStatus](/msg_docs/DronecanNodeStatus.md)
|
||||
- [Ekf2Timestamps](/msg_docs/Ekf2Timestamps.md)
|
||||
- [EscEepromRead](/msg_docs/EscEepromRead.md)
|
||||
- [EscEepromWrite](/msg_docs/EscEepromWrite.md)
|
||||
- [EscReport](/msg_docs/EscReport.md)
|
||||
- [EscStatus](/msg_docs/EscStatus.md)
|
||||
- [EstimatorAidSource1d](/msg_docs/EstimatorAidSource1d.md)
|
||||
@@ -593,6 +615,7 @@
|
||||
- [EstimatorBias](/msg_docs/EstimatorBias.md)
|
||||
- [EstimatorBias3d](/msg_docs/EstimatorBias3d.md)
|
||||
- [EstimatorEventFlags](/msg_docs/EstimatorEventFlags.md)
|
||||
- [EstimatorFusionControl](/msg_docs/EstimatorFusionControl.md)
|
||||
- [EstimatorGpsStatus](/msg_docs/EstimatorGpsStatus.md)
|
||||
- [EstimatorInnovations](/msg_docs/EstimatorInnovations.md)
|
||||
- [EstimatorSelectorStatus](/msg_docs/EstimatorSelectorStatus.md)
|
||||
@@ -691,6 +714,7 @@
|
||||
- [QshellReq](/msg_docs/QshellReq.md)
|
||||
- [QshellRetval](/msg_docs/QshellRetval.md)
|
||||
- [RadioStatus](/msg_docs/RadioStatus.md)
|
||||
- [RangingBeacon](/msg_docs/RangingBeacon.md)
|
||||
- [RateCtrlStatus](/msg_docs/RateCtrlStatus.md)
|
||||
- [RcChannels](/msg_docs/RcChannels.md)
|
||||
- [RcParameterMap](/msg_docs/RcParameterMap.md)
|
||||
@@ -769,17 +793,23 @@
|
||||
- [HomePositionV0](/msg_docs/HomePositionV0.md)
|
||||
- [RegisterExtComponentReplyV0](/msg_docs/RegisterExtComponentReplyV0.md)
|
||||
- [RegisterExtComponentRequestV0](/msg_docs/RegisterExtComponentRequestV0.md)
|
||||
- [RegisterExtComponentRequestV1](/msg_docs/RegisterExtComponentRequestV1.md)
|
||||
- [VehicleAttitudeSetpointV0](/msg_docs/VehicleAttitudeSetpointV0.md)
|
||||
- [VehicleCommandAckV0](/msg_docs/VehicleCommandAckV0.md)
|
||||
- [VehicleGlobalPositionV0](/msg_docs/VehicleGlobalPositionV0.md)
|
||||
- [VehicleLocalPositionV0](/msg_docs/VehicleLocalPositionV0.md)
|
||||
- [VehicleStatusV0](/msg_docs/VehicleStatusV0.md)
|
||||
- [VehicleStatusV1](/msg_docs/VehicleStatusV1.md)
|
||||
- [VehicleStatusV2](/msg_docs/VehicleStatusV2.md)
|
||||
- [VehicleStatusV3](/msg_docs/VehicleStatusV3.md)
|
||||
- [MAVLink Messaging](/mavlink/index.md)
|
||||
- [Adding Messages](/mavlink/adding_messages.md)
|
||||
- [Streaming Messages](/mavlink/streaming_messages.md)
|
||||
- [MAVLink Profiles](/mavlink/mavlink_profiles.md)
|
||||
- [Receiving Messages](/mavlink/receiving_messages.md)
|
||||
- [Custom MAVLink Messages](/mavlink/custom_messages.md)
|
||||
- [Message Signing](/mavlink/message_signing.md)
|
||||
- [Security Hardening](/mavlink/security_hardening.md)
|
||||
- [Protocols/Microservices](/mavlink/protocols.md)
|
||||
- [Standard Modes Protocol](/mavlink/standard_modes.md)
|
||||
- [uXRCE-DDS (PX4-ROS 2/DDS Bridge)](/middleware/uxrce_dds.md)
|
||||
@@ -866,28 +896,32 @@
|
||||
- [使用 JMAVSim 进行多飞行器仿真](/sim_jmavsim/multi_vehicle.md)
|
||||
- [JSBSim Simulation](/sim_jsbsim/index.md)
|
||||
- [AirSim Simulation](/sim_airsim/index.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [Simulation-In-Hardware](/sim_sih/index.md)
|
||||
- [Hardware Simulation](/simulation/hardware.md)
|
||||
- [HITL Simulation](/simulation/hitl.md)
|
||||
- [SIH on Hardware](/sim_sih/hardware.md)
|
||||
- [Multi-vehicle simulation](/simulation/multi-vehicle-simulation.md)
|
||||
- [平台测试和连续集成](/test_and_ci/index.md)
|
||||
- [试飞](/test_and_ci/test_flights.md)
|
||||
- [测试 MC_01 - 手动模式](/test_cards/mc_01_manual_modes.md)
|
||||
- [测试 MC_02-完全自主](/test_cards/mc_02_full_autonomous.md)
|
||||
- [测试 MC_03 - 自动手动混合](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [测试 MC_04 -故障安全测试](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Multicopter](/test_and_ci/test_flights.md#multicopter)
|
||||
- [测试 MC_01 - 手动模式](/test_cards/mc_01_manual_modes.md)
|
||||
- [测试 MC_02-完全自主](/test_cards/mc_02_full_autonomous.md)
|
||||
- [测试 MC_03 - 自动手动混合](/test_cards/mc_03_auto_manual_mix.md)
|
||||
- [测试 MC_04 -故障安全测试](/test_cards/mc_04_failsafe_testing.md)
|
||||
- [Test MC_05 - Manual Modes (Inside)](/test_cards/mc_05_indoor_flight_manual_modes.md)
|
||||
- [Test MC_06 - Optical Flow (Inside)](/test_cards/mc_06_optical_flow.md)
|
||||
- [Test MC_07 - Optical Flow Low Mount](/test_cards/mc_07_optical_flow_low_mount.md)
|
||||
- [Test MC_08 - DSHOT ESC](/test_cards/mc_08_dshot.md)
|
||||
- [Test MC_09 - VIO (Visual-Inertial Odometry)](/test_cards/mc_09_vio.md)
|
||||
- [Test MC_10 - Optical Flow / GPS Mixed](/test_cards/mc_10_optical_flow_gps_mixed.md)
|
||||
- [Fixed Wing](/test_and_ci/test_flights.md#fixed-wing)
|
||||
- [Test FW_01 - Manual Modes](/test_cards/fw_01_manual_modes.md)
|
||||
- [Test FW_02 - Full Autonomous](/test_cards/fw_02_full_autonomous.md)
|
||||
- [单元测试](/test_and_ci/unit_tests.md)
|
||||
- [Fuzz Tests](/test_and_ci/fuzz_tests.md)
|
||||
- [持续集成](/test_and_ci/continous_integration.md)
|
||||
- [Integration Testing](/test_and_ci/integration_testing.md)
|
||||
- [MAVSDK集成测试](/test_and_ci/integration_testing_mavsdk.md)
|
||||
- [PX4 ROS2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md)
|
||||
- [ROS 1 Integration Testing](/test_and_ci/integration_testing_ros1_mavros.md)
|
||||
- [Docker 容器](/test_and_ci/docker.md)
|
||||
- [维护](/test_and_ci/maintenance.md)
|
||||
|
||||
@@ -923,6 +957,7 @@
|
||||
- [Translation](/contribute/translation.md)
|
||||
- [术语/符号](/contribute/notation.md)
|
||||
- [许可证](/contribute/licenses.md)
|
||||
- [SBOM](/contribute/sbom.md)
|
||||
|
||||
- [版本发布](/releases/index.md)
|
||||
- [Release Process](/releases/release_process.md)
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
# Integration Testing using ROS 1
|
||||
|
||||
This topic explains how to run (and extend) PX4's ROS (1) and MAVROS -based integration tests.
|
||||
|
||||
:::warning
|
||||
This test framework is deprecated.
|
||||
It should be used only for new test cases that _require_ ROS 1.
|
||||
|
||||
[MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md) is preferred when writing new tests.
|
||||
:::
|
||||
|
||||
:::info
|
||||
All PX4 integration tests are executed automatically by our [Continuous Integration](../test_and_ci/continous_integration.md) system.
|
||||
:::
|
||||
|
||||
## 系统必备组件
|
||||
|
||||
- [Gazebo Classic Simulator](../sim_gazebo_classic/index.md)
|
||||
- [ROS and MAVROS](../simulation/ros_interface.md)
|
||||
|
||||
## Execute Tests
|
||||
|
||||
To run the MAVROS tests:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
make <test_target>
|
||||
```
|
||||
|
||||
`test_target` is a makefile targets from the set: _tests_mission_, _tests_mission_coverage_, _tests_offboard_ and _tests_avoidance_.
|
||||
|
||||
Test can also be executed directly by running the test scripts, located under `test/`:
|
||||
|
||||
```sh
|
||||
source <catkin_ws>/devel/setup.bash
|
||||
cd <PX4-Autopilot_clone>
|
||||
make px4_sitl_default sitl_gazebo
|
||||
./test/<test_bash_script> <test_launch_file>
|
||||
```
|
||||
|
||||
例如:
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test
|
||||
```
|
||||
|
||||
Tests can also be run with a GUI to see what's happening (by default the tests run "headless"):
|
||||
|
||||
```sh
|
||||
./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test gui:=true headless:=false
|
||||
```
|
||||
|
||||
The **.test** files launch the corresponding Python tests defined in `integrationtests/python_src/px4_it/mavros/`
|
||||
|
||||
## Write a New MAVROS Test (Python)
|
||||
|
||||
This section explains how to write a new python test using ROS 1/MAVROS, test it, and add it to the PX4 test suite.
|
||||
|
||||
We recommend you review the existing tests as examples/inspiration ([integrationtests/python_src/px4_it/mavros/](https://github.com/PX4/PX4-Autopilot/tree/main/integrationtests/python_src/px4_it/mavros)).
|
||||
The official ROS documentation also contains information on how to use [unittest](https://wiki.ros.org/unittest) (on which this test suite is based).
|
||||
|
||||
To write a new test:
|
||||
|
||||
1. Create a new test script by copying the empty test skeleton below:
|
||||
|
||||
```python
|
||||
#!/usr/bin/env python
|
||||
# [... LICENSE ...]
|
||||
|
||||
#
|
||||
# @author Example Author <author@example.com>
|
||||
#
|
||||
PKG = 'px4'
|
||||
|
||||
import unittest
|
||||
import rospy
|
||||
import rosbag
|
||||
|
||||
from sensor_msgs.msg import NavSatFix
|
||||
|
||||
class MavrosNewTest(unittest.TestCase):
|
||||
"""
|
||||
Test description
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
rospy.init_node('test_node', anonymous=True)
|
||||
rospy.wait_for_service('mavros/cmd/arming', 30)
|
||||
|
||||
rospy.Subscriber("mavros/global_position/global", NavSatFix, self.global_position_callback)
|
||||
self.rate = rospy.Rate(10) # 10hz
|
||||
self.has_global_pos = False
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
#
|
||||
# General callback functions used in tests
|
||||
#
|
||||
def global_position_callback(self, data):
|
||||
self.has_global_pos = True
|
||||
|
||||
def test_method(self):
|
||||
"""Test method description"""
|
||||
|
||||
# FIXME: hack to wait for simulation to be ready
|
||||
while not self.has_global_pos:
|
||||
self.rate.sleep()
|
||||
|
||||
# TODO: execute test
|
||||
|
||||
if __name__ == '__main__':
|
||||
import rostest
|
||||
rostest.rosrun(PKG, 'mavros_new_test', MavrosNewTest)
|
||||
```
|
||||
|
||||
2. Run the new test only
|
||||
- Start the simulator:
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
roslaunch launch/mavros_posix_sitl.launch
|
||||
```
|
||||
|
||||
- Run test (in a new shell):
|
||||
|
||||
```sh
|
||||
cd <PX4-Autopilot_clone>
|
||||
source Tools/simulation/gazebo/setup_gazebo.bash
|
||||
rosrun px4 mavros_new_test.py
|
||||
```
|
||||
|
||||
3. Add new test node to a launch file
|
||||
- In `test/` create a new `<test_name>.test` ROS launch file.
|
||||
- Call the test file using one of the base scripts _rostest_px4_run.sh_ or _rostest_avoidance_run.sh_
|
||||
|
||||
4. (Optional) Create a new target in the Makefile
|
||||
|
||||
- Open the Makefile
|
||||
- Search the _Testing_ section
|
||||
- Add a new target name and call the test
|
||||
|
||||
例如:
|
||||
|
||||
```sh
|
||||
tests_<new_test_target_name>: rostest
|
||||
@"$(SRC_DIR)"/test/rostest_px4_run.sh mavros_posix_tests_<new_test>.test
|
||||
```
|
||||
|
||||
Run the tests as described above.
|
||||
Reference in new issue
Block a user