Trilateration Based Local Position System

Dependents:   TDP_main_BartFork TDP_main TDP_main TDP_main_fork

Revision:
2:21ca29888540
Parent:
1:b71a1c39d263
Child:
3:dd68ac680416
--- a/LPS.h	Tue Mar 10 00:02:29 2015 +0000
+++ b/LPS.h	Wed Mar 11 01:20:56 2015 +0000
@@ -82,19 +82,18 @@
         // Special function used for reading in and storing all 9 distances needed for calibration, abuse _3D_Vector to optimise memory
         void updateCalibrationDistances();
         
-        
-                
-        // Calculates the coordinates based off of received timings/Calibration mode, values are dependent on mode (Calibrate or Acquire)
-        // Passing by reference just saves a bit of memery (and time?)
-        float calcX(float t1, float t2, float d);
-        float calcY(float t1, float t3, float i, float j, float x);
-        float calcZ(float t1, float x, float y);
-        
         // Calculate all the necessary unitX, unitY, unitZ, i, d, and j values
         void calcUnitVectorsAndScalars();
         
 };
 
+         
+// Calculates the coordinates based off of received timings/Calibration mode, values are dependent on mode (Calibrate or Acquire)
+// Passing by reference just saves a bit of memery (and time?)
+float calcX(float t1, float t2, float d);
+float calcY(float t1, float t3, float i, float j, float x);
+float calcZ(float t1, float x, float y);
+
 // Static functions that don't belong to the object
 _3D_Vector addFourVectors(_3D_Vector a, _3D_Vector b, _3D_Vector c, _3D_Vector d);
 _3D_Vector scaleVector(_3D_Vector a, float scale);