selfcheck.py: skip optical_flow check if it's not running

This commit is contained in:
Oleg Kalachev
2022-11-11 05:46:58 +06:00
parent 5afbcff949
commit cb1773b708

View File

@@ -605,6 +605,10 @@ def check_global_position():
@check('Optical flow')
def check_optical_flow():
if not is_process_running('optical_flow', full=True):
info('optical_flow is not running')
return
# TODO:check FPS!
try:
rospy.wait_for_message('mavros/px4flow/raw/send', OpticalFlowRad, timeout=0.5)