[modules] Rotating wing better ADC sensor integration (#3251)

* Make adc sensor mappable from the airframe. Better interface for adc in the rotwing state.

* Added parameters to v3b airframe

* Addressed the comments

* Removed external variable
This commit is contained in:
Tomaso Maria Luigi De Ponti
2024-04-09 11:25:44 +02:00
committed by GitHub
parent 25ec86275f
commit afa93784ed
4 changed files with 30 additions and 5 deletions
+4 -1
View File
@@ -40,7 +40,10 @@
<configure name="USE_TFMINI_AGL" value="TRUE"/>
</module>
<module name="wing_rotation_adc_sensor"/>
<module name="wing_rotation_adc_sensor">
<define name="ADC_WING_ROT_SCALE" value="0.00247111"/>
<define name="ADC_WING_ROT_OFFSET" value="-25.635294"/>
</module>
<!-- <module name="mavlink">
<configure name="MAVLINK_BAUD" value="B115200"/>
@@ -13,6 +13,7 @@
<configure name="ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION" default="ADC_5" case="lower|upper"/>
<define name="ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION" value="$(ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_UPPER)"/>
<define name="USE_$(ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_UPPER)"/>
<define name="ADC_WING_ROTATION" value="TRUE"/>
<file name="wing_rotation_adc_sensor.c"/>
</makefile>
</module>