From b6bba0428adc5a1a7b0178fcbc4d6face022a595 Mon Sep 17 00:00:00 2001 From: Claudio Micheli Date: Tue, 3 Sep 2019 14:51:00 +0200 Subject: [PATCH] uavcan: fix limit actuator poll interval. Signed-off-by: Claudio Micheli --- src/drivers/uavcan/uavcan_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/uavcan/uavcan_main.cpp b/src/drivers/uavcan/uavcan_main.cpp index a8d7ea15b9..fad2e46832 100644 --- a/src/drivers/uavcan/uavcan_main.cpp +++ b/src/drivers/uavcan/uavcan_main.cpp @@ -1058,7 +1058,7 @@ UavcanNode::subscribe() if (_control_subs[i] >= 0) { _poll_ids[i] = add_poll_fd(_control_subs[i]); - orb_set_interval(_control_subs[i], 1000000 / UavcanEscController::MAX_RATE_HZ); + orb_set_interval(_control_subs[i], 1000 / UavcanEscController::MAX_RATE_HZ); } } }