Skip to content
Snippets Groups Projects
Commit 09e563ad authored by Matthias Grob's avatar Matthias Grob Committed by Beat Küng
Browse files

mc_pos_control: fix naming of non-member time stamps

parent 0ba38960
No related branches found
No related tags found
No related merge requests found
...@@ -575,7 +575,7 @@ MulticopterPositionControl::print_status() ...@@ -575,7 +575,7 @@ MulticopterPositionControl::print_status()
void void
MulticopterPositionControl::run() MulticopterPositionControl::run()
{ {
hrt_abstime _time_stamp_last_loop = hrt_absolute_time(); // time stamp of last loop iteration hrt_abstime time_stamp_last_loop = hrt_absolute_time(); // time stamp of last loop iteration
// initialize all subscriptions // initialize all subscriptions
_vehicle_status_sub = orb_subscribe(ORB_ID(vehicle_status)); _vehicle_status_sub = orb_subscribe(ORB_ID(vehicle_status));
...@@ -611,9 +611,9 @@ MulticopterPositionControl::run() ...@@ -611,9 +611,9 @@ MulticopterPositionControl::run()
parameters_update(false); parameters_update(false);
// measure _dt the time difference since the last loop iteration in seconds // measure _dt the time difference since the last loop iteration in seconds
const hrt_abstime _time_stamp_current = hrt_absolute_time(); const hrt_abstime time_stamp_current = hrt_absolute_time();
setDt((_time_stamp_current - _time_stamp_last_loop) / 1e6f); setDt((time_stamp_current - time_stamp_last_loop) / 1e6f);
_time_stamp_last_loop = _time_stamp_current; time_stamp_last_loop = time_stamp_current;
const bool was_in_failsafe = _in_failsafe; const bool was_in_failsafe = _in_failsafe;
_in_failsafe = false; _in_failsafe = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment