|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Macros | |
| #define | MAG_ADDR_READ 0x61 |
| #define | MAG_ADDR_WRITE 0x60 |
| #define | MAG_READ_REG 0x00 |
| #define | MAG_READ_LEN 0x07 |
| #define | MAG_WRITE_REG 0x09 |
| #define | MAG_WRITE_DATA 0x01 |
Functions | |
| void | setup () |
| void | loop () |
| bool | writeControlBit (sfe_hub_sensor_settings_t toWrite) |
Variables | |
| ISM330DH | myISM |
| sfe_ism_data_t | accelData |
| sfe_ism_data_t | gyroData |
| sfe_hub_sensor_settings_t | readMMC |
| sfe_hub_sensor_settings_t | writeMMC |
| uint8_t | shRawData [MAG_READ_LEN] = {} |
| unsigned int | magXVal |
| unsigned int | magYVal |
| unsigned int | magZVal |
| double | normalizedX |
| double | normalizedY |
| double | normalizedZ |
| #define MAG_ADDR_READ 0x61 |
Definition at line 34 of file example3_sensor_hub.ino.
Referenced by setup().
| #define MAG_ADDR_WRITE 0x60 |
Definition at line 35 of file example3_sensor_hub.ino.
Referenced by setup().
| #define MAG_READ_LEN 0x07 |
Definition at line 38 of file example3_sensor_hub.ino.
| #define MAG_READ_REG 0x00 |
Definition at line 37 of file example3_sensor_hub.ino.
Referenced by setup().
| #define MAG_WRITE_DATA 0x01 |
Definition at line 43 of file example3_sensor_hub.ino.
Referenced by setup().
| #define MAG_WRITE_REG 0x09 |
Definition at line 42 of file example3_sensor_hub.ino.
Referenced by setup().
| void loop | ( | ) |
Definition at line 141 of file example3_sensor_hub.ino.
References accelData, delay(), gyroData, ISM_GY_ODR_104Hz, ISM_XL_ODR_104Hz, MAG_READ_LEN, magXVal, magYVal, magZVal, myISM, normalizedX, normalizedY, normalizedZ, readMMC, Serial, shRawData, writeControlBit(), and writeMMC.
| void setup | ( | void | ) |
Definition at line 66 of file example3_sensor_hub.ino.
References delay(), ISM_4g, ISM_500dps, ISM_GY_ODR_104Hz, ISM_LP_ODR_DIV_100, ISM_MEDIUM, ISM_SH_ODR_104Hz, ISM_XL_ODR_104Hz, MAG_ADDR_READ, MAG_ADDR_WRITE, MAG_READ_LEN, MAG_READ_REG, MAG_WRITE_DATA, MAG_WRITE_REG, myISM, readMMC, Serial, writeControlBit(), and writeMMC.
| bool writeControlBit | ( | sfe_hub_sensor_settings_t | toWrite | ) |
Definition at line 227 of file example3_sensor_hub.ino.
References delay(), delayMicroseconds(), ISM_GY_ODR_OFF, ISM_XL_ODR_104Hz, ISM_XL_ODR_OFF, and myISM.
| sfe_ism_data_t accelData |
Definition at line 48 of file example3_sensor_hub.ino.
| sfe_ism_data_t gyroData |
Definition at line 49 of file example3_sensor_hub.ino.
| unsigned int magXVal |
Definition at line 58 of file example3_sensor_hub.ino.
Referenced by loop().
| unsigned int magYVal |
Definition at line 59 of file example3_sensor_hub.ino.
Referenced by loop().
| unsigned int magZVal |
Definition at line 60 of file example3_sensor_hub.ino.
Referenced by loop().
| ISM330DH myISM |
Definition at line 45 of file example3_sensor_hub.ino.
| double normalizedX |
Definition at line 62 of file example3_sensor_hub.ino.
Referenced by loop().
| double normalizedY |
Definition at line 63 of file example3_sensor_hub.ino.
Referenced by loop().
| double normalizedZ |
Definition at line 64 of file example3_sensor_hub.ino.
Referenced by loop().
| sfe_hub_sensor_settings_t readMMC |
Definition at line 54 of file example3_sensor_hub.ino.
| uint8_t shRawData[MAG_READ_LEN] = {} |
Definition at line 57 of file example3_sensor_hub.ino.
Referenced by loop().
| sfe_hub_sensor_settings_t writeMMC |
Definition at line 54 of file example3_sensor_hub.ino.