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

@@ -71,7 +71,6 @@ add_service_files(
SetAttitudeYawRate.srv
SetRatesYaw.srv
SetRates.srv
GetTelemetry.srv
)
## Generate actions in the 'action' folder

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:

View File

@@ -4,6 +4,7 @@ float32 yaw
float32 thrust
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -2,6 +2,7 @@ float32 roll
float32 pitch
float32 yaw_rate
float32 thrust
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 z
float32 yaw
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 z
float32 yaw
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 z
float32 yaw_rate
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 z
float32 yaw_rate
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -2,6 +2,7 @@ float32 pitch_rate
float32 roll_rate
float32 yaw_rate
float32 thrust
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 yaw
float32 thrust
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 vz
float32 yaw
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

View File

@@ -4,6 +4,7 @@ float32 vz
float32 yaw_rate
string frame_id
bool update_frame
bool auto_arm
---
bool success
string message

Binary file not shown.