CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_DDS/Idl/ardupilot_msgs/srv/ModeSwitch.idl
Views: 1801
// 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;
    };
  };
};