Shop OBEX P1 Docs P2 Docs Learn Events
(Serial+servoEngine)+PING = Crash?!?!?! — Parallax Forums

(Serial+servoEngine)+PING = Crash?!?!?!

MicrocontrolledMicrocontrolled Posts: 2,461
edited 2010-08-27 14:57 in Propeller 1
If I run the PING sensor on my remote controlled robot, the system will crash after a while of operation.
I had this problem on a different robot that eventually made me put it away because I can find no cure. If I remove the PING sensor from the code, it works fine. Otherewise, all I get is error. The periods of time before it crashes are random, ranging from a few seconds to 5 minutes, but it always happens. The batteries are fine.
I am controlling it wirelessly with an Xbee-enabled remote.

Can someone help please??

Thanks,
Micro

Comments

  • KyeKye Posts: 2,200
    edited 2010-08-27 14:57
    Try increasing the stack size in the servoEngine. I calculated the stack size to be 6 longs using the stackSizeObject but maybe somehow its not enough.

    Or, it could be the ping's problem.
Sign In or Register to comment.