Camera control on roll axis only
No detailed description...
Example for airframe file
Add to your firmware section:
<module name="cam_roll"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- cam_periodic()
- Frequency in Hz: 10.
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw cam_roll.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="cam_roll" dir="cam_control">
<doc>
<description>Camera control on roll axis only</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="Cam">
<dl_setting MAX="45" MIN="-45" STEP="1" VAR="cam_roll_phi" module="cam_control/cam_roll" shortname="phi" unit="rad" alt_unit="deg" auto="true">
</dl_setting>
<dl_setting MAX="1" MIN="0" STEP="1" VAR="cam_roll_mode" module="cam_control/cam_roll" shortname="manual - stablzd">
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="cam.h"/>
</header>
<init fun="cam_init()"/>
<periodic fun="cam_periodic()" freq="10."/>
<makefile>
<define name="MOBILE_CAM"/>
<file name="cam_roll.c"/>
</makefile>
</module>