Asked — Edited

Stop Script

Here is a stop script for all functions for all robots. NOTE: You will have to configure some commands to fit your robot. Feel free to change/add things yourself. Copy and paste (ctrl+c[copy], ctrl+v[paste])

Stop()

StopAudio()

DroneEmergency()

SpeakStop()

MP3TriggerStop(d0, 38400)

GPSStop(latitude, longitude, resolution)

Halt()

Sleep(1500)

StopAudio()


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

A couple of little things, to ensure your (and our) EZ-Robot experience is nice and smooth...

  1. Try and use the correct forum sections, I noticed you have also put this in hardware again.
  2. Using the UBB codes (on the right ---> ) for Code help show the script a bit better.

And as for the script, it's a good start, but a couple of pointers;

GPSStop will stop when the GPS meets the coordinates specified. So in effect will move the robot to the GPS coordinates.

Quote:

GPSStop( latitude, longitude, resolution ) Uses the attached GPS control and stops the Movement Panel when the coordinates are within the specified resolution for the latitude and longitude. Example: GPSStop( 54.01438, -110.4931, 0.0005)

Anything after Halt() does not get executed.

Keep playing, it's the best way to learn, and I'm usually here to correct anyone (provided I can correct them).

#2  

ok i posted it under hardware by mistake.(Why do i do thst?) i posted it to see what responces i will get. thanks for the halt() tip.

#3  
Stop()

StopAudio()

DroneEmergency()

SpeakStop()

MP3TriggerStop(d0, 38400)

Halt()
Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#4  

Yep, that's better. However you needn't use Halt() as it will stop when it gets to the end anyway. I rarely use Halt() (In fact I don't think I ever have used it) but it can come in handy to stop a script running if an IF loop needs to stop it for any reason.

#5  

Hello !

How do I stop a script from running since I cannot input any key attached script while it's running ? Is there a way ?

Best, Elfege

#6  

Hi. there is ControlCommand(script, scriptstop)

Don't forget to put quotes around the scripts name. I canet because of my quoutation glitch

Example: EItes hot and it doesnet cool downE

#7  

Thank you. I wrote the script into Keyboard control so my new question is where am I supposed to find the name of the script ?

#8  

I guess I'll have to use script manager...