Revision 491a85fe135be2c495f1fe1c8ad6252af8e15c2c authored by Felix Ruess on 25 September 2013, 16:31:14 UTC, committed by Felix Ruess on 25 September 2013, 20:59:37 UTC
by using new ecef_of_enu_pos_i functions which have enu in meter with INT32_POS_FRAC and ecef with cm instead of everything in cm
1 parent b2b4474
servo_switch.xml
<!DOCTYPE module SYSTEM "module.dtd">
<module name="servo_switch">
<doc>
<description>Servo switch</description>
<define name="SERVO_SWITCH_ON_VALUE" value="pwm" description="servo value in usec"/>
<define name="SERVO_SWITCH_OFF_VALUE" value="pwm" description="servo value in usec"/>
<define name="SERVO_SWITCH_SERVO" value="nb" description="Id of the servo (default: SWITCH)"/>
</doc>
<header>
<file name="servo_switch.h"/>
</header>
<init fun="servo_switch_init()"/>
<periodic fun="servo_switch_periodic()" freq="10."/>
<makefile target="ap|sim|jsbsim|nps">
<!-- these parameters should be set for that module in the airframe file unless you want the defaults
Servo value in usec
<load name="servo_switch.xml">
<define name="SERVO_SWITCH_ON_VALUE" value="2000"/>
<define name="SERVO_SWITCH_OFF_VALUE" value="1000"/>
<define name="SERVO_SWITCH_SERVO" value="SWITCH"/>
</load>
The servo will not exceed the min and max positions defined in the servo section
-->
<file name="servo_switch.c"/>
</makefile>
</module>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...