mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
selfcheck.py: skip optical_flow check if it's not running
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user