mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
Merge branch 'master' of github.com:paparazzi/paparazzi into fastperiodic
This commit is contained in:
@@ -168,9 +168,6 @@
|
|||||||
<!-- Actuators are automatically chosen according to board -->
|
<!-- Actuators are automatically chosen according to board -->
|
||||||
<subsystem name="control"/>
|
<subsystem name="control"/>
|
||||||
<!-- Sensors -->
|
<!-- Sensors -->
|
||||||
<subsystem name="adc" type="generic">
|
|
||||||
<configure name="ADC_GENERIC1" value="ADC_7"/> <!-- current sensor -->
|
|
||||||
</subsystem>
|
|
||||||
<subsystem name="attitude" type="infrared"/>
|
<subsystem name="attitude" type="infrared"/>
|
||||||
<subsystem name="gps" type="ublox_lea4p"/>
|
<subsystem name="gps" type="ublox_lea4p"/>
|
||||||
<subsystem name="navigation"/>
|
<subsystem name="navigation"/>
|
||||||
@@ -181,4 +178,11 @@
|
|||||||
<target name="setup_actuators" board="tiny_0.99" />
|
<target name="setup_actuators" board="tiny_0.99" />
|
||||||
</firmware>
|
</firmware>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<load name="adc_generic.xml">
|
||||||
|
<define name="ADC_CHANNEL_GENERIC1" value="ADC_7"/> <!-- current sensor -->
|
||||||
|
<define name="USE_ADC_7"/>
|
||||||
|
</load>
|
||||||
|
</modules>
|
||||||
|
|
||||||
</airframe>
|
</airframe>
|
||||||
|
|||||||
@@ -35,9 +35,9 @@
|
|||||||
|
|
||||||
<modules main_freq="60">
|
<modules main_freq="60">
|
||||||
<load name="servo_switch.xml">
|
<load name="servo_switch.xml">
|
||||||
<param name="SERVO_SWITCH_ON_VALUE" value="1100"/>
|
<define name="SERVO_SWITCH_ON_VALUE" value="1100"/>
|
||||||
<param name="SERVO_SWITCH_OFF_VALUE" value="1900"/>
|
<define name="SERVO_SWITCH_OFF_VALUE" value="1900"/>
|
||||||
<param name="SERVO_SWITCH_SERVO" value="SERVO_SWITCH"/>
|
<define name="SERVO_SWITCH_SERVO" value="SERVO_SWITCH"/>
|
||||||
</load>
|
</load>
|
||||||
<load name="sys_mon.xml"/>
|
<load name="sys_mon.xml"/>
|
||||||
</modules>
|
</modules>
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Generic ADC module
|
Generic ADC module
|
||||||
@param ADC_CHANNEL_GENERIC1 on which ADC input 1 is measured
|
@define ADC_CHANNEL_GENERIC1 on which ADC input 1 is measured
|
||||||
@param ADC_CHANNEL_GENERIC2 on which ADC input 2 is measured
|
@define ADC_CHANNEL_GENERIC2 on which ADC input 2 is measured
|
||||||
|
@define USE_ADC_x with x as the number of the ADC input (once for every ADC channel you want to use)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<module name="adc_generic" dir="adcs">
|
<module name="adc_generic" dir="adcs">
|
||||||
@@ -14,8 +15,6 @@
|
|||||||
<periodic fun="adc_generic_periodic()" freq="4"/>
|
<periodic fun="adc_generic_periodic()" freq="4"/>
|
||||||
<makefile target="ap">
|
<makefile target="ap">
|
||||||
<file name="adc_generic.c"/>
|
<file name="adc_generic.c"/>
|
||||||
<define name="USE_$(ADC_CHANNEL_GENERIC1)"/>
|
|
||||||
<define name="USE_$(ADC_CHANNEL_GENERIC2)"/>
|
|
||||||
</makefile>
|
</makefile>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Airspeed ADC module
|
Airspeed ADC module
|
||||||
@param ADC_AIRSPEED on which ADC the sensor is connected
|
@configure ADC_AIRSPEED on which ADC the sensor is connected
|
||||||
@param AIRSPEED_SCALE/AIRSPEED_QUADRATIC_SCALE scale factor, quadratic is used if defined
|
@define AIRSPEED_SCALE/AIRSPEED_QUADRATIC_SCALE scale factor, quadratic is used if defined
|
||||||
@param AIRSPEED_BIAS offset on ADC
|
@define AIRSPEED_BIAS offset on ADC
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<module name="airspeed_adc" dir="sensors">
|
<module name="airspeed_adc" dir="sensors">
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Airspeed ETS module (I2C)
|
Airspeed ETS module (I2C)
|
||||||
@param AIRSPEED_ETS_SCALE scale factor (default 1.8)
|
@define AIRSPEED_ETS_SCALE scale factor (default 1.8)
|
||||||
@param AIRSPEED_ETS_OFFSET offset (default 0)
|
@define AIRSPEED_ETS_OFFSET offset (default 0)
|
||||||
@param AIRSPEED_ETS_I2C_DEV i2c device (default i2c0)
|
@define AIRSPEED_ETS_I2C_DEV i2c device (default i2c0)
|
||||||
@define USE_AIRSPEED to use the data for airspeed control loop
|
@define USE_AIRSPEED to use the data for airspeed control loop
|
||||||
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Bosch BMP085 pressure sensor
|
Bosch BMP085 pressure sensor
|
||||||
@param BMP_I2C_DEV i2c device (default i2c0)
|
@define BMP_I2C_DEV i2c device (default i2c0)
|
||||||
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Baro ETS module (I2C)
|
Baro ETS module (I2C)
|
||||||
@param BARO_ETS_I2C_DEV i2c device (default i2c0)
|
@define BARO_ETS_I2C_DEV i2c device (default i2c0)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<module name="baro_ets" dir="sensors">
|
<module name="baro_ets" dir="sensors">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
VTI SCP1000 pressure sensor (I2C)
|
VTI SCP1000 pressure sensor (I2C)
|
||||||
@param SCP_I2C_DEV i2c device (default i2c0)
|
@define SCP_I2C_DEV i2c device (default i2c0)
|
||||||
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Sensirion SHT25 humidity sensor (I2C)
|
Sensirion SHT25 humidity sensor (I2C)
|
||||||
@param SCP_I2C_DEV i2c device (default i2c0)
|
@define SCP_I2C_DEV i2c device (default i2c0)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<module name="humid_sht_i2c" dir="meteo">
|
<module name="humid_sht_i2c" dir="meteo">
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
<!-- these parameters should be set for that module in the airframe file unless you want the defaults
|
<!-- these parameters should be set for that module in the airframe file unless you want the defaults
|
||||||
Servo value in usec
|
Servo value in usec
|
||||||
<param name="SERVO_SWITCH_ON_VALUE" value="2000"/>
|
<define name="SERVO_SWITCH_ON_VALUE" value="2000"/>
|
||||||
<param name="SERVO_SWITCH_OFF_VALUE" value="1000"/>
|
<define name="SERVO_SWITCH_OFF_VALUE" value="1000"/>
|
||||||
<param name="SERVO_SWITCH_SERVO" value="SERVO_SWITCH"/>
|
<define name="SERVO_SWITCH_SERVO" value="SERVO_SWITCH"/>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<file name="servo_switch.c"/>
|
<file name="servo_switch.c"/>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Hygrosens TEMOD-I2C-Rx temperature sensor
|
Hygrosens TEMOD-I2C-Rx temperature sensor
|
||||||
@param SCP_I2C_DEV i2c device (default i2c0)
|
@define SCP_I2C_DEV i2c device (default i2c0)
|
||||||
@param TEMOD_TYPE device type (default TEMOD_I2C_R1)
|
@define TEMOD_TYPE device type (default TEMOD_I2C_R1)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<module name="temp_temod" dir="meteo">
|
<module name="temp_temod" dir="meteo">
|
||||||
|
|||||||
Reference in New Issue
Block a user