uavcan: limit actuator controls poll interval

* rather than only in UavcanEscController updates
This commit is contained in:
Daniel Agar
2019-09-02 14:21:54 -04:00
committed by GitHub
parent 6938955b8d
commit 9f5f9c577e
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1058,6 +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);
}
}
}