United Kingdom
Asked — Edited

Set Command In ARC Script

There appears to be a bug in the SET script command it causes a compiler syntax error when used. I'm using ToggleDigital as a workaround for now


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

PRO
Synthiam
#1  

Oh my! I will take a look at it tonight

PRO
Synthiam
#2  

Hello!

I looked at the command, and I can not duplicate the error. The command appears to work fine. Reference the script help along the side for the command example...


Set (digitalPort, [on/off])
Set a digital port state to either on or off
Example: Set(D2, OFF)
United Kingdom
#3  

Just tried it again and it works now?

It's a simple piece of code to switch the Omnibot eyes on/off when you pass near his ping sensor

Ping_Wait(D2,D3, lower, 30) set(D12,on) set(D13,on) Ping_Wait(D2,D3, Higher, 30 set(D12,off) set(D13,off)

Repeat on

Perhaps it was the previous ARC ver which I can't test

Thanks for looking:) :)