mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
auto_arm parameter for services
This commit is contained in:
@@ -71,7 +71,6 @@ add_service_files(
|
||||
SetAttitudeYawRate.srv
|
||||
SetRatesYaw.srv
|
||||
SetRates.srv
|
||||
GetTelemetry.srv
|
||||
)
|
||||
|
||||
## Generate actions in the 'action' folder
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 yaw
|
||||
float32 thrust
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -2,6 +2,7 @@ float32 roll
|
||||
float32 pitch
|
||||
float32 yaw_rate
|
||||
float32 thrust
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 z
|
||||
float32 yaw
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 z
|
||||
float32 yaw
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 z
|
||||
float32 yaw_rate
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 z
|
||||
float32 yaw_rate
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -2,6 +2,7 @@ float32 pitch_rate
|
||||
float32 roll_rate
|
||||
float32 yaw_rate
|
||||
float32 thrust
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 yaw
|
||||
float32 thrust
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -4,6 +4,7 @@ float32 vz
|
||||
float32 yaw
|
||||
string frame_id
|
||||
bool update_frame
|
||||
bool auto_arm
|
||||
---
|
||||
bool success
|
||||
string message
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user