Revision 48741e1f Adafruit_BNO055.h

View differences:

Adafruit_BNO055.h
227 227
      uint8_t self_test_result;
228 228
      uint8_t system_error;
229 229
    } adafruit_bno055_system_status_t;
230
    
231
    typedef enum
232
    {
233
      VECTOR_ACCELEROMETER = BNO055_ACCEL_DATA_X_LSB_ADDR,
234
      VECTOR_MAGNETOMETER  = BNO055_MAG_DATA_X_LSB_ADDR,
235
      VECTOR_GYROSCOPE     = BNO055_GYRO_DATA_X_LSB_ADDR,
236
      VECTOR_EULER         = BNO055_EULER_H_LSB_ADDR,
237
      VECTOR_LINEARACCEL   = BNO055_LINEAR_ACCEL_DATA_X_LSB_ADDR,
238
      VECTOR_GRAVITY       = BNO055_GRAVITY_DATA_X_LSB_ADDR
239
    } adafruit_vector_type_t;
230 240

  
231 241
    Adafruit_BNO055 ( int32_t sensorID = -1, uint8_t address = BNO055_ADDRESS_A );
232 242

  
......
237 247
    void  getSystemStatus     ( adafruit_bno055_system_status_t* );
238 248
    void  displaySystemStatus ( void );
239 249
    
240
    imu::Vector<3> getEuler   ( void );
241
    imu::Vector<3> getAccel   ( void );
250
    imu::Vector<3>  getVector ( adafruit_vector_type_t vector_type );
251
    imu::Quaternion getQuat   ( void );
242 252

  
243 253
    /* Adafruit_Sensor implementation */
244 254
    bool  getEvent  ( sensors_event_t* );

Also available in: Unified diff