diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-08 19:15:45 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-08 19:15:45 +0100 |
commit | be140eab5998fbec8c485e58e6f61a5ef950053b (patch) | |
tree | 311df3cd50de8b5c843eaf37506f31d582684471 /src/modules/navigator/geofence.cpp | |
parent | 501dc0cfa7259a1916522e5b70a5fd31cb7d20e1 (diff) | |
download | px4-firmware-be140eab5998fbec8c485e58e6f61a5ef950053b.tar.gz px4-firmware-be140eab5998fbec8c485e58e6f61a5ef950053b.tar.bz2 px4-firmware-be140eab5998fbec8c485e58e6f61a5ef950053b.zip |
geofence: make better use of Block class for updating parameters
Diffstat (limited to 'src/modules/navigator/geofence.cpp')
-rw-r--r-- | src/modules/navigator/geofence.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/navigator/geofence.cpp b/src/modules/navigator/geofence.cpp index 9bbaf167a..f452a85f7 100644 --- a/src/modules/navigator/geofence.cpp +++ b/src/modules/navigator/geofence.cpp @@ -55,11 +55,13 @@ #endif static const int ERROR = -1; -Geofence::Geofence() : _fence_pub(-1), +Geofence::Geofence() : + SuperBlock(NULL, "GF"), + _fence_pub(-1), _altitude_min(0), _altitude_max(0), _verticesCount(0), - param_geofence_on(NULL, "GF_ON", false) + param_geofence_on(this, "ON") { /* Load initial params */ updateParams(); @@ -292,8 +294,3 @@ int Geofence::clearDm() { dm_clear(DM_KEY_FENCE_POINTS); } - -void Geofence::updateParams() -{ - param_geofence_on.update(); -} |