Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FastIO FastPWM USBDevice
Diff: nullSensor.h
- 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 */