![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
SENtral Simple Serial Host interface for PNI Sensor Corp SENtral-A2 motion coprocessor. For use with the RM3100RTI Arduino shield module on top of an STM4 serial mbed board. Will work with an PNI RM3100RTI module or M&M motion modules. Interaction with unit using built in USB serial serial port set for 115200 baud. Send '?' char for menu. Presently requires SENtral firmware to either be loaded in the RM3100RTI Arduino shield SD Card or preloaded in the RM3100RTI or M&M module's EEPROM. Firmware is typically preloaded on the module's EEPROM by PNI. PNI Sensor, 2019 www.pnicorp.com
Dependencies: mbed SDFileSystemVSG
SENtral Simple Serial Host interface for PNI Sensor Corp SENtral-A2 motion coprocessor. For use with the RM3100RTI Arduino shield module on top of an STM4 serial mbed board. Will work with an PNI RM3100RTI module or M&M motion modules. Interaction with unit using built in USB serial serial port set for 115200 baud. Send '?' char for menu. Presently requires SENtral firmware to either be loaded in the RM3100RTI Arduino shield SD Card or preloaded in the RM3100RTI or M&M module's EEPROM. Firmware is typically preloaded on the module's EEPROM by PNI. PNI Sensor, 2019 www.pnicorp.com
Diff: em7186.cpp
- Revision:
- 9:fd5bf0a4c774
- Parent:
- 6:4ba3f9a8191f
--- a/em7186.cpp Tue Oct 25 23:12:44 2016 +0000 +++ b/em7186.cpp Wed Aug 07 23:38:35 2019 +0000 @@ -913,6 +913,7 @@ } case SENSOR_TYPE_RAW_ACCEL: case SENSOR_TYPE_RAW_GYRO: + { SensorData3Axis sensorData; float* fPacket = (float*)&buffer[7]; sensorData.x = 256 * (s8)buffer[2] + buffer[1]; //s16 will convert to float here @@ -922,6 +923,7 @@ if (printData) printf("%u %s: %3.0f, %3.0f, %3.0f, %3.1f\n\r", timestamp, em7186_sensor_name[sensorId], sensorData.x, sensorData.y, sensorData.z, sensorData.extra); if (logData) fprintf(flog,"%u,%u,%f,%f,%f,%f\n", timestamp,sensorId, sensorData.x, sensorData.y, sensorData.z, sensorData.extra); return 11; + } case SENSOR_TYPE_RAW_MAG: //jm modified to s32 for RM3100 { SensorData3Axis sensorData;