mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 01:41:36 +08: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) {
|
if (changed) {
|
||||||
orb_copy(ORB_ID(actuator_controls_0), _t_actuator_controls_0, &controls);
|
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;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user