Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
Plunger/nullSensor.h@116:7a67265d7c19, 2021-10-01 (annotated)
- Committer:
- arnoz
- Date:
- Fri Oct 01 08:19:46 2021 +0000
- Revision:
- 116:7a67265d7c19
- Parent:
- 86:e30a1f60f783
- Correct information regarding your last merge
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 | 86:e30a1f60f783 | 14 | PlungerSensorNull() : PlungerSensor(65535) { } |
mjr | 17:ab3cec0c8bf4 | 15 | |
mjr | 35:e959ffba78fd | 16 | virtual void init() { } |
mjr | 86:e30a1f60f783 | 17 | virtual bool readRaw(PlungerReading &r) { return false; } |
mjr | 52:8298b2a73eb2 | 18 | virtual uint32_t getAvgScanTime() { return 0; } |
mjr | 17:ab3cec0c8bf4 | 19 | }; |
mjr | 17:ab3cec0c8bf4 | 20 | |
mjr | 35:e959ffba78fd | 21 | #endif /* NULLSENSOR_H */ |