Fix airspeed sensor support for APM2.

Airspeed sensor should be attached to Analog input 0
This commit is contained in:
Doug Weibel 2012-01-15 16:12:08 -07:00
parent 17b3e514dc
commit 17b31d0b5b
1 changed files with 5 additions and 6 deletions

View File

@ -165,10 +165,10 @@
# endif # endif
#elif CONFIG_PITOT_SOURCE == PITOT_SOURCE_ANALOG_PIN #elif CONFIG_PITOT_SOURCE == PITOT_SOURCE_ANALOG_PIN
# ifndef CONFIG_PITOT_SOURCE_ANALOG_PIN # ifndef CONFIG_PITOT_SOURCE_ANALOG_PIN
# define CONFIG_PITOT_SOURCE_ANALOG_PIN AN4 # define CONFIG_PITOT_SOURCE_ANALOG_PIN 0
# endif # endif
#else #else
# warning Invalid value for CONFIG_PITOT_SOURCE, disabling sonar # warning Invalid value for CONFIG_PITOT_SOURCE, disabling airspeed
# undef PITOT_ENABLED # undef PITOT_ENABLED
# define PITOT_ENABLED DISABLED # define PITOT_ENABLED DISABLED
#endif #endif
@ -177,10 +177,9 @@
# define SONAR_TYPE MAX_SONAR_LV // MAX_SONAR_XL, # define SONAR_TYPE MAX_SONAR_LV // MAX_SONAR_XL,
#endif #endif
/* In ArduPlane PITOT usually takes the place of SONAR, but some bits #ifndef SONAR_ENABLED
* still depend on SONAR. #define SONAR_ENABLED DISABLED
*/ #endif
#define SONAR_ENABLED PITOT_ENABLED
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// HIL_MODE OPTIONAL // HIL_MODE OPTIONAL