Using robotmesh with Blockly and the kids have driving motors equaling joystick axis A and B, the robot is moving too fast. How can we slow it down with programming? They are using one joystick. There doesn’t appear to be a way to change joystick velocity or motor power with Blocky. Or is there?
If you do math with the joystick value before passing it to the motor, you can do scaling. Here’s an example of cubic scaling with an arcade drive style: https://www.robotmesh.com/studio/5e137c833d68603bcb94b645.
Or just multiple the joystick values by like .8 (80%). Will drop your speeds by 20%. Using a curve (squared function or cube function) makes the super slow at low stick values and super touchy at high stick values.
Here’s another code snippet that uses scaling, the method proposed by John.
Thank you much! We will check these out too!