forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools : Added custom ROS-2 serivce definition for switching drive modes
- Loading branch information
1 parent
8e7b6e6
commit 82ac1b6
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# This service requests the vehicle to switch its drive/flight mode | ||
|
||
# mode : Set the value to the drive/flight mode to be used | ||
# Copter : https://github.com/ArduPilot/ardupilot/blob/master/ArduCopter/mode.h#L14 | ||
# Rover : https://github.com/ArduPilot/ardupilot/blob/master/Rover/mode.h#L12 | ||
# Plane : https://github.com/ArduPilot/ardupilot/blob/master/ArduPlane/mode.h#L22 | ||
|
||
int8 mode | ||
--- | ||
# status : True if the request for mode switch was successful, False otherwise | ||
# curr_mode : Returns the code for the current drive/flight mode , after the processing the request | ||
|
||
bool status | ||
int8 curr_mode |