1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

adding sonar support from sbaron, disabled by default.

docs: http://www.rcgroups.com/forums/showpost.php?p=21903320&postcount=3827

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@166 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop 2012-06-15 13:53:49 +00:00
parent 09de7d7d03
commit 4366c7f0d4
9 changed files with 2710 additions and 2540 deletions

View file

@ -45,7 +45,8 @@ typedef enum {
FEATURE_GYRO_SMOOTHING = 1 << 7,
FEATURE_LED_RING = 1 << 8,
FEATURE_GPS = 1 << 9,
FEATURE_FAILSAFE = 1 << 10
FEATURE_FAILSAFE = 1 << 10,
FEATURE_SONAR = 1 << 11,
} AvailableFeatures;
typedef void (* sensorInitFuncPtr)(void); // sensor init prototype
@ -92,6 +93,7 @@ typedef struct sensor_t
#define MAG
#define BARO
#define LEDRING
// #define SONAR
#endif
@ -136,5 +138,6 @@ typedef struct sensor_t
#include "drv_mpu6050.h"
#include "drv_pwm.h"
#include "drv_uart.h"
#include "drv_hcsr04.h"
#endif