mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-06 05:34:09 -04:00
ArduCopter: added config.h and defines.h to support CONFIG_BARO
This commit is contained in:
parent
04ea979331
commit
62844d8ddc
@ -52,6 +52,7 @@
|
|||||||
# define CONFIG_RELAY DISABLED
|
# define CONFIG_RELAY DISABLED
|
||||||
# define MAG_ORIENTATION AP_COMPASS_APM2_SHIELD
|
# define MAG_ORIENTATION AP_COMPASS_APM2_SHIELD
|
||||||
# define CONFIG_SONAR_SOURCE SONAR_SOURCE_ANALOG_PIN
|
# define CONFIG_SONAR_SOURCE SONAR_SOURCE_ANALOG_PIN
|
||||||
|
# define CONFIG_BARO AP_BARO_MS5611
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -133,6 +134,14 @@
|
|||||||
# define CONFIG_RELAY ENABLED
|
# define CONFIG_RELAY ENABLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Barometer
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef CONFIG_BARO
|
||||||
|
# define CONFIG_BARO AP_BARO_BMP085
|
||||||
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Sonar
|
// Sonar
|
||||||
//
|
//
|
||||||
|
@ -354,4 +354,7 @@ enum gcs_severity {
|
|||||||
#define APM_HARDWARE_APM1 1
|
#define APM_HARDWARE_APM1 1
|
||||||
#define APM_HARDWARE_APM2 2
|
#define APM_HARDWARE_APM2 2
|
||||||
|
|
||||||
|
#define AP_BARO_BMP085 1
|
||||||
|
#define AP_BARO_MS5611 2
|
||||||
|
|
||||||
#endif // _DEFINES_H
|
#endif // _DEFINES_H
|
||||||
|
Loading…
Reference in New Issue
Block a user