AP_Param: add set_and_notify to vectors

This commit is contained in:
Francisco Ferreira 2016-11-12 23:34:13 +00:00 committed by Tom Pittenger
parent 4c8d151190
commit a3fcebc501
1 changed files with 7 additions and 0 deletions

View File

@ -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) {