Telescope Control Library

Dependents:   PushToGo-F429

Revision:
10:e356188d208e
Parent:
9:d0413a9b1386
--- a/PEC.h	Mon Sep 10 02:41:05 2018 -0400
+++ b/PEC.h	Fri Sep 14 01:30:55 2018 -0400
@@ -7,16 +7,16 @@
 
 #ifndef PUSHTOGO_PEC_H_
 #define PUSHTOGO_PEC_H_
-
 #include "mbed.h"
-#include "Axis.h"
 
 // Maximum correctable error per step, in arcsecond
 #define MAX_PEC_VALUE 20
 
+class Axis;
+
 class PEC {
 public:
-	PEC(Axis a);
+	PEC(Axis &a);
 	virtual ~PEC() {
 		thread->terminate();
 		delete thread;
@@ -61,7 +61,7 @@
 	}
 
 protected:
-	Axis axis;
+	Axis &axis;
 	volatile bool enabled;
 	Thread *thread;