mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
46 lines
1.9 KiB
XML
46 lines
1.9 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="vms_ecu_demo" dir="fsae_electric">
|
|
<doc>
|
|
<description>
|
|
A simple module for Viking Motorsports Engine Control Unit demonstration,
|
|
showing it usability for Formula SAE student competition.
|
|
More info at https://wiki.paparazziuav.org/wiki/VMS_ECU
|
|
</description>
|
|
|
|
<section name="ECU">
|
|
<!-- optionally define parameters here -->
|
|
</section>
|
|
</doc>
|
|
|
|
<settings>
|
|
<dl_settings>
|
|
<dl_settings NAME="ECU">
|
|
<dl_setting min="0" max="1" step="1" values="FALSE|TRUE" var="ams_status" type="bool" shortname="AMS_EN" module="modules/fsae_electric/vms_ecu_demo"/>
|
|
<dl_setting min="0" max="1" step="1" values="FALSE|TRUE" var="pwr_ready" type="bool" shortname="PWR_READY" module="modules/fsae_electric/vms_ecu_demo"/>
|
|
<dl_setting min="0" max="1" step="1" values="FALSE|TRUE" var="pwr_stdby" type="bool" shortname="PWR_STDBY" module="modules/fsae_electric/vms_ecu_demo"/>
|
|
<dl_setting min="0" max="1" step="1" values="FALSE|TRUE" var="rtds" type="bool" shortname="RTDS" module="modules/fsae_electric/vms_ecu_demo"/>
|
|
<dl_setting min="0" max="4095" step="1" var="dac_1" type="uint16" shortname="DAC_1" module="modules/fsae_electric/vms_ecu_demo" handler="UpdateDac1"/>
|
|
<dl_setting min="0" max="4095" step="1" var="dac_2" type="uint16" shortname="DAC_2" module="modules/fsae_electric/vms_ecu_demo" handler="UpdateDac2"/>
|
|
</dl_settings>
|
|
</dl_settings>
|
|
</settings>
|
|
|
|
<header>
|
|
<file name="vms_ecu_demo.h"/>
|
|
</header>
|
|
<init fun="vms_ecu_demo_init()"/>
|
|
<periodic fun="vms_ecu_demo_periodic()" freq="10."/>
|
|
<periodic fun="vms_ecu_demo_downlink()" freq="4." autorun="TRUE"/>
|
|
<makefile>
|
|
<file name="vms_ecu_demo.c"/>
|
|
<define name="USE_DAC1" value="1" />
|
|
<define name="USE_DAC2" value="1" />
|
|
|
|
<define name="USE_CAN1" value="1" />
|
|
<define name="USE_CAN2" value="1" />
|
|
|
|
</makefile>
|
|
</module>
|
|
|