mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
FlightTask: remove unused _time
This commit is contained in:
@@ -29,7 +29,6 @@ void FlightTask::reActivate()
|
|||||||
bool FlightTask::updateInitialize()
|
bool FlightTask::updateInitialize()
|
||||||
{
|
{
|
||||||
_time_stamp_current = hrt_absolute_time();
|
_time_stamp_current = hrt_absolute_time();
|
||||||
_time = (_time_stamp_current - _time_stamp_activate) / 1e6f;
|
|
||||||
_deltatime = math::min((_time_stamp_current - _time_stamp_last), _timeout) / 1e6f;
|
_deltatime = math::min((_time_stamp_current - _time_stamp_last), _timeout) / 1e6f;
|
||||||
_time_stamp_last = _time_stamp_current;
|
_time_stamp_last = _time_stamp_current;
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,6 @@ protected:
|
|||||||
/* Time abstraction */
|
/* Time abstraction */
|
||||||
static constexpr uint64_t _timeout = 500000; /**< maximal time in us before a loop or data times out */
|
static constexpr uint64_t _timeout = 500000; /**< maximal time in us before a loop or data times out */
|
||||||
|
|
||||||
float _time{}; /**< passed time in seconds since the task was activated */
|
|
||||||
float _deltatime{}; /**< passed time in seconds since the task was last updated */
|
float _deltatime{}; /**< passed time in seconds since the task was last updated */
|
||||||
|
|
||||||
hrt_abstime _time_stamp_activate{}; /**< time stamp when task was activated */
|
hrt_abstime _time_stamp_activate{}; /**< time stamp when task was activated */
|
||||||
|
|||||||
Reference in New Issue
Block a user