auto_arm parameter for services

This commit is contained in:
Oleg Kalachev
2017-11-29 19:55:57 +03:00
parent 0c6f6c29ae
commit 81d3843817
13 changed files with 13 additions and 2 deletions

View File

@@ -278,7 +278,9 @@ def handle(req):
current_msg.header.stamp = stamp
current_pub.publish(current_msg)
offboard_and_arm()
if req.auto_offboard:
offboard_and_arm()
return {'success': True}
except Exception as e: