Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

nullSensor.h

Committer:
mjr
Date:
2016-02-07
Revision:
44:b5ac89b9cd5d
Parent:
35:e959ffba78fd
Child:
47:df7a88cd249c

File content as of revision 44:b5ac89b9cd5d:

// Null plunger sensor
//
// This file defines a class that provides the plunger sensor interface
// that the main program expects, but with no physical sensor underneath.

#ifndef NULLSENSOR_H
#define NULLSENSOR_H

#include "plunger.h"

class PlungerSensorNull: public PlungerSensor
{
public:
    PlungerSensorNull() { }
    
    virtual void init() { }
    virtual bool lowResScan(float &pos) { return false; }
    virtual bool highResScan(float &pos) { return false; }
};

#endif /* NULLSENSOR_H */