AP_WheelEncoder: do not permit copies

This commit is contained in:
Peter Barker 2018-07-05 11:27:51 +10:00 committed by Randy Mackay
parent 45ac3e6bb2
commit 21201b8816

View File

@ -34,6 +34,10 @@ public:
AP_WheelEncoder(void);
/* Do not allow copies */
AP_WheelEncoder(const AP_WheelEncoder &other) = delete;
AP_WheelEncoder &operator=(const AP_WheelEncoder&) = delete;
// WheelEncoder driver types
enum WheelEncoder_Type {
WheelEncoder_TYPE_NONE = 0,