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

Files at this revision

API Documentation at this revision

Comitter:
pni_olesik
Date:
Wed Aug 07 23:38:35 2019 +0000
Parent:
8:411c505995a3
Commit message:
em7186.cpp line 927 missing brackets around one of the cases causes a warning, but in later Mbed OS causes an Error.

Changed in this revision

SDFileSystem.lib Show diff for this revision Revisions of this file
SDFileSystemVSG.lib Show annotated file Show diff for this revision Revisions of this file
em7186.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 411c505995a3 -r fd5bf0a4c774 SDFileSystem.lib
--- a/SDFileSystem.lib	Tue Oct 25 23:12:44 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://developer.mbed.org/users/mbed_official/code/SDFileSystem/#7b35d1709458
diff -r 411c505995a3 -r fd5bf0a4c774 SDFileSystemVSG.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystemVSG.lib	Wed Aug 07 23:38:35 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/PNI/code/SDFileSystemVSG/#1824280c9c66
diff -r 411c505995a3 -r fd5bf0a4c774 em7186.cpp
--- 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;