Write a Blockly program that controls the speed of a motor based on joystick movement. The joystick ranges from 0 to 100 on each axis.

Blockly
when joystick moved
   set xSpeed to joystick x-axis value
   set ySpeed to joystick y-axis value
   set motorSpeed to sqrt(xSpeed^2 + ySpeed^2)

Related Questions