Breadcrumbs

get_robot_mode()

Features

This function reads the current operating mode of the robot controller.

Return

Value

Description

ROBOT_MODE_MANUAL (0)

Robot mode is manual.

ROBOT_MODE_AUTONOMOUS (1)

Robot mode is auto.

Example

Bash
#...
if get_robot_mode() != ROBOT_MODE_AUTONOMOUS: 	        
set_robot_mode(ROBOT_MODE_AUTONOMOUS)
#...