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
nullSensor.h@48:058ace2aed1d, 2016-02-26 (annotated)
- Committer:
- mjr
- Date:
- Fri Feb 26 18:42:03 2016 +0000
- Revision:
- 48:058ace2aed1d
- Parent:
- 47:df7a88cd249c
- Child:
- 52:8298b2a73eb2
New plunger processing 1
Who changed what in which revision?
User | Revision | Line number | New 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 | 48:058ace2aed1d | 17 | virtual bool read(PlungerReading &r) { return false; } |
mjr | 17:ab3cec0c8bf4 | 18 | }; |
mjr | 17:ab3cec0c8bf4 | 19 | |
mjr | 35:e959ffba78fd | 20 | #endif /* NULLSENSOR_H */ |