Mini-Z, Kyosho Mini-Z Racer, MR-03, MR-02, MA-010, Forums, News, Pictures, Parts, and Shop - Mini-ZRacer.com
Forums, Mini-Z, MiniZ, Kyosho Mini-Z, Kyosho MiniZ, Kyosho Mini-Z Racer
Mini-Z Hop-Ups, Mini-Z Parts, MiniZ Hop-Ups, MiniZ Parts, Kyosho Mini-Z Hop-Ups, Kyosho Mini-Z Parts, Kyosho MiniZ Hop-Ups, Kyosho MiniZ Parts, Kyosho Mini-Z Racer Hop-Ups, Racer Kyosho Mini-Z Parts
Old 2013.03.14, 09:43 AM   #1
ChiMiniRc
Registered User
 
Join Date: Apr 2010
Posts: 728
Confirming timeout behavior

I wanted to confirm what parts of the code leverage the Timeout feature in freeplay "practice" mode.

Right now I have one behavior (it's a Windows XP machine) where the racers just disappear during practice. I've set the timeout to 600 and 900 seconds but I've seen their names disappear well before the 10 and 15 minute mark.

Another thing which is probably correct. The timeout defaulted to 15 seconds and we were in practice on a track with laptimes greater than 15 seconds. We were trying to get lap times to announce so what we did was run the car back and forth under the bridge to confirm we had laptimes announced (over minimum 7 seconds but under 15 second timeout). But when we started practicing we just heard beeps. Once I increased the timeout the laptimes began to announce correctly. Mind you, from what I could tell, the drivers never disappeared from the screen.

Finally, the ability to announce lap times to 1 decimal place but still hearing all 3 decimal places for personal best laps is AWESOME. Well implemented. If that wasn't on purpose, please be sure not to change it in the future.
ChiMiniRc is offline   Reply With Quote
Old 2013.03.14, 09:17 PM   #2
pinwc4
Registered User
 
pinwc4's Avatar
 
Join Date: Aug 2005
Posts: 913
Quote:
Originally Posted by ChiMiniRc View Post
I wanted to confirm what parts of the code leverage the Timeout feature in freeplay "practice" mode.
In "Free Play" the timeout is only used to calculate when a racer can automatically be removed from the race. The check runs as part of the main race timer. The logic is this

If currenttime is > than the when the racers most recent lap occurred plus the racers time deviation plus the timeout then remove them from the race.

Each racer gets a separate time deviation based on when they were added to the race. This is needed since they will each have their own clock that starts the first time they are detected. The deviation for the racer is whatever time the race timer says at the moment they were added or whatever time the lap counter sends for the first detection in the case of I-Lap since it has its own built in timer.

Quote:
Originally Posted by ChiMiniRc View Post
Right now I have one behavior (it's a Windows XP machine) where the racers just disappear during practice. I've set the timeout to 600 and 900 seconds but I've seen their names disappear well before the 10 and 15 minute mark.

Another thing which is probably correct. The timeout defaulted to 15 seconds and we were in practice on a track with laptimes greater than 15 seconds. We were trying to get lap times to announce so what we did was run the car back and forth under the bridge to confirm we had laptimes announced (over minimum 7 seconds but under 15 second timeout). But when we started practicing we just heard beeps. Once I increased the timeout the laptimes began to announce correctly. Mind you, from what I could tell, the drivers never disappeared from the screen.
Not quite sure what is going on here. Going to have to say the annoying statement of so far I can not replicate this behavior. The timeout check is pretty simple so my first guess may be that the deviation that is getting calculated wrong some how.

In my case the deviation is based of the race clock, but in your case with the I-Lap I am basing it off the time send from the I-Lap. So maybe I am doing something wrong there, I will dig a bit further. I wish I would not have forgotten to grab that I-Lap sensor Craig offered when I was up there, would help with testing in this case.

I will dig further into this problem and see what I can figure out. If I get stuck maybe I will set an Arduino to emulate sending lap times like an I-Lap to see if I can replicate the problem.

Quote:
Originally Posted by ChiMiniRc View Post
Finally, the ability to announce lap times to 1 decimal place but still hearing all 3 decimal places for personal best laps is AWESOME. Well implemented. If that wasn't on purpose, please be sure not to change it in the future.
Honestly I am not quite sure if this is sarcasm or not, I would not call it awesome but it was a design choice I made intentionally. Some people may disagree but my thought was that it seemed silly to announce best laps to only 1 decimal place.

If I were to do that you would commonly have instances such as there was a best lap of 7.345 seconds, then of 7.333 seconds, then of 7.321 seconds but the software would say each time best lap 7.3 seconds, best lap 7.3 seconds, best lap 7.3 seconds even though each time would be slightly different. This seemed silly to me. However if people disagree I can change it, it was just my opinion.

Last edited by pinwc4; 2013.03.14 at 10:53 PM.
pinwc4 is offline   Reply With Quote
Old 2013.03.15, 10:37 AM   #3
ChiMiniRc
Registered User
 
Join Date: Apr 2010
Posts: 728
Quote:
Honestly I am not quite sure if this is sarcasm or not, I would not call it awesome but it was a design choice I made intentionally. Some people may disagree but my thought was that it seemed silly to announce best laps to only 1 decimal place.

If I were to do that you would commonly have instances such as there was a best lap of 7.345 seconds, then of 7.333 seconds, then of 7.321 seconds but the software would say each time best lap 7.3 seconds, best lap 7.3 seconds, best lap 7.3 seconds even though each time would be slightly different. This seemed silly to me. However if people disagree I can change it, it was just my opinion.
No sarcasm. I think this implementation is perfect. the tenth of second for non fast laps as knowing if you are on pace is what you are usually after. BUT If you get 7.345 instead of 7.390 on the last lap, I *DO* want to know all 3 decimal places.
ChiMiniRc is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2.4 Ghz strange behavior remy 2.4GHz ASF System (Auto Selected Frequency) 17 2008.09.12 11:56 AM
Rear end coming by; handbrake alike behavior RobinZ Mini-Z AWD MA-010, MA-015 15 2008.02.08 06:43 PM
Drifting behavior changed with bearing helee4 Mini-Z AWD MA-010, MA-015 9 2006.02.13 01:15 AM
Strange Behavior Jiliac Setups 3 2003.09.07 11:41 AM


All times are GMT -5. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2011 Mini-ZRacer.com
Mini Inferno Sale - Up to $85 Instant Savings!
Micro-T Hop-Ups
RC18R, M18, Micro RS4, Mini-LST, TamTech-Gear, Minizilla, RC18T, RC18B, RC18MT
shop.tinyrc.com Products

more»
Tiny RC Community News
[03/22/17] MZR was on vacation, didn't... : All kidding aside, the host experienced a bit of a server meltdown last week and efforts to restore the site to a new server took longer than anticipated. The current server is temporary until - more»
[11/25/15] Did You Hear? Our Black... : Hey Racers,
We're getting started a bit early with our Black Friday sale this year.  Generally we're not supporters of retailers opening early on Thanksgiving, but in our case, we're - more»
[06/30/15] shop.tinyrc.com: Have You... : Hey All! Just a quick reminder to everyone that we post all of our shop.tinyrc.com Newletters here on the MZR Forum. If for some reason you miss them in your email inbox, you can always see the - more»
Mini-Z, Mini-Z Racer, MR-02, MA-010
M18, M18T, RC18T, Mini-LST, Mini-T, Micro RS4, XRay, 1/18, 18th scale
XMODS, XMOD, Micro Flight, ZipZaps, ZipZaps SE, Bit Char-G, MicroSizers, TTTT, Plantraco Desktop Rover, SuperSlicks, Digi Q
Mini Inferno, Mini Inferno ST, half EIGHT, 1/16, 16th scale
Epoch, Indoor Racer, 1/43, 43rd scale
E-Savage, eSavage, eZilla, e-Zilla, HPI
Robots, Bots, Bipeds, Wheeled, Manoi, Roomba, NXT, Lego, Hacking
Crawling, Crawlers, Micro, RC, Losi Mini-Rock Crawler, Duratrax Cliff Climber
Kyosho Minium, Caliber 120, Minium Forums
Mini-Z Hop-Ups, Mini-Z Parts, Mini Inferno Hop-Ups, Mini Inferno Parts, M18 Hop-Ups, M18 Parts