mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
37a86bb389
This PR allows to redefine the outer-loop for stabilization and guidance, and to specify the guidance model for something else than a quarotor (but still not an hybrid). Two use case are proposed: - replace the PD control of the outer-loop (still used by default) by and Hinfinity controller - parametrize the guidance for an hexa-copter with tilted motors, allowing to produce side force for lateral motion control.
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="guidance_indi_base" dir="guidance" task="control">
|
|
<doc>
|
|
<description>
|
|
Base guidance controller for rotorcraft using INDI
|
|
Requires a model, e.g. quadrotor, fully_actuated, ...
|
|
</description>
|
|
</doc>
|
|
<settings>
|
|
<dl_settings>
|
|
<dl_settings NAME="guidance_indi">
|
|
<dl_setting var="guidance_indi_pos_gain" min="0" step="0.1" max="10.0" shortname="kp" param="GUIDANCE_INDI_POS_GAIN" persistent="true"/>
|
|
<dl_setting var="guidance_indi_speed_gain" min="0" step="0.1" max="10.0" shortname="kd" param="GUIDANCE_INDI_SPEED_GAIN" persistent="true"/>
|
|
<dl_setting var="guidance_indi_max_bank" min="0" step="0.1" max="80.0" shortname="max_bank" param="GUIDANCE_H_MAX_BANK" unit="rad" alt_unit="deg"/>
|
|
</dl_settings>
|
|
</dl_settings>
|
|
</settings>
|
|
<dep>
|
|
<depends>@navigation,guidance_rotorcraft</depends>
|
|
<provides>guidance,attitude_command</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="guidance_indi.h"/>
|
|
</header>
|
|
<init fun="guidance_indi_init()"/>
|
|
<init fun="guidance_indi_enter()"/>
|
|
<makefile target="ap|nps" firmware="rotorcraft">
|
|
<file name="guidance_indi.c" dir="$(SRC_FIRMWARE)/guidance"/>
|
|
<define name="GUIDANCE_PID_USE_AS_DEFAULT" value="FALSE"/>
|
|
<define name="GUIDANCE_INDI_USE_AS_DEFAULT" value="TRUE"/>
|
|
</makefile>
|
|
</module>
|