diff --git a/APMrover2/mode.h b/APMrover2/mode.h index 03b6f9e271..0bc45847fa 100644 --- a/APMrover2/mode.h +++ b/APMrover2/mode.h @@ -37,6 +37,10 @@ public: // Constructor Mode(); + // do not allow copying + Mode(const Mode &other) = delete; + Mode &operator=(const Mode&) = delete; + // enter this mode, returns false if we failed to enter bool enter();