Autopilot GNC specific to fixedwing part
No detailed description...
Example for airframe file
Add to your firmware section:
<module name="autopilot_gnc_fw"/>
Module functions
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- navigation_task()
- Frequency in Hz: NAVIGATION_FREQUENCY
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
- attitude_loop()
- Frequency in Hz: CONTROL_FREQUENCY
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
- monitor_task()
- Frequency in Hz: 1
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Raw autopilot_gnc_fw.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="autopilot_gnc_fw" task="control">
<doc>
<description>
Autopilot GNC specific to fixedwing part
</description>
</doc>
<dep>
<depends>autopilot_gnc</depends>
</dep>
<periodic fun="navigation_task()" freq="NAVIGATION_FREQUENCY" cond="FIXEDWING_FIRMWARE @AND !USE_GENERATED_AUTOPILOT"/>
<periodic fun="attitude_loop()" freq="CONTROL_FREQUENCY" cond="FIXEDWING_FIRMWARE @AND !USE_GENERATED_AUTOPILOT @AND !AHRS_TRIGGERED_ATTITUDE_LOOP"/>
<periodic fun="monitor_task()" freq="1"/>
<makefile target="!fbw"/>
</module>