Skip to content

Commit 70f5408

Browse files
committed
bug: fixed non-initialization of variables in sim loop
1 parent 858c919 commit 70f5408

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rosflight.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ ROSflight::ROSflight(Board & board, CommLinkInterface & comm_link)
4747
, sensors_(*this)
4848
, state_manager_(*this)
4949
, dt_(0)
50+
, last_time_(0)
51+
, loop_time_us_(0)
5052
{
5153
comm_link.set_listener(&comm_manager_);
5254
params_.set_listeners(param_listeners_, num_param_listeners_);

0 commit comments

Comments
 (0)