You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Firmware/OpenLog_Artemis/settings.h
+80-1Lines changed: 80 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
//Needed for the MS8607 struct below
2
1
#include"SparkFun_PHT_MS8607_Arduino_Library.h"//Click here to get the library: http://librarymanager/All#SparkFun_PHT_MS8607
2
+
#include"SparkFun_ISM330DHCX.h"// Click here to get the library: http://librarymanager/All#SparkFun_6DoF_ISM330DHCX
3
3
4
4
typedefenum
5
5
{
@@ -344,6 +344,85 @@ struct struct_ISM330DHCX {
344
344
boollog= true;
345
345
boollogAccel= true;
346
346
boollogGyro= true;
347
+
boollogDataReady= true;
348
+
//Accelerometer Full Scale
349
+
//#define ISM_2g 0
350
+
//#define ISM_16g 1
351
+
//#define ISM_4g 2
352
+
//#define ISM_8g 3
353
+
intaccelScale=ISM_4g;
354
+
//Acceleromter Output Data Rate
355
+
//#define ISM_XL_ODR_OFF 0
356
+
//#define ISM_XL_ODR_12Hz5 1
357
+
//#define ISM_XL_ODR_26Hz 2
358
+
//#define ISM_XL_ODR_52Hz 3
359
+
//#define ISM_XL_ODR_104Hz 4
360
+
//#define ISM_XL_ODR_208Hz 5
361
+
//#define ISM_XL_ODR_416Hz 6
362
+
//#define ISM_XL_ODR_833Hz 7
363
+
//#define ISM_XL_ODR_1666Hz 8
364
+
//#define ISM_XL_ODR_3332Hz 9
365
+
//#define ISM_XL_ODR_6667Hz 10
366
+
//#define ISM_XL_ODR_1Hz6 11
367
+
intaccelRate=ISM_XL_ODR_208Hz;
368
+
boolaccelFilterLP2= true;
369
+
//Accel Regular Performance Filter Settings
370
+
//#define ISM_HP_PATH_DISABLE_ON_OUT 0x00
371
+
//#define ISM_SLOPE_ODR_DIV_4 0x10
372
+
//#define ISM_HP_ODR_DIV_10 0x11
373
+
//#define ISM_HP_ODR_DIV_20 0x12
374
+
//#define ISM_HP_ODR_DIV_45 0x13
375
+
//#define ISM_HP_ODR_DIV_100 0x14
376
+
//#define ISM_HP_ODR_DIV_200 0x15
377
+
//#define ISM_HP_ODR_DIV_400 0x16
378
+
//#define ISM_HP_ODR_DIV_800 0x17
379
+
//#define ISM_HP_REF_MD_ODR_DIV_10 0x31
380
+
//#define ISM_HP_REF_MD_ODR_DIV_20 0x32
381
+
//#define ISM_HP_REF_MD_ODR_DIV_45 0x33
382
+
//#define ISM_HP_REF_MD_ODR_DIV_100 0x34
383
+
//#define ISM_HP_REF_MD_ODR_DIV_200 0x35
384
+
//#define ISM_HP_REF_MD_ODR_DIV_400 0x36
385
+
//#define ISM_HP_REF_MD_ODR_DIV_800 0x37
386
+
//#define ISM_LP_ODR_DIV_10 0x01
387
+
//#define ISM_LP_ODR_DIV_20 0x02
388
+
//#define ISM_LP_ODR_DIV_45 0x03
389
+
//#define ISM_LP_ODR_DIV_100 0x04
390
+
//#define ISM_LP_ODR_DIV_200 0x05
391
+
//#define ISM_LP_ODR_DIV_400 0x06
392
+
//#define ISM_LP_ODR_DIV_800 0x07
393
+
intaccelSlopeFilter=ISM_LP_ODR_DIV_100;
394
+
//Gyroscope Full Scale
395
+
//#define ISM_125dps 2
396
+
//#define ISM_250dps 0
397
+
//#define ISM_500dps 4
398
+
//#define ISM_1000dps 8
399
+
//#define ISM_2000dps 12
400
+
//#define ISM_4000dps 1
401
+
intgyroScale=ISM_250dps;
402
+
//Gyroscope Output Data Rate
403
+
//#define ISM_GY_ODR_OFF 0
404
+
//#define ISM_GY_ODR_12Hz 1
405
+
//#define ISM_GY_ODR_26Hz 2
406
+
//#define ISM_GY_ODR_52Hz 3
407
+
//#define ISM_GY_ODR_104Hz 4
408
+
//#define ISM_GY_ODR_208Hz 5
409
+
//#define ISM_GY_ODR_416Hz 6
410
+
//#define ISM_GY_ODR_833Hz 7
411
+
//#define ISM_GY_ODR_1666Hz 8
412
+
//#define ISM_GY_ODR_3332Hz 9
413
+
//#define ISM_GY_ODR_6667Hz 10
414
+
intgyroRate=ISM_GY_ODR_208Hz;
415
+
boolgyroFilterLP1= true;
416
+
//Gyro Bandwidth set
417
+
//#define ISM_ULTRA_LIGHT 0
418
+
//#define ISM_VERY_LIGHT 1
419
+
//#define ISM_LIGHT 2
420
+
//#define ISM_MEDIUM 3
421
+
//#define ISM_STRONG 4
422
+
//#define ISM_VERY_STRONG 5
423
+
//#define ISM_AGGRESSIVE 6
424
+
//#define ISM_XTREME 7
425
+
intgyroLP1BW=ISM_MEDIUM;
347
426
unsigned long powerOnDelayMillis=minimumQwiicPowerOnDelay; // Wait for at least this many millis before communicating with this device. Increase if required!
0 commit comments