- Announcement about May 10th, 2018 update and your password.
stopping/starting multiple cogs
I'm having a problem with identifying cogs to be able to start and stop them. I've seen the examples in the pe kit and prop manual. I tried the example in the prop manual , but the compiler said I need a unique variable when I used cogid instead of cog1 (or 2). Also with the prop manual example i'm not sure how to control multiple cogs. The code will compile the way I have it below, but does not work.
var long servostack 
long servo2stack 
halt:=1 'input changes state of halt and is intended to stop a cog
.....other unrelated code here.....
cogstop( cog1) (cogstop for cog2 is the same as this group of code)