mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
refactor(flight_mode_manager/tasks/Orbit): convert params.c to module.yaml
Convert parameter definition(s) from legacy C format to YAML module configuration.
This commit is contained in:
parent
d46b1dcfea
commit
963a8757df
@ -34,6 +34,7 @@
|
||||
px4_add_library(FlightTaskOrbit
|
||||
FlightTaskOrbit.cpp
|
||||
)
|
||||
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/flight_task_orbit_params.yaml)
|
||||
|
||||
target_link_libraries(FlightTaskOrbit PUBLIC FlightTaskManualAltitudeSmoothVel SlewRate)
|
||||
target_include_directories(FlightTaskOrbit PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
module_name: Orbit
|
||||
parameters:
|
||||
- group: Flight Task Orbit
|
||||
definitions:
|
||||
MC_ORBIT_RAD_MAX:
|
||||
description:
|
||||
short: Maximum radius of orbit
|
||||
type: float
|
||||
default: 1000.0
|
||||
unit: m
|
||||
min: 1.0
|
||||
max: 10000.0
|
||||
increment: 0.5
|
||||
decimal: 1
|
||||
MC_ORBIT_YAW_MOD:
|
||||
description:
|
||||
short: Yaw behaviour during orbit flight
|
||||
type: enum
|
||||
values:
|
||||
0: Front to Circle Center
|
||||
1: Hold Initial Heading
|
||||
2: Uncontrolled
|
||||
3: Hold Front Tangent to Circle
|
||||
4: Manually (yaw stick) Controlled
|
||||
default: 0
|
||||
Loading…
x
Reference in New Issue
Block a user