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/Tools/ros2/ardupilot_msgs/srv/ModeSwitch.srv
Views: 1800

# 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://mavlink.io/en/messages/ardupilotmega.html#COPTER_MODE
# Rover  : https://mavlink.io/en/messages/ardupilotmega.html#ROVER_MODE
# Plane  : https://mavlink.io/en/messages/ardupilotmega.html#PLANE_MODE

uint8 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
uint8 curr_mode