drv_accel: introduce default samplerate

This commit is contained in:
Thomas Gubler 2015-01-28 19:13:03 +01:00
parent b42b6c50d4
commit 0e1832452f
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ ORB_DECLARE(sensor_accel);
/** set the accel internal sample rate to at least (arg) Hz */
#define ACCELIOCSSAMPLERATE _ACCELIOC(0)
#define ACCEL_SAMPLERATE_DEFAULT 1000003 /**< default sample rate */
/** return the accel internal sample rate in Hz */
#define ACCELIOCGSAMPLERATE _ACCELIOC(1)