mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
px4io: small change after perf_counter API change
This commit is contained in:
@@ -1256,7 +1256,7 @@ PX4IO::io_set_control_state(unsigned group)
|
||||
|
||||
if (changed) {
|
||||
orb_copy(ORB_ID(actuator_controls_0), _t_actuator_controls_0, &controls);
|
||||
perf_set(_perf_sample_latency, hrt_elapsed_time(&controls.timestamp_sample));
|
||||
perf_set_elapsed(_perf_sample_latency, hrt_elapsed_time(&controls.timestamp_sample));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user