Caddx gm3 gimbal control.
Can be used with actuators SBUS (1 wire) or PWM (multiple wires). Define a servo named GIMBAL_CADDX_ROLL in airframe to activate roll control.
Example for airframe file
Add to your firmware section:
<module name="gimbal_caddx_gm3"/>
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.
- gimbal_caddx_gm3_periodic()
- Frequency in Hz: 10.0
- 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 gimbal_caddx_gm3.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="gimbal_caddx_gm3" dir="cam_control" task="control">
<doc>
<description>
Caddx gm3 gimbal control.
Can be used with actuators SBUS (1 wire) or PWM (multiple wires).
Define a servo named GIMBAL_CADDX_ROLL in airframe to activate roll control.
</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="gimbal gm3">
<dl_setting MAX="60." MIN="-60." STEP="1." module="cam_control/gimbal_caddx_gm3" VAR="gimbal_caddx_gm3_roll" shortname="roll" unit="rad" alt_unit="deg"/>
</dl_settings>
</dl_settings>
</settings>
<dep>
<depends>cam_gimbal</depends>
</dep>
<header>
<file name="gimbal_caddx_gm3.h"/>
</header>
<init fun="gimbal_caddx_gm3_init()"/>
<periodic fun="gimbal_caddx_gm3_periodic()" freq="10.0"/>
<makefile>
<file name="gimbal_caddx_gm3.c"/>
<test/>
</makefile>
</module>