Files
paparazzi/conf/modules/servo_tester.xml
T
Ewoud Smeur 6ffd819f33 Module with servo tester function (#2001)
useful for identifying the response of a servo
2017-02-12 14:36:23 +01:00

37 lines
1.4 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="servo_tester" dir="servo_tester">
<doc>
<description>
Servo tester
Has a setting to change the input to the servo in millisecond units.
You have to give the servo you want to test the name SERVO_TEST, and don't use
it in the command laws.
Additionally, you can make the servo do a series of step maneuvers, with increasing
amplitude. Tip: Open up the servo and measure the voltage on the potmeter with
a high speed recorder device (like a saleae Logic analyzer with analog inputs). This
will let you model the response of the servo.
</description>
<define name="TIME_PER_DEFLECTION" value="0.8" description="Time between servo steps for the 'servo_run' feature"/>
</doc>
<settings>
<dl_settings NAME="Servo test">
<dl_settings NAME="Servo tester">
<dl_setting var="servo_test_val" min="1000" step="1" max="2000" module="modules/servo_tester/servo_tester" shortname="servo_input"/>
<dl_setting var="do_servo_run" min="0" step="1" max="1" module="modules/servo_tester/servo_tester" values="Off|On" shortname="servo_run"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="servo_tester.h"/>
</header>
<init fun="servo_tester_init()"/>
<periodic fun="servo_tester_periodic()" freq="512"/>
<makefile>
<file name="servo_tester.c"/>
</makefile>
</module>