AP_DDS: add IDL for ArmMotors and ModeSwitch services

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
This commit is contained in:
Rhys Mainwaring 2023-09-05 10:17:39 +01:00 committed by Peter Barker
parent 67d84a9a5a
commit 7897f7bfe7
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// generated from rosidl_adapter/resource/srv.idl.em
// with input from ardupilot_msgs/srv/ArmMotors.srv
// generated code does not contain a copyright notice
module ardupilot_msgs {
module srv {
struct ArmMotors_Request {
@verbatim (language="comment", text=
"This service requests the vehicle to arm or disarm its motors." "\n"
"Set true to arm motors, false to disarm motors.")
boolean arm;
};
@verbatim (language="comment", text=
"True if arming/disarming request for motors was successful , false otherwise. ")
struct ArmMotors_Response {
boolean result;
};
};
};

View File

@ -0,0 +1,26 @@
// generated from rosidl_adapter/resource/srv.idl.em
// with input from ardupilot_msgs/srv/ModeSwitch.srv
// generated code does not contain a copyright notice
module ardupilot_msgs {
module srv {
struct ModeSwitch_Request {
@verbatim (language="comment", text=
"This service requests the vehicle to switch its drive/flight mode" "\n"
"mode : Set the value to the drive/flight mode to be used" "\n"
"Copter : https://mavlink.io/en/messages/ardupilotmega.html#COPTER_MODE" "\n"
"Rover : https://mavlink.io/en/messages/ardupilotmega.html#ROVER_MODE" "\n"
"Plane : https://mavlink.io/en/messages/ardupilotmega.html#PLANE_MODE")
uint8 mode;
};
@verbatim (language="comment", text=
"status : True if the request for mode switch was successful, False otherwise" "\n"
"curr_mode : Returns the code for the current drive/flight mode , after the processing the request")
struct ModeSwitch_Response {
boolean status;
uint8 curr_mode;
};
};
};