mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[actuator] change configuration of actuators (#3548)
* [actuator] change configuration of actuators - add a configuration structure to the actuators array - limit the use of macros - add a shell command to get and set actuator value - update config for all boards * fix actuator faulhaber for NPS * add missing file in actuators nps
This commit is contained in:
committed by
GitHub
parent
c0416dfcbc
commit
5cda539646
@@ -16,7 +16,11 @@
|
||||
<makefile>
|
||||
<define name="ACTUATORS"/>
|
||||
<file name="actuators.c"/>
|
||||
<test/>
|
||||
<test>
|
||||
<define name="ACTUATORS_NB"/>
|
||||
<define name="ACTUATORS_CONFIG" value="{0}"/>
|
||||
<define name="USE_SHELL"/>
|
||||
</test>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
</header>
|
||||
<makefile>
|
||||
<configure name="DSHOT_BIDIR" default="FALSE"/>
|
||||
<file name="actuators_dshot.c"/>
|
||||
<file_arch name="actuators_dshot_arch.c"/>
|
||||
<file_arch name="esc_dshot.c" cond="ifeq ($(RTOS),chibios)"/>
|
||||
<file_arch name="hal_stm32_dma.c" dir="mcu_periph" cond="ifeq ($(RTOS),chibios)"/>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<provides>actuators</provides>
|
||||
</dep>
|
||||
<makefile target="sim|nps">
|
||||
<file name="actuators_pwm.c"/>
|
||||
<file_arch name="actuators_pwm_arch.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
@@ -13,9 +13,11 @@
|
||||
<header>
|
||||
<file name="actuators_pwm.h"/>
|
||||
</header>
|
||||
<makefile target="!sim">
|
||||
<makefile>
|
||||
<file name="actuators_pwm.c"/>
|
||||
<file_arch name="actuators_pwm_arch.c"/>
|
||||
<file_arch name="actuators_shared_arch.c" cond="ifeq ($(ARCH), stm32)"/>
|
||||
<test/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user