Modified to run on Renesas GR Peach board
Dependencies: EthernetInterface HTTP-Server Webpage mbed-rpc mbed-src
Fork of HTTPServer_echoback by
Adafruit_10DOF.h
00001 /*************************************************************************** 00002 This is a library for the Adafruit 10DOF Breakout 00003 00004 Designed specifically to work with the Adafruit 10DOF Breakout 00005 00006 These displays use I2C to communicate, 2 pins are required to interface. 00007 00008 Adafruit invests time and resources providing this open source code, 00009 please support Adafruit andopen-source hardware by purchasing products 00010 from Adafruit! 00011 00012 Written by Kevin Townsend for Adafruit Industries. 00013 BSD license, all text above must be included in any redistribution 00014 ***************************************************************************/ 00015 #ifndef __ADAFRUIT_10DOF_H__ 00016 #define __ADAFRUIT_10DOF_H__ 00017 00018 #include "Adafruit_Sensor.h" 00019 //#include <Adafruit_Sensor.h> 00020 //#include <Adafruit_LSM303_U.h> 00021 //#include <Adafruit_BMP085_U.h> 00022 //#include <Adafruit_L3GD20_U.h> 00023 00024 00025 /** Sensor axis */ 00026 typedef enum 00027 { 00028 SENSOR_AXIS_X = (1), 00029 SENSOR_AXIS_Y = (2), 00030 SENSOR_AXIS_Z = (3) 00031 } sensors_axis_t; 00032 00033 /* Driver for the the 10DOF breakout sensors */ 00034 class Adafruit_10DOF 00035 { 00036 public: 00037 Adafruit_10DOF(void); 00038 bool begin(void); 00039 00040 bool accelGetOrientation ( sensors_event_t *event, sensors_vec_t *orientation ); 00041 bool magTiltCompensation ( sensors_axis_t axis, sensors_event_t *mag_event, sensors_event_t *accel_event ); 00042 bool magGetOrientation ( sensors_axis_t axis, sensors_event_t *event, sensors_vec_t *mag_orientation ); 00043 bool fusionGetOrientation ( sensors_event_t *accel_event, sensors_event_t *mag_event, sensors_vec_t *orientation ); 00044 00045 private: 00046 }; 00047 00048 #endif
Generated on Tue Jul 12 2022 19:53:07 by 1.7.2