Custom ring buffer written from scratch to allow data collection at a rigid rate, while allowing writing that data to either serial or an SD card whenever time allows.

Dependents:   SpindleBot_1_5b

Files at this revision

API Documentation at this revision

Comitter:
labmrd
Date:
Mon Apr 06 21:10:08 2015 +0000
Parent:
0:01fb4588b738
Child:
2:da00ed8a1cd5
Commit message:
Here have code

Changed in this revision

ServoRingBuffer.h Show annotated file Show diff for this revision Revisions of this file
--- a/ServoRingBuffer.h	Mon Jan 26 04:25:56 2015 +0000
+++ b/ServoRingBuffer.h	Mon Apr 06 21:10:08 2015 +0000
@@ -23,7 +23,7 @@
 // Define a structure hierarchy for storing data
 struct servoData {
     unsigned short pos;
-    unsigned short force;
+    unsigned int force;
 };
 struct spindleData {
     servoData myServoData[NUMBER_OF_SPINDLES];