Breadcrumbs

set_robot_speed_mode(speed_mode)

Feature

This is a function for setting and changing the speed mode currently being operated by the controller.

Parameters

Parameter Name

Data Type

Default Value

Description

speed_mode

int8

-

Robot Speed mode

0 : normal mode

1 : reduced mode

Return

Value

Description

0

Failed

1

Success

Example

Bash
if get_robot_speed_mode() == SPEED_REDUCED_MODE:
    #When in deceleration mode, change to constant speed mode
set_robot_speed_mode(SPEED_NORMAL_MODE)