So I've searched and searched and searched, but have not been able to find the answers to my questions - and cannot seem to completely figure it out on my own...
So I'm attempting to fully understand how Primo determines when to make upcoming turn announcements and I'm pretty close. I know that there are two files in the voice TTS .zip files that are involved - config_condfun.lua and config_database.lua. I understand how to make simple changed like change the 30m annoucement to 40m. But I'm trying to *completely* understand how it all works that I can customize any/all of the announcements...
Here are examples of the two files and some questions:
Code:
Please Login or Register to see the links
1. What are the values in {}'s? I know the first value is the distance in meters (same as the field in []'s), but not sure what the 2nd and 3rd number in {}'s means.
Code:
Please Login or Register to see the links
I know that the 2nd field basically just refers to a line in the first file (config_condfun.lua), but I'm not sure about the other fieelds...
1. What do the fields in these lines mean? I know that "Pre" is used for Verbose (along with "app" and "now"), "app" is used for "Compact" (along with "now") and "now" is used for "Minimal". But not sure what the other fields signify or how the lines are "linked" to each other.
2. I understand how the "equal" lines work but what about the "range" entries?
Basically, I want announcements at the following distances (non-highway):
Pre: 1600 meters/1 mile (if next manuever over 1 mile)
App: 800 meters/.5 mile (if next manuever over .5 mile)
Now: 300 meters (if next manuever is less that .5 mile away)
From what I can tell, when you get onto a road, Primo evaluates the entries and "uses" the entry from each "category" (pre, app and now) that is closest, but less that the actual distance to the next turn. I think it starts with "Pre", then moves to "app" and finally "now". But I'm still missing something with 1st, 3rd and 4th field.
Interestingly, if you take the 8388608 number in the 3rd field in a lot of the lines and double it, you get 16777216 (which is one lower than the 16777217 in the 1st field of a lot of the lines). And the other numbers in the 1st field seem to be 16777217 + 64, +128, etc... So they are all somehow related, but I haven't figured out exactly how yet... :-) Also can't figure out what the 240 and 254 numbers do - or what the "nil"/"true" entry means...
If anyone knows how to put this all together, please help me out! :-) I think I'm *so* close to figuring this out....
Thank you!
Bookmarks