force_mode_set_damping(damping)

Sets the damping parameter in force mode.

Parameters

damping:

Between 0 and 1, default value is 0.005

A value of 1 is full damping, so the robot will decelerate quickly if no force is present. A value of 0 is no damping, here the robot will maintain the speed.

The value is stored until this function is called again. Add this to the beginning of your program to ensure it is called before force mode is entered (otherwise default value will be used).