Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

Revision:
35:e959ffba78fd
Parent:
17:ab3cec0c8bf4
Child:
44:b5ac89b9cd5d
--- a/nullSensor.h	Thu Dec 03 07:34:57 2015 +0000
+++ b/nullSensor.h	Sat Dec 19 06:37:19 2015 +0000
@@ -3,16 +3,19 @@
 // This file defines a class that provides the plunger sensor interface
 // that the main program expects, but with no physical sensor underneath.
 
-const int npix = JOYMAX;
+#ifndef NULLSENSOR_H
+#define NULLSENSOR_H
 
-class PlungerSensor
+#include "plunger.h"
+
+class PlungerSensorNull: public PlungerSensor
 {
 public:
-    PlungerSensor() { }
+    PlungerSensorNull() { }
     
-    void init() { }
-    int lowResScan() { return 0; }
-    bool highResScan(int &pos) { return false; }
-    void sendExposureReport(USBJoystick &) { }
+    virtual void init() { }
+    virtual bool lowResScan(int &pos) { return false; }
+    virtual bool highResScan(int &pos) { return false; }
 };
 
+#endif /* NULLSENSOR_H */