diff options
author | M.H.Kabir <mhkabir98@gmail.com> | 2014-12-27 23:01:31 +0530 |
---|---|---|
committer | M.H.Kabir <mhkabir98@gmail.com> | 2014-12-27 23:01:31 +0530 |
commit | d40168dc4b46f922b1be76dcf8a6a37a675788ae (patch) | |
tree | c5b3226d00bfc09bd8d1de114b7231f3b942167b /src/drivers/drv_sensor.h | |
parent | c29972424f6d7b99633c8497f0c25ab7cda4d2ca (diff) | |
download | px4-firmware-d40168dc4b46f922b1be76dcf8a6a37a675788ae.tar.gz px4-firmware-d40168dc4b46f922b1be76dcf8a6a37a675788ae.tar.bz2 px4-firmware-d40168dc4b46f922b1be76dcf8a6a37a675788ae.zip |
Add support for rotations of PX4flow
Diffstat (limited to 'src/drivers/drv_sensor.h')
-rw-r--r-- | src/drivers/drv_sensor.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/drivers/drv_sensor.h b/src/drivers/drv_sensor.h index 8e8b2c1b9..5e4598de8 100644 --- a/src/drivers/drv_sensor.h +++ b/src/drivers/drv_sensor.h @@ -82,8 +82,19 @@ #define SENSORIOCGQUEUEDEPTH _SENSORIOC(3) /** - * Reset the sensor to its default configuration. + * Reset the sensor to its default configuration */ #define SENSORIOCRESET _SENSORIOC(4) -#endif /* _DRV_SENSOR_H */
\ No newline at end of file +/** + * Set the sensor orientation + */ +#define SENSORIOCSROTATION _SENSORIOC(5) + +/** + * Get the sensor orientation + */ +#define SENSORIOCGROTATION _SENSORIOC(6) + +#endif /* _DRV_SENSOR_H */ + |