From 72cf1b4e5704283238315e3ea71d9d817d12081a Mon Sep 17 00:00:00 2001 From: "DrZiplok@gmail.com" Date: Sat, 27 Nov 2010 20:30:53 +0000 Subject: [PATCH] Add a default ctor; due to 0 being magic, PID pid(0) is ambiguous. git-svn-id: https://arducopter.googlecode.com/svn/trunk@959 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/PID/PID.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/PID/PID.h b/libraries/PID/PID.h index a25082cd1b..f2d4ac8acc 100644 --- a/libraries/PID/PID.h +++ b/libraries/PID/PID.h @@ -12,6 +12,14 @@ /// @brief Object managing one PID control class PID { public: + /// Constructor + /// + /// A PID constructed in this fashion does not support save/restore. + /// + PID() : + _address(0) + {} + /// Constructor /// /// @param address EEPROM base address at which PID parameters