From a3fcebc501618aae2e111d716f0582e8ffc56679 Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Sat, 12 Nov 2016 23:34:13 +0000 Subject: [PATCH] AP_Param: add set_and_notify to vectors --- libraries/AP_Param/AP_Param.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 826a62c97e..f5568d9a4e 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -636,6 +636,13 @@ public: _value = v; } + /// Value setter - set value, tell GCS + /// + void set_and_notify(const T &v) { + set(v); + notify(); + } + /// Combined set and save /// bool set_and_save(const T &v) {