aboutsummaryrefslogtreecommitdiff
path: root/src/modules/navigator/rtl.cpp
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-06-12 19:37:25 +0200
committerJulian Oes <julian@oes.ch>2014-06-12 19:37:25 +0200
commit3b39a8a789e347e318375ebe18c583eabec0501c (patch)
tree233588bb3218cc3d3a1f0497c25784385bb45bd6 /src/modules/navigator/rtl.cpp
parent59ae8cc054e941aa28edb2b668732ff4024e1cd5 (diff)
downloadpx4-firmware-3b39a8a789e347e318375ebe18c583eabec0501c.tar.gz
px4-firmware-3b39a8a789e347e318375ebe18c583eabec0501c.tar.bz2
px4-firmware-3b39a8a789e347e318375ebe18c583eabec0501c.zip
navigator: rename update and reset calls to on_active and on_inactive
Diffstat (limited to 'src/modules/navigator/rtl.cpp')
-rw-r--r--src/modules/navigator/rtl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/navigator/rtl.cpp b/src/modules/navigator/rtl.cpp
index 8888c6b62..c1b1d3f09 100644
--- a/src/modules/navigator/rtl.cpp
+++ b/src/modules/navigator/rtl.cpp
@@ -64,7 +64,7 @@ RTL::RTL(Navigator *navigator, const char *name) :
/* load initial params */
updateParams();
/* initial reset */
- reset();
+ on_inactive();
}
RTL::~RTL()
@@ -72,14 +72,14 @@ RTL::~RTL()
}
void
-RTL::reset()
+RTL::on_inactive()
{
_first_run = true;
_rtl_state = RTL_STATE_NONE;
}
bool
-RTL::update(struct position_setpoint_triplet_s *pos_sp_triplet)
+RTL::on_active(struct position_setpoint_triplet_s *pos_sp_triplet)
{
bool updated = false;