Stuttering moters usually due to multiple setmotor cmd

Regarding this post in “official answer section”

The usual source of “stuttering motors” is setting the same motor in multiple places in the code; Often due to one JoysticktoMotor command, AND additional if/then/else setmotor() commands for the same motors.

The code posted in link above is a typical example of the usual.