Page 1 of 2
Display Time Block Bug
Posted: 29 Apr 2011, 06:15
by bungeshea
I have noticed a bug with the Display Number/Display Time blocks from
Team Hassenplug. If you wire a timer into these blocks and place it in a loop, when the timer reaches 33 seconds, instead of displaying 0:33:00 it displays 0:-31:00 and continues counting down in minus until it reaches 0:00:00 and then it starts happening all over again. I have attached a video made with NeXT Screen and Hyper Cam 2, and the test program. Does anyone else experience this bug?
Attachments:
Display Time Bug.zip
(Because the attachment file will not upload, follow the above link to download it from the Mindboards Repository)
Re: Display Time/Number blocks bug
Posted: 29 Apr 2011, 07:07
by mattallen37
studbrickmaster wrote:...I have attached a video ... and the test program...
Where is it?
Display Time Block Bug
Posted: 29 Apr 2011, 07:49
by bungeshea
mattallen37 wrote:studbrickmaster wrote:...I have attached a video ... and the test program...
Where is it?
It was not uploading with the message. I do not know if it is an issue of size (2.1MB) or just phpBB. I have uploaded the file to
here.
Re: Display Time Block Bug
Posted: 29 Apr 2011, 08:09
by timpattinson
studbrickmaster wrote:I have attached a video made with NeXT Screen and Hyper Cam 2, and the test program.
Can't you just use the Capture AVI feature in NXTScreen
Re: Display Time Block Bug
Posted: 29 Apr 2011, 08:37
by bungeshea
timpattinson wrote:studbrickmaster wrote:I have attached a video made with NeXT Screen and Hyper Cam 2, and the test program.
Can't you just use the Capture AVI feature in NXTScreen
What capture AVI feature?
Re: Display Time Block Bug
Posted: 29 Apr 2011, 08:52
by timpattinson
studbrickmaster wrote:timpattinson wrote:studbrickmaster wrote:I have attached a video made with NeXT Screen and Hyper Cam 2, and the test program.
Can't you just use the Capture AVI feature in NXTScreen
What capture AVI feature?
Re: Display Time Block Bug
Posted: 29 Apr 2011, 09:31
by bungeshea
Re: Display Time Block Bug
Posted: 29 Apr 2011, 11:12
by timpattinson
Try upgrading nxtscreen/bricxcc
Which one are you using.
Re: Display Time Block Bug
Posted: 29 Apr 2011, 12:18
by h-g-t
There are 2 links to the file - who cares what he used to create it?
Re: Display Time Block Bug
Posted: 29 Apr 2011, 16:04
by mattallen37
It does that because the value is a 16-bit signed value. Because time can't be negative, the block should use either an unsigned 16-bit variable (up to ~65,000), or an unsigned 32-bit variable (up to >4,000,000,000).