Scripting - Custom Movement Panel

How To Add This Control To Your Project

Step #1) Load the most recent release of EZ-Builder
Step #2) Press the Project tab from the top menu bar of EZ-Builder
Step #3) Press Add Control from the button ribbon bar of EZ-Builder
Step #4) Choose the Scripting category tab
Step #5) Press the Custom Movement Panel icon to add the control to your project


Description

If your robot requires a movement/motor controller that is not supported, use this control. You may assign EZ-Script commands to different directions. Also, there are EZ-Script functions available to you to obtain the current selected speed of both Left and Right wheels. You may modify the speed using SetSpeed(value). The speed values may be altered by any joystick style control that affects speed, such as the Joystick in Mobile Interface or a physical joystick using the Joystick Control.

Available EZ-Script functions to obtain the current speed are...

GetSpeed( )
Returns the global Movement Speed value
Speed is between 0 and 255
The speed can be viewed in the Script Variable Viewer
Example: $x = GetSpeed()

GetSpeedLeft( )
Returns the global Movement Speed value of Left wheel
Speed is between 0 and 255
The speed can be viewed in the Script Variable Viewer
Example: $x = GetSpeedLeft()

GetSpeedRight( )
Returns the global Movement Speed value of Right wheel
Speed is between 0 and 255
The speed can be viewed in the Script Variable Viewer
Example: $x = GetSpeedRight()


Related Tutorials & Activities

Movement Panels

Movement Panels

One of the powerful features of EZ-Builder is the concept of Movement Panels. A Movement Panel is a control which is responsible for how your robot moves in directions (forward, left, right, stop, r...

Last Modified on 2/11/2017

Created by EZ-Robot


Control More Than One Robot

How to control more than one robot in a single EZ-Builder project. This tutorial uses Revolution robots that depend on the Auto Position control, but the similar approach can be used for any robot styles.

Last Modified on 2/7/2017

Created by ezrobot


Related Articles: Script , Script Manager