Mower challenge
Page 1 of 1

Author:  rustY1023 [ Sun Jul 13, 2014 8:27 pm ]
Post subject:  Mower challenge

Had the program for the Mower Challenge completed and nearly to the end of running it the program froze. Had to close the program and open it again and now it appears the setMotor command is not working.

setMotor(motor 1,35);
setMotor(motor 6,-35);

when this executes the IQ moves forward is picked up, then the motors stop. The setMotor commands are not executed. I tried the moveMotor command and that works.

thanks for your assistance.

Author:  rseniuk [ Sun Jul 13, 2014 9:52 pm ]
Post subject:  Re: Mower challenge

I believe you need to change the > sign to a < sign. The negative numbers from -1 to -87 are larger then -88. They are closer to zero. The joy of negative numbers.

Author:  parkway [ Sun Jul 13, 2014 10:37 pm ]
Post subject:  Re: Mower challenge

Correct. The boolean operators might not have saved when the program froze.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group