navigator: rename update and reset calls to on_active and on_inactive

This commit is contained in:
Julian Oes
2014-06-12 19:37:25 +02:00
parent 59ae8cc054
commit 3b39a8a789
7 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -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;