Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

Committer:
mjr
Date:
Sun Feb 07 03:07:11 2016 +0000
Revision:
44:b5ac89b9cd5d
Parent:
35:e959ffba78fd
Child:
47:df7a88cd249c
Work in progress on CCD speed-ups

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mjr 17:ab3cec0c8bf4 1 // Null plunger sensor
mjr 17:ab3cec0c8bf4 2 //
mjr 17:ab3cec0c8bf4 3 // This file defines a class that provides the plunger sensor interface
mjr 17:ab3cec0c8bf4 4 // that the main program expects, but with no physical sensor underneath.
mjr 17:ab3cec0c8bf4 5
mjr 35:e959ffba78fd 6 #ifndef NULLSENSOR_H
mjr 35:e959ffba78fd 7 #define NULLSENSOR_H
mjr 17:ab3cec0c8bf4 8
mjr 35:e959ffba78fd 9 #include "plunger.h"
mjr 35:e959ffba78fd 10
mjr 35:e959ffba78fd 11 class PlungerSensorNull: public PlungerSensor
mjr 17:ab3cec0c8bf4 12 {
mjr 17:ab3cec0c8bf4 13 public:
mjr 35:e959ffba78fd 14 PlungerSensorNull() { }
mjr 17:ab3cec0c8bf4 15
mjr 35:e959ffba78fd 16 virtual void init() { }
mjr 44:b5ac89b9cd5d 17 virtual bool lowResScan(float &pos) { return false; }
mjr 44:b5ac89b9cd5d 18 virtual bool highResScan(float &pos) { return false; }
mjr 17:ab3cec0c8bf4 19 };
mjr 17:ab3cec0c8bf4 20
mjr 35:e959ffba78fd 21 #endif /* NULLSENSOR_H */