- Apologies if this has been raised before -
I had a problem that sometimes the timer variable was not counting.
It would only count reliably if you turned the robot on twice, ON - OFF-ON , or used the hardware reset pin.
It would not count, if you left it off for 15 seconds (Capacitors discharged?)
The problem seems to be caused by a bug that meant that my settimer command was executed twice at the start of a robot race.
The settimer command was
settimer count 65535
I was using "timer" to count wheel rotations, and know when to stop at the end of the race. The bug meant that it never stopped.
It does work reliably if you put a "settimer off" command before the settimer command - you can then call it twice with impunity.
Pic Chip: 28x2
----------------
- Before I produce a full report, has anyone ever met this problem?
Dr_John
I had a problem that sometimes the timer variable was not counting.
It would only count reliably if you turned the robot on twice, ON - OFF-ON , or used the hardware reset pin.
It would not count, if you left it off for 15 seconds (Capacitors discharged?)
The problem seems to be caused by a bug that meant that my settimer command was executed twice at the start of a robot race.
The settimer command was
settimer count 65535
I was using "timer" to count wheel rotations, and know when to stop at the end of the race. The bug meant that it never stopped.
It does work reliably if you put a "settimer off" command before the settimer command - you can then call it twice with impunity.
Pic Chip: 28x2
----------------
- Before I produce a full report, has anyone ever met this problem?
Dr_John