mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
simple_offboard: error on lack of mavros/state
This commit is contained in:
@@ -307,7 +307,7 @@ handle_lock = Lock()
|
||||
def handle(req):
|
||||
global current_pub, current_msg, current_req
|
||||
|
||||
if not state.connected:
|
||||
if not state or not state.connected:
|
||||
return {'message': 'No connection to the FCU'}
|
||||
|
||||
if isinstance(req, srv.NavigateRequest) and req.speed <= 0:
|
||||
|
||||
Reference in New Issue
Block a user