MPU6050 Accelerometer Gyro Temperature icon MPU6050 Accelerometer Gyro Temperature — Reads MPU6050 gyro, accelerometer and temperature via I2C, initializes and returns data on-demand to EZ-Script variables using ControlCommand RunOnce Try it →
Asked — Edited
I Got My Navigation Working. . .

I Got My Navigation Working. . .

This is GREAT News for me. But, I can't seem to make it stop without turning the ezb off. I put a voice command to stop the script, but it keeps right on going. Is there a simple way I can place it inside of the navigation script instead of outside in the speech recognition?

any help would be apreciated.

Thanks,


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

Stopping a script won't stop the robot. You will need to Stop() also.

A script executes a bunch of commands. The commands are listed in order and read from the top to the bottom. Each command performs a specific function. For example, the command Forward() will instruct the active Movement Panel to begin moving forward. If Forward() is your only command in a script, then the robot will drive forward for ever unless told to Stop(), Left(), Right or Reverse().

In your Speech Command, stop the script, then Stop()


ControlCommand(ScriptStop, "My Script")
Stop()
#2  

OK, that is what I was doing wrong. Thanks. You are a SuperMan!

:D

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

anytime dude!

#4  

Stupid question. But, how would I put two commands on the same line in speech recognition?

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#5  

When editing any single line script, press the little icon to the right. It will open the multi-line dialog.

User-inserted image

#7  

MEL you should post your EZB file in EZ-Cloud for others to use if needed