Revision 378858ec

View differences:

Adafruit_BNO055.cpp
95 95
  write8(BNO055_UNIT_SEL_ADDR, unitsel);
96 96
  */
97 97

  
98
  /* Configure axis mapping (see section 3.4) */
99
  /*
100
  write8(BNO055_AXIS_MAP_CONFIG_ADDR, REMAP_CONFIG_P2); // P0-P7, Default is P1
101
  delay(10);
102
  write8(BNO055_AXIS_MAP_SIGN_ADDR, REMAP_SIGN_P2); // P0-P7, Default is P1
103
  delay(10);
104
  */
105
  
98 106
  write8(BNO055_SYS_TRIGGER_ADDR, 0x0);
99 107
  delay(10);
100 108
  /* Set the requested operating mode (see section 3.3) */
Adafruit_BNO055.h
218 218
      OPERATION_MODE_NDOF                                     = 0X0C
219 219
    } adafruit_bno055_opmode_t;
220 220

  
221
    typedef enum
222
    {
223
      REMAP_CONFIG_P0                                         = 0x21,
224
      REMAP_CONFIG_P1                                         = 0x24, // default
225
      REMAP_CONFIG_P2                                         = 0x24,
226
      REMAP_CONFIG_P3                                         = 0x21,
227
      REMAP_CONFIG_P4                                         = 0x24,
228
      REMAP_CONFIG_P5                                         = 0x21,
229
      REMAP_CONFIG_P6                                         = 0x21,
230
      REMAP_CONFIG_P7                                         = 0x24
231
    } adafruit_bno055_axis_remap_config_t;
232

  
233
    typedef enum
234
    {
235
      REMAP_SIGN_P0                                           = 0x04,
236
      REMAP_SIGN_P1                                           = 0x00, // default
237
      REMAP_SIGN_P2                                           = 0x06,
238
      REMAP_SIGN_P3                                           = 0x02,
239
      REMAP_SIGN_P4                                           = 0x03,
240
      REMAP_SIGN_P5                                           = 0x01,
241
      REMAP_SIGN_P6                                           = 0x07,
242
      REMAP_SIGN_P7                                           = 0x05
243
    } adafruit_bno055_axis_remap_sign_t;
244

  
221 245
    typedef struct
222 246
    {
223 247
      uint8_t  accel_rev;

Also available in: Unified diff