Skip to content

Commit

Permalink
Add proposed flight mode service
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Dec 20, 2018
1 parent 6e9d9b8 commit 42b525e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
10 changes: 5 additions & 5 deletions proposed_aerial_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ add_message_files(
FILES
AngularVelocity.msg
Attitude.msg
FlightMode.msg
GlobalPosition.msg
GlobalWaypoints.msg
LinearAcceleration.msg
Expand All @@ -61,11 +62,10 @@ add_message_files(
)

## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
add_service_files(
FILES
SetFlightMode.srv
)

## Generate actions in the 'action' folder
# add_action_files(
Expand Down
8 changes: 8 additions & 0 deletions proposed_aerial_msgs/msg/FlightMode.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# targeting mav_msgs
uint8 FLIGHT_MODE_DISARMED=0
uint8 FLIGHT_MODE_ARMED=1
uint8 FLIGHT_MODE_FLYING=2
uint8 FLIGHT_MODE_LANDED=3
uint8 FLIGHT_MODE_RTL=4

uint8 flight_mode # The flight mode indicated
8 changes: 8 additions & 0 deletions proposed_aerial_msgs/srv/SetFlightMode.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# targeting mav_msgs

#mav_msgs/
FlightMode goal # The desired flight mode
---
#mav_msgs/
FlightMode result # The resultant state after the attempted transition.
bool success # True if desired change was executed False otherwise.

0 comments on commit 42b525e

Please sign in to comment.