forked from Archive/PX4-Autopilot
navigator: update Loiter navigator mode to use new method names
This commit is contained in:
parent
3b39a8a789
commit
e14d475142
|
@ -59,7 +59,7 @@ Loiter::Loiter(Navigator *navigator, const char *name) :
|
|||
/* load initial params */
|
||||
updateParams();
|
||||
/* initial reset */
|
||||
reset();
|
||||
on_inactive();
|
||||
}
|
||||
|
||||
Loiter::~Loiter()
|
||||
|
@ -67,14 +67,14 @@ Loiter::~Loiter()
|
|||
}
|
||||
|
||||
bool
|
||||
Loiter::update(struct position_setpoint_triplet_s *pos_sp_triplet)
|
||||
Loiter::on_active(struct position_setpoint_triplet_s *pos_sp_triplet)
|
||||
{
|
||||
/* set loiter item, don't reuse an existing position setpoint */
|
||||
return set_loiter_item(false, pos_sp_triplet);;
|
||||
}
|
||||
|
||||
void
|
||||
Loiter::reset()
|
||||
Loiter::on_inactive()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -63,12 +63,12 @@ public:
|
|||
/**
|
||||
* This function is called while the mode is inactive
|
||||
*/
|
||||
bool update(struct position_setpoint_triplet_s *pos_sp_triplet);
|
||||
virtual void on_inactive();
|
||||
|
||||
/**
|
||||
* This function is called while the mode is active
|
||||
*/
|
||||
void reset();
|
||||
virtual bool on_active(struct position_setpoint_triplet_s *pos_sp_triplet);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue